List of all members.
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()) |
| beforeSave () |
| afterSave () |
Public Attributes |
| $byPassCheck = false |
| $inAttendance = NULL |
| $model = 'User' |
Protected Member Functions |
| generateAccessCheck ($conditions= '', $params=array()) |
| getUser () |
Detailed Description
RestrictedActiveRecord Class File
- Author:
- zeroByte <dispyfree@googlemail.com>
- Copyright:
- mine LGPLv2 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
Member Function Documentation
RestrictedActiveRecord::afterSave |
( |
| ) |
|
This method takes care to assign individual rights to newly created objects
- Parameters:
-
Reimplemented in RestrictedTreeActiveRecord.
RestrictedActiveRecord::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
- Parameters:
-
RestrictedActiveRecord::generateAccessCheck |
( |
$ |
conditions = '' , |
|
|
$ |
params = array() |
|
) |
| [protected] |
The following functions generates the CDbCriteria necessary to filter all accessable rows The CDbCriteria is solely passsed to the wrapped methods
- Parameters:
-
sql | $conditions | the conditions being passed to the real method |
array | $params | the params being passed to the real method |
- Returns:
- CDbCriteria the criteria assuring that the user only gets what he has access to
The documentation for this class was generated from the following file:
- models/RestrictedActiveRecord.php