DbAcl Class Reference

Inheritance diagram for DbAcl:

AclBase Object

List of all members.


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

DbAcl::_getAcoKeys ( keys  ) 

Get the keys used in an ACO

Parameters:
array $keys Permission model info
Returns:
array ACO keys protected

Definition at line 485 of file acl.php.

Referenced by allow(), and check().

DbAcl::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 361 of file acl.php.

References _getAcoKeys(), aco, aro, and getAclLink().

Referenced by deny(), grant(), and inherit().

DbAcl::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 272 of file acl.php.

References _getAcoKeys(), Set::extract(), and order.

DbAcl::deny ( aro,
aco,
action = "*" 
)

Deny access for $aro to action $action in $aco

Parameters:
string $aro ARO
string $aco ACO
string $actions Action (defaults to *)
Returns:
boolean Success public

Definition at line 411 of file acl.php.

References allow().

Referenced by revoke().

DbAcl::getAclLink ( aro,
aco 
)

Get an array of access-control links between the given Aro and Aco

Parameters:
string $aro ARO
string $aco ACO
Returns:
array Indexed array with: 'aro', 'aco' and 'link' public

Definition at line 460 of file acl.php.

References aco, aro, and Set::extract().

Referenced by allow().

DbAcl::grant ( aro,
aco,
action = "*" 
)

Allow $aro to have access to action $actions in $aco

Parameters:
string $aro ARO
string $aco ACO
string $actions Action (defaults to *)
Returns:
boolean Success
See also:
allow() public

Definition at line 436 of file acl.php.

References allow().

DbAcl::inherit ( aro,
aco,
action = "*" 
)

Let access for $aro to action $action in $aco be inherited

Parameters:
string $aro ARO
string $aco ACO
string $actions Action (defaults to *)
Returns:
boolean Success public

Definition at line 423 of file acl.php.

References allow().

DbAcl::initialize ( &$  component  ) 

Enter description here...

Parameters:
object $component public

Reimplemented from AclBase.

Definition at line 259 of file acl.php.

DbAcl::revoke ( aro,
aco,
action = "*" 
)

Deny access for $aro to action $action in $aco

Parameters:
string $aro ARO
string $aco ACO
string $actions Action (defaults to *)
Returns:
boolean Success
See also:
deny() public

Definition at line 449 of file acl.php.

References deny().


The documentation for this class was generated from the following file: