DB_ACL Class Reference
Inheritance diagram for DB_ACL:

Public Member Functions | |
| _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="*") | |
Detailed Description
Definition at line 240 of file acl.php.
Member Function Documentation
| DB_ACL::_getAcoKeys | ( | $ | keys | ) |
Get the keys used in an ACO
- Parameters:
-
array $keys Permission model info
- Returns:
- array ACO keys protected
| DB_ACL::allow | ( | $ | aro, | |
| $ | aco, | |||
| $ | actions = "*", |
|||
| $ | value = 1 | |||
| ) |
Allow $aro to have access to action $actions in $aco
- Parameters:
-
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)
- Returns:
- boolean Success public
Definition at line 356 of file acl.php.
References _getAcoKeys(), aco, aro, and getAclLink().
| DB_ACL::check | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
Checks if the given $aro has access to action $action in $aco
- Parameters:
-
string $aro ARO string $aco ACO string $action Action (defaults to *)
- Returns:
- boolean Success (true if ARO has access to action in ACO, false otherwise) public
Reimplemented from AclBase.
Definition at line 270 of file acl.php.
References _getAcoKeys(), and Set::extract().
| DB_ACL::deny | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
| DB_ACL::getAclLink | ( | $ | aro, | |
| $ | aco | |||
| ) |
| DB_ACL::grant | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
| DB_ACL::inherit | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
| DB_ACL::initialize | ( | &$ | component | ) |
| DB_ACL::revoke | ( | $ | aro, | |
| $ | aco, | |||
| $ | action = "*" | |||
| ) |
The documentation for this class was generated from the following file:
- /cake_1.2.0.6311-beta/cake/libs/controller/components/acl.php