ACL Extension
0.3
|
Public Member Functions | |
find ($conditions= '', $params=array()) | |
findByAttributes ($attributes, $conditions= '', $params=array()) | |
findByPk ($pk, $conditions= '', $params=array()) | |
findBySQL ($sql, $params=array()) | |
findAll ($conditions= '', $params=array()) | |
findAllByAttributes ($attributes, $conditions= '', $params=array()) | |
findAllByPk ($pk, $conditions= '', $params=array()) | |
findAllBySQL ($sql, $params=array()) | |
getDirectlyPermitted ($actions= '*') | |
beforeSave () | |
beforeDelete () | |
afterSave () | |
grants ($permission) |
Static Public Member Functions | |
static | getUser () |
Static Public Attributes | |
static | $byPassCheck = false |
static | $inAttendance = NULL |
static | $model = 'User' |
static | $possibleActions = NULL |
static | $defaultOptions |
Protected Member Functions | |
generateAccessCheck ($conditions= '', $params=array(), $options=array()) |
This class is intended as a base 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 RestrictedActiveRecord.php.
afterSave | ( | ) |
This method takes care to assign individual rights to newly created objects
CEvent | $evt |
Reimplemented in RestrictedTreeActiveRecord.
Definition at line 253 of file RestrictedActiveRecord.php.
beforeDelete | ( | ) |
This method checks whether the user has the right to delete the current record
Definition at line 229 of file RestrictedActiveRecord.php.
beforeSave | ( | ) |
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 212 of file RestrictedActiveRecord.php.
find | ( | $conditions = '' , |
|
$params = array() |
|||
) |
Definition at line 135 of file RestrictedActiveRecord.php.
findAll | ( | $conditions = '' , |
|
$params = array() |
|||
) |
Definition at line 152 of file RestrictedActiveRecord.php.
findAllByAttributes | ( | $attributes, | |
$conditions = '' , |
|||
$params = array() |
|||
) |
Definition at line 156 of file RestrictedActiveRecord.php.
findAllByPk | ( | $pk, | |
$conditions = '' , |
|||
$params = array() |
|||
) |
Definition at line 160 of file RestrictedActiveRecord.php.
findAllBySQL | ( | $sql, | |
$params = array() |
|||
) |
Definition at line 164 of file RestrictedActiveRecord.php.
findByAttributes | ( | $attributes, | |
$conditions = '' , |
|||
$params = array() |
|||
) |
Definition at line 139 of file RestrictedActiveRecord.php.
findByPk | ( | $pk, | |
$conditions = '' , |
|||
$params = array() |
|||
) |
Definition at line 143 of file RestrictedActiveRecord.php.
findBySQL | ( | $sql, | |
$params = array() |
|||
) |
Definition at line 147 of file RestrictedActiveRecord.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 58 of file RestrictedActiveRecord.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 175 of file RestrictedActiveRecord.php.
|
static |
Fetches the Access Request-Object to use (either the current user or an object from self::inAttendance.
RuntimeException |
Definition at line 289 of file RestrictedActiveRecord.php.
grants | ( | $permission | ) |
Checks whether the current ARO has the given permission on this object
string | $permission |
Definition at line 277 of file RestrictedActiveRecord.php.
|
static |
Definition at line 24 of file RestrictedActiveRecord.php.
|
static |
Definition at line 46 of file RestrictedActiveRecord.php.
|
static |
Definition at line 31 of file RestrictedActiveRecord.php.
|
static |
Definition at line 36 of file RestrictedActiveRecord.php.
|
static |
Definition at line 44 of file RestrictedActiveRecord.php.