Sections

Abstract class Phalcon\Acl\Adapter

implements Phalcon\Acl\AdapterInterface, Phalcon\Events\EventsAwareInterface

源码在GitHub

Adapter for Phalcon\Acl adapters

方法

public getActiveRole ()

获取 资源/权限 列表

public getActiveResource ()

获取角色的可访问资源列表

public getActiveAccess ()

获取角色权限类表

public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager)

设置事件管理器

public getEventsManager ()

返回内部事件管理器

public setDefaultAction (mixed $defaultAccess)

Sets the default access level (Phalcon\Acl::ALLOW or Phalcon\Acl::DENY)

public getDefaultAction ()

返回默认 ACL 访问级别

abstract public setNoArgumentsDefaultAction (mixed $defaultAccess) inherited from Phalcon\Acl\AdapterInterface

abstract public getNoArgumentsDefaultAction () inherited from Phalcon\Acl\AdapterInterface

abstract public addRole (mixed $role, [mixed $accessInherits]) inherited from Phalcon\Acl\AdapterInterface

abstract public addInherit (mixed $roleName, mixed $roleToInherit) inherited from Phalcon\Acl\AdapterInterface

abstract public isRole (mixed $roleName) inherited from Phalcon\Acl\AdapterInterface

abstract public isResource (mixed $resourceName) inherited from Phalcon\Acl\AdapterInterface

abstract public addResource (mixed $resourceObject, mixed $accessList) inherited from Phalcon\Acl\AdapterInterface

abstract public addResourceAccess (mixed $resourceName, mixed $accessList) inherited from Phalcon\Acl\AdapterInterface

abstract public dropResourceAccess (mixed $resourceName, mixed $accessList) inherited from Phalcon\Acl\AdapterInterface

abstract public allow (mixed $roleName, mixed $resourceName, mixed $access, [mixed $func]) inherited from Phalcon\Acl\AdapterInterface

abstract public deny (mixed $roleName, mixed $resourceName, mixed $access, [mixed $func]) inherited from Phalcon\Acl\AdapterInterface

abstract public isAllowed (mixed $roleName, mixed $resourceName, mixed $access, [array $parameters]) inherited from Phalcon\Acl\AdapterInterface

abstract public getRoles () inherited from Phalcon\Acl\AdapterInterface

abstract public getResources () inherited from Phalcon\Acl\AdapterInterface