Acl\Model\MutableAclProviderInterface (Component\Security)
Symfony\Component\Security\Acl\Model\MutableAclProviderInterface
interface MutableAclProviderInterface implements AclProviderInterface
Provides support for creating and storing ACL instances.
Methods
array | findChildren(ObjectIdentityInterface $parentOid, Boolean $directChildrenOnly = false) Retrieves all child object identities from the database | from AclProviderInterface |
AclInterface | findAcl(ObjectIdentityInterface $oid, array $sids = array()) Returns the ACL that belongs to the given object identity | from AclProviderInterface |
SplObjectStorage | findAcls(array $oids, array $sids = array()) Returns the ACLs that belong to the given object identities | from AclProviderInterface |
MutableAclInterface | createAcl(ObjectIdentityInterface $oid) Creates a new ACL for the given object identity. | |
deleteAcl(ObjectIdentityInterface $oid) Deletes the ACL for a given object identity. | ||
updateAcl(MutableAclInterface $acl) Persists any changes which were made to the ACL, or any associated access control entries. |
Details
public array findChildren(ObjectIdentityInterface $parentOid, Boolean $directChildrenOnly = false)
Retrieves all child object identities from the database
public AclInterface findAcl(ObjectIdentityInterface $oid, array $sids = array())
Returns the ACL that belongs to the given object identity
public SplObjectStorage findAcls(array $oids, array $sids = array())
Returns the ACLs that belong to the given object identities
public MutableAclInterface createAcl(ObjectIdentityInterface $oid)
Creates a new ACL for the given object identity.
public deleteAcl(ObjectIdentityInterface $oid)
Deletes the ACL for a given object identity.
This will automatically trigger a delete for any child ACLs. If you don't want child ACLs to be deleted, you will have to set their parent ACL to null.
public updateAcl(MutableAclInterface $acl)
Persists any changes which were made to the ACL, or any associated access control entries.
Changes to parent ACLs are not persisted.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Acl/Model/MutableAclProviderInterface.html