ACL Extension
0.3
|
Public Member Functions | |
beforeFind ($event) | |
getDirectlyPermitted ($actions= '*') | |
beforeSave ($event) | |
beforeDelete ($event) | |
afterSave ($event) | |
grants ($permission) |
Protected Member Functions | |
generateAccessCheck ($conditions= '', $params=array(), $options=array()) |
This class is intended tobe used as a behavior for objects which have restrictions on their access It automatically checks, if the current user has the permissions to commit the regular CRUD-tasks
Definition at line 17 of file RestrictedActiveRecordBehavior.php.
afterSave | ( | $event | ) |
This method takes care to assign individual rights to newly created objects
CEvent | $evt |
Definition at line 192 of file RestrictedActiveRecordBehavior.php.
beforeDelete | ( | $event | ) |
This method checks whether the user has the right to delete the current record
Definition at line 168 of file RestrictedActiveRecordBehavior.php.
beforeFind | ( | $event | ) |
Definition at line 103 of file RestrictedActiveRecordBehavior.php.
beforeSave | ( | $event | ) |
This method checks whether the user has the right to update the current record By default, it's always allowed to create a new object. This object is automatically assigned to the user who created it with full permissions
Definition at line 152 of file RestrictedActiveRecordBehavior.php.
|
protected |
The following functions generates the CDbCriteria necessary to filter all accessable rows The CDbCriteria is solely passsed to the wrapped methods
sql | $conditions | the conditions being passed to the real method |
array | $params | the params being passed to the real method |
array | $options | options to be used by the method itself (keys: disableInheritance) |
Definition at line 27 of file RestrictedActiveRecordBehavior.php.
getDirectlyPermitted | ( | $actions = '*' | ) |
Gets the Aros who are directly (no inheritance!) permitted to perform one of the specified actions on this object
mixed | $actions | the actions to be considered |
Definition at line 114 of file RestrictedActiveRecordBehavior.php.
grants | ( | $permission | ) |
Checks whether the current ARO has the given permission on this object
string | $permission |
Definition at line 216 of file RestrictedActiveRecordBehavior.php.