Class PhpAco
Access Control Object
Package: Cake\Controller\Component\Acl
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Controller/Component/Acl/PhpAcl.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Controller/Component/Acl/PhpAcl.php
Properties summary
-
$_tree
protectedarray
holds internal ACO representation -
$modifiers
public staticarray
map modifiers for ACO paths to their respective PCRE pattern
Method Summary
-
__construct() public
-
access() public
allow/deny ARO access to ARO -
build() public
build a tree representation from the given allow/deny informations for ACO paths -
path() public
return path to the requested ACO with allow and deny rules attached on each level -
resolve() public
resolve given ACO string to a path
Method Detail
build() 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
Properties detail
$modifiers ¶
public
static
array
map modifiers for ACO paths to their respective PCRE pattern
array( '*' => '.*', )