Class PhpAco
Access Control Object
Package: Cake\Controller\Component\Acl
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/Controller/Component/Acl/PhpAcl.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/Controller/Component/Acl/PhpAcl.php
Method Detail
__constructsource public
__construct( array $rules array() )
Constructor
Parameters
- array
$rules
optional array() - Rules array
accesssource public
access( string $aro , string $aco , string $action , string $type 'deny' )
allow/deny ARO access to ARO
Parameters
- string
$aro
- ARO string
- string
$aco
- ACO string
- string
$action
- Action string
- string
$type
optional 'deny' - access type
buildsource public
build( array $allow , array $deny array() )
build a tree representation from the given allow/deny informations for ACO paths
Parameters
- array
$allow
- ACO allow rules
- array
$deny
optional array() - ACO deny rules
pathsource public
path( string $aco )
return path to the requested ACO with allow and deny rules attached on each level
Parameters
- string
$aco
- ACO string
Returns
array
array
resolvesource public
resolve( string $aco )
resolve given ACO string to a path
Parameters
- string
$aco
- ACO string
Returns
array
path
Properties summary
© 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-PhpAco.html