Symfony\Component\Security\Acl\Dbal\AclProvider
An ACL provider implementation.
This provider assumes that all ACLs share the same PermissionGrantingStrategy.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class AclProvider
implements
AclProviderInterface
{
- // constants
- const MAX_BATCH_SIZE = 30;
- // members
- protected $cache;
- protected $connection;
- protected $loadedAces;
- protected $loadedAcls;
- protected $options;
- private $permissionGrantingStrategy;
- // methods
- public void __construct()
- public void findChildren()
- public void findAcl()
- public void findAcls()
- protected string getLookupSql()
- protected void getAncestorLookupSql()
- protected string getFindChildrenSql()
- protected string getSelectObjectIdentityIdSql()
- protected final integer retrieveObjectIdentityPrimaryKey()
- private void updateAceIdentityMap()
- private array getAncestorIds()
- private void doUpdateAceIdentityMap()
- private SplObjectStorage lookupObjectIdentities()
- private SplObjectStorage hydrateObjectIdentities()
Hierarchy
Extended by
Implements
Constants
Name | Value |
---|---|
MAX_BATCH_SIZE | 30 |
Members
private
- $permissionGrantingStrategy
protected
- $cache
- $connection
- $loadedAces
- $loadedAcls
- $options
Methods
private
- doUpdateAceIdentityMap() — Does either overwrite the passed ACE, or saves it in the global identity map to ensure every ACE only gets instantiated once.
- getAncestorIds() — Retrieves all the ids which need to be queried from the database including the ids of parent ACLs.
- hydrateObjectIdentities() — This method is called to hydrate ACLs and ACEs.
- lookupObjectIdentities() — This method is called for object identities which could not be retrieved from the cache, and for which thus a database query is required.
- updateAceIdentityMap() — This method is called when an ACL instance is retrieved from the cache.
protected
- getAncestorLookupSql()
- getFindChildrenSql() — Constructs the SQL for retrieving child object identities for the given object identities.
- getLookupSql() — Constructs the query used for looking up object identities and associated ACEs, and security identities.
- getSelectObjectIdentityIdSql() — Constructs the SQL for retrieving the primary key of the given object identity.
- retrieveObjectIdentityPrimaryKey() — Returns the primary key of the passed object identity.
public
- __construct() — Constructor.
- findAcl() — {@inheritDoc}
- findAcls() — {@inheritDoc}
- findChildren() — {@inheritDoc}