Yii Access Control Lists  0.8
Advanced and convenient Access Control
Public Member Functions | Static Public Member Functions | Protected Member Functions
Aro Class Reference
Inheritance diagram for Aro:
ACLObject

List of all members.

Public Member Functions

 grant ($obj, $actions)
 deny ($obj, $actions)
 init ()
 tableName ()
 relations ()
 rules ()

Static Public Member Functions

static model ($className=__CLASS__)

Protected Member Functions

 updatePermissions ($actions, $obj, $type)
 existsPermissionSpec ($obj)

Detailed Description

Aro Class File

Author:
zeroByte <dispyfree@googlemail.com>

Member Function Documentation

Aro::deny ( obj,
actions 
)

Denies the given actions to the given object

Parameters:
mixed$objany valid identifier ACLObject::loadObject
mixed$actionsthe actions to deny
Returns:
type
Aro::existsPermissionSpec ( obj) [protected]

Checks if there are any permission specifications for the given object

Parameters:
Aro$objthe object to check for
Returns:
type
Aro::grant ( obj,
actions 
)

Grants the given actions to the given object

Parameters:
mixed$objany valid identifier ACLObject::loadObject
mixed$actionsthe actions to grant
Returns:
type
static Aro::model ( className = __CLASS__) [static]

Returns the static model of the specified AR class.

Parameters:
string$classNameactive record class name.
Returns:
User the static model class

Reimplemented from ACLObject.

Aro::updatePermissions ( actions,
obj,
type 
) [protected]

This method updates the permissions o the current object in the tree

Parameters:
mixed$actionsthe actions to update for
ACLObject$objThe ACLObject to update the permissions of(e.g.: Aro or Aco)
boolean$typeThe type of the update: true => grant permission, false => deny permission
Returns:
boolean

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