PHP 클래스 Phalcon\Acl\Factory\Memory

This factory is intended to be used to ease setup of \Phalcon\Acl\Adapter\Memory in case \Phalcon\Config is used for configuration.
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
create ( Phalcon\Config $config ) : Phalcon\Acl\Adapter\Memory Creates configured instance of acl.

보호된 메소드들

메소드 설명
addAccessRulesToRole ( string $role, Phalcon\Config $rules ) Adds access rules to role.
addResources ( ) Adds resources from config to acl object.
addRole ( string $role, Phalcon\Config $rules ) Add role to acl.
addRoles ( ) Adds role from config to acl object.
castAction ( mixed $actions ) : array | null Cast actions
makeResource ( string $name, string | null $description = null ) : Phalcon\Acl\Resource Creates acl resource.
makeRole ( string $role, string | null $description = null ) : Phalcon\Acl\Role Creates acl role.

메소드 상세

addAccessRulesToRole() 보호된 메소드

Adds access rules to role.
protected addAccessRulesToRole ( string $role, Phalcon\Config $rules )
$role string role
$rules Phalcon\Config rules

addResources() 보호된 메소드

Adds resources from config to acl object.
protected addResources ( )

addRole() 보호된 메소드

Add role to acl.
protected addRole ( string $role, Phalcon\Config $rules )
$role string role
$rules Phalcon\Config rules

addRoles() 보호된 메소드

Adds role from config to acl object.
protected addRoles ( )

castAction() 보호된 메소드

Cast actions
protected castAction ( mixed $actions ) : array | null
$actions mixed Actions
리턴 array | null

create() 공개 메소드

Creates configured instance of acl.
public create ( Phalcon\Config $config ) : Phalcon\Acl\Adapter\Memory
$config Phalcon\Config config
리턴 Phalcon\Acl\Adapter\Memory acl

makeResource() 보호된 메소드

Creates acl resource.
protected makeResource ( string $name, string | null $description = null ) : Phalcon\Acl\Resource
$name string Resource name
$description string | null Resource description [Optional]
리턴 Phalcon\Acl\Resource

makeRole() 보호된 메소드

Creates acl role.
protected makeRole ( string $role, string | null $description = null ) : Phalcon\Acl\Role
$role string Role name
$description string | null Description [Optional]
리턴 Phalcon\Acl\Role