Access Request Object
__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
string
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
array
string | DEFAULT_ROLE role to resolve to when a provided ARO is not listed in the internal tree | 'Role/default' |
© 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.7/class-PhpAro.html