Yii Access Control Lists  0.8
Advanced and convenient Access Control
Public Member Functions | Public Attributes | Protected Member Functions
RestrictedActiveRecord Class Reference
Inheritance diagram for RestrictedActiveRecord:
RestrictedTreeActiveRecord

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>

Member Function Documentation

RestrictedActiveRecord::afterSave ( )

This method takes care to assign individual rights to newly created objects

Parameters:
CEvent$evt

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:
CEvent$evt
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$conditionsthe conditions being passed to the real method
array$paramsthe 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:
 All Classes Functions