Access Request Object
string
'Role/default' $_tree protected array$aliases public array$map public arrayresolve an ARO identifier to an internal ARO string using the internal mapping information.
From the perspective of the given ARO, walk down the tree and collect all inherited AROs levelwise such that AROs from different branches with equal distance to the requested ARO will be collected at the same index. The resulting array will contain a prioritized list of (list of) roles ordered from the most distant AROs to the requested one itself.
__construct( array $aro array() , array $map array() , array $aliases array() )
Constructor
$aro optional array() $map optional array() $aliases optional array() addAlias( array $alias )
adds one or more aliases to the internal map. Overwrites existing entries.
$alias addRole( array $aro )
adds a new ARO to the tree
$aro build( array $aros )
build an ARO tree structure for internal processing
$aros resolve( string|array $aro )
resolve an ARO identifier to an internal ARO string using the internal mapping information.
$aro roles( string|array $aro )
From the perspective of the given ARO, walk down the tree and collect all inherited AROs levelwise such that AROs from different branches with equal distance to the requested ARO will be collected at the same index. The resulting array will contain a prioritized list of (list of) roles ordered from the most distant AROs to the requested one itself.
$aro public array
map external identifiers. E.g. if
array('User' => array('username' => 'jeff', 'role' => 'editor'))
is passed as an ARO to one of the methods of AclComponent, PhpAcl will check if it can be resolved to an User or a Role defined in the configuration file.
array(
'User' => 'User/username',
'Role' => 'User/role',
)
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.8/class-PhpAro.html