Class PhpAco
Access Control Object
Package: Cake\Controller\Component\Acl
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Controller/Component/Acl/PhpAcl.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
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
Constructor -
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
__construct() public ¶
__construct( array $rules = array() )
Constructor
Parameters
- array $rules optional array()
- Rules array
access() 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
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( '*' => '.*', )