PHP 클래스 Acl\Shell\AclShell

상속: extends Cake\Console\Shell
파일 보기 프로젝트 열기: cakephp/acl

공개 프로퍼티들

프로퍼티 타입 설명
$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