Acl

extends Zend\Permissions\Acl\Acl
Methods Summary
public
# setAuthenticationService( Zend\Authentication\AuthenticationServiceInterface $auth )
{@inheritDoc}
public
# getAuthenticationService( )
{@inheritDoc}
public
# getRoleLabels( bool $excludeAdminRoles = false )
Get role names and their labels.
public
# userIsAllowed( \Resource\ResourceInterface|string $resource = NULL, string $privilege = NULL )
Authorize the current user.
public
# isAdminRole( $role )
Determine whether the admin role is an "admin" role that carries restrictions beyond other roles.
public
# addRoleLabel( $roleId , $roleLabel )
Add a role label to the ACL
public
# removeRoleLabel( $roleId )
Remove a role label from the ACL
Methods inherited from Zend\Permissions\Acl\Acl
addRole(), getRole(), hasRole(), inheritsRole(), removeRole(), removeRoleAll(), addResource(), getResource(), hasResource(), inheritsResource(), removeResource(), removeResourceAll(), allow(), deny(), removeAllow(), removeDeny(), setRule(), getChildResources(), isAllowed(), getRoleRegistry(), roleDFSAllPrivileges(), roleDFSVisitAllPrivileges(), roleDFSOnePrivilege(), roleDFSVisitOnePrivilege(), getRuleType(), getRules(), getRoles(), getResources()
Constants Summary
public string ROLE_GLOBAL_ADMIN
# 'global_admin'
public string ROLE_SITE_ADMIN
# 'site_admin'
public string ROLE_EDITOR
# 'editor'
public string ROLE_REVIEWER
# 'reviewer'
public string ROLE_AUTHOR
# 'author'
public string ROLE_RESEARCHER
# 'researcher'
Constants inherited from Zend\Permissions\Acl\Acl
TYPE_ALLOW , TYPE_DENY , OP_ADD , OP_REMOVE
Properties Summary
protected array $roleLabels
# array ( 'global_admin' => 'Global Administrator', 'site_admin' => 'Site Administrator', 'editor' => 'Editor', 'reviewer' => 'Reviewer', 'author' => 'Author', 'researcher' => 'Researcher', )
protected array $adminRoles
Roles that are "admins" and restricted for editing.
# array ( 0 => 'global_admin', 1 => 'site_admin', )
protected Zend\Authentication\AuthenticationServiceInterface $auth
# NULL
Properties inherited from Zend\Permissions\Acl\Acl
$roleRegistry, $resources, $isAllowedRole, $isAllowedResource, $isAllowedPrivilege, $rules