Inheritance diagram for DbAcl:

Public Member Functions | |
| __construct () | |
| _getAcoKeys ($keys) | |
| allow ($aro, $aco, $actions="*", $value=1) | |
| check ($aro, $aco, $action="*") | |
| deny ($aro, $aco, $action="*") | |
| getAclLink ($aro, $aco) | |
| grant ($aro, $aco, $action="*") | |
| inherit ($aro, $aco, $action="*") | |
| initialize (&$component) | |
| revoke ($aro, $aco, $action="*") | |
Definition at line 196 of file acl.php.
| DbAcl::__construct | ( | ) |
Constructor
Reimplemented from AclBase.
Definition at line 201 of file acl.php.
References __construct(), ClassRegistry::init(), and uses().
| DbAcl::_getAcoKeys | ( | $ | keys | ) |
Get the keys used in an ACO
| array | $keys Permission model info |
| DbAcl::allow | ( | $ | aro, | |
| $ | aco, | |||
| $ | actions = "*", |
|||
| $ | value = 1 | |||
| ) |
Allow $aro to have access to action $actions in $aco
| string | $aro ARO | |
| string | $aco ACO | |
| string | $actions Action (defaults to *) | |
| integer | $value Value to indicate access type (1 to give access, -1 to deny, 0 to inherit) |
Definition at line 319 of file acl.php.
References __(), _getAcoKeys(), aco, aro, and getAclLink().
Referenced by IniAcl::check(), deny(), grant(), and inherit().
| DbAcl::check | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
Checks if the given $aro has access to action $action in $aco
| string | $aro ARO | |
| string | $aco ACO | |
| string | $action Action (defaults to *) |
Reimplemented from AclBase.
Definition at line 229 of file acl.php.
References __(), _getAcoKeys(), Set::extract(), and order.
| DbAcl::deny | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
Deny access for $aro to action $action in $aco
| string | $aro ARO | |
| string | $aco ACO | |
| string | $actions Action (defaults to *) |
Definition at line 369 of file acl.php.
References allow().
Referenced by IniAcl::check(), and revoke().
| DbAcl::getAclLink | ( | $ | aro, | |
| $ | aco | |||
| ) |
| DbAcl::grant | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
| DbAcl::inherit | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
| DbAcl::initialize | ( | &$ | component | ) |
| DbAcl::revoke | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
1.4.7