PHP Класс Acl\Shell\AclShell

Наследование: extends Cake\Console\Shell
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$Acl Acl\Controller\Component\AclComponent Contains instance of AclComponent
$args array Contains arguments parsed from the command line.
$connection string Contains database source to use
$tasks array Contains tasks to load and instantiate

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

Метод Описание
check ( ) : void Check permission for a given ARO to a given ACO.
create ( ) : void Creates an ARO/ACO node
delete ( ) : void Delete an ARO/ACO node.
deny ( ) : void Deny access for an ARO to an ACO.
getOptionParser ( ) : ConsoleOptionParser Gets the option parser instance and configures it.
getPath ( ) : void Get path to specified ARO/ACO node.
grant ( ) : void Grant permission for a given ARO to a given ACO.
inherit ( ) : void Set an ARO to inherit permission to an ACO.
main ( ) : void Override main() for help message hook
nodeExists ( ) : boolean Checks that given node exists
parseIdentifier ( string $identifier ) : mixed Parse an identifier into Model.foreignKey or an alias.
setParent ( ) : void Set parent for an ARO/ACO node.
startup ( ) : void Override startup of the Shell
view ( ) : void Show a specific ARO/ACO node.

Защищенные методы

Метод Описание
_dataVars ( string $type = null ) : array Build data parameters based on node type
_getNodeId ( string $class, string | array $identifier ) : integer | null Get the node for a given identifier. $identifier can either be a string alias or an array of properties to use in AcoNode::node()
_getParams ( ) : array get params for standard Acl methods
_outputNode ( string $class, array $node, integer $indent ) : void Outputs a single node, Either using the alias or Model.key

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

_dataVars() защищенный метод

Build data parameters based on node type
protected _dataVars ( string $type = null ) : array
$type string Node type (ARO/ACO)
Результат array Variables

_getNodeId() защищенный метод

Get the node for a given identifier. $identifier can either be a string alias or an array of properties to use in AcoNode::node()
protected _getNodeId ( string $class, string | array $identifier ) : integer | null
$class string Class type you want (Aro/Aco)
$identifier string | array A mixed identifier for finding the node.
Результат integer | null Integer of NodeId. Will trigger an error if nothing is found.

_getParams() защищенный метод

get params for standard Acl methods
protected _getParams ( ) : array
Результат array aro, aco, action

_outputNode() защищенный метод

Outputs a single node, Either using the alias or Model.key
protected _outputNode ( string $class, array $node, integer $indent ) : void
$class string Class name that is being used.
$node array Array of node information.
$indent integer indent level.
Результат void

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

Check permission for a given ARO to a given ACO.
public check ( ) : void
Результат void

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

Creates an ARO/ACO node
public create ( ) : void
Результат void

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

Delete an ARO/ACO node.
public delete ( ) : void
Результат void

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

Deny access for an ARO to an ACO.
public deny ( ) : void
Результат void

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

Gets the option parser instance and configures it.
public getOptionParser ( ) : ConsoleOptionParser
Результат ConsoleOptionParser

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

Get path to specified ARO/ACO node.
public getPath ( ) : void
Результат void

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

Grant permission for a given ARO to a given ACO.
public grant ( ) : void
Результат void

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

Set an ARO to inherit permission to an ACO.
public inherit ( ) : void
Результат void

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

Override main() for help message hook
public main ( ) : void
Результат void

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

Checks that given node exists
public nodeExists ( ) : boolean
Результат boolean Success

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

Takes an identifier determines its type and returns the result as used by other methods.
public parseIdentifier ( string $identifier ) : mixed
$identifier string Identifier to parse
Результат mixed a string for aliases, and an array for model.foreignKey

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

Set parent for an ARO/ACO node.
public setParent ( ) : void
Результат void

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

Override startup of the Shell
public startup ( ) : void
Результат void

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

Show a specific ARO/ACO node.
public view ( ) : void
Результат void

Описание свойств

$Acl публичное свойство

Contains instance of AclComponent
public AclComponent,Acl\Controller\Component $Acl
Результат Acl\Controller\Component\AclComponent

$args публичное свойство

Contains arguments parsed from the command line.
public array $args
Результат array

$connection публичное свойство

Contains database source to use
public string $connection
Результат string

$tasks публичное свойство

Contains tasks to load and instantiate
public array $tasks
Результат array