PHP Класс Acl\Model\Table\PermissionsTable

Наследование: extends AclNodesTable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
allow ( string $aro, string $aco, string $actions = '*', integer $value = 1 ) : boolean Allow $aro to have access to action $actions in $aco
check ( string $aro, string $aco, string $action = '*' ) : boolean Checks if the given $aro has access to action $action in $aco
getAclLink ( string $aro, string $aco ) : array Get an array of access-control links between the given Aro and Aco
getAcoKeys ( array $keys ) : array Get the crud type keys
initialize ( array $config ) : void {@inheritDoc}

Описание методов

allow() публичный метод

Allow $aro to have access to action $actions in $aco
public allow ( string $aro, string $aco, string $actions = '*', integer $value = 1 ) : boolean
$aro string ARO The requesting object identifier.
$aco string ACO The controlled object identifier.
$actions string Action (defaults to *) Invalid permissions will result in an exception
$value integer Value to indicate access type (1 to give access, -1 to deny, 0 to inherit)
Результат boolean Success

check() публичный метод

Checks if the given $aro has access to action $action in $aco
public check ( string $aro, string $aco, string $action = '*' ) : boolean
$aro string ARO The requesting object identifier.
$aco string ACO The controlled object identifier.
$action string Action (defaults to *)
Результат boolean Success (true if ARO has access to action in ACO, false otherwise)

getAcoKeys() публичный метод

Get the crud type keys
public getAcoKeys ( array $keys ) : array
$keys array Permission schema
Результат array permission keys

initialize() публичный метод

{@inheritDoc}
public initialize ( array $config ) : void
$config array Configuration
Результат void