Class Manager
Manage ACL roles and permissions from config (arrays) or database.
-
Charcoal\User\Acl\Manager
implements
Psr\Log\LoggerAwareInterface
uses
Psr\Log\LoggerAwareTrait (not available)
Methods summary
public
|
#
__construct( array $data )
Constructor options:
- logger
Constructor options:
- logger
Parameters
- $data
- Constructor options.
|
public
|
#
loadPermissions( Zend\Permissions\Acl\Acl & $acl, array $permissions, string $resource = '' )
Parameters
- $acl
- The Zend Acl instant to load permissions to.
- $permissions
- The array of permissions, in [role=>details] array.
- $resource
- The Acl resource (string identifier) to load roles and permissions into.
|
public
|
#
loadDatabasePermissions( Zend\Permissions\Acl\Acl & $acl, PDO $db, string $table, string $resource = '' )
Parameters
- $acl
- The Zend Acl instance to load permissions to.
- $db
- The PDO database instance.
- $table
- The table where to fetch the roles and permissions.
- $resource
- The Acl resource (string identifier) to load roles and permissions into.
|