Yii Access Control Lists  0.8
Advanced and convenient Access Control
Public Member Functions | Protected Member Functions | Protected Attributes
RequestingActiveRecord Class Reference

List of all members.

Public Member Functions

 may ($obj, $action)
 grant ($obj, $actions)
 deny ($obj, $actions)
 afterSave ()

Protected Member Functions

 loadAroCollection ()

Protected Attributes

 $aroCollection = NULL

Detailed Description

RequestingActiveRecord Class File

Author:
zeroByte <dispyfree@googlemail.com>

Member Function Documentation

RequestingActiveRecord::afterSave ( )

This method takes care to associate an ARO-collection with this one

Parameters:
CEvent$evt
RequestingActiveRecord::deny ( obj,
actions 
)

Denies the object denoted by the $obj-identifier the given actions

Parameters:
type$objthe object identifier
array$actionsthe actions to deny
Returns:
bool
RequestingActiveRecord::grant ( obj,
actions 
)

Grants the object denoted by the $obj-identifier the given actions

Parameters:
type$objthe object identifier
array$actionsthe actions to grant
Returns:
bool
RequestingActiveRecord::may ( obj,
action 
)

Looks up if the user is granted a specific action to the given object

Parameters:
string | array$objThe object to be checked
string$actionthe action to be performed
Returns:
bool true if access is granted, false otherwise

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