Class ModelPermissionsBehavior
Base class for behaviors respecting the establishment of access permissions
- CComponent
- CBehavior implements IBehavior
- CModelBehavior
- CActiveRecordBehavior
- ModelPermissionsBehavior
Direct known subclasses
X2PermissionsBehavior
Abstract
Package: application\components\permissions
Located at x2engine/protected/components/permissions/ModelPermissionsBehavior.php
Package: application\components\permissions
Located at x2engine/protected/components/permissions/ModelPermissionsBehavior.php
abstract public
CDbCriteria
|
|
abstract public
integer
|
#
getAccessLevel( mixed $uid = null )
Returns a number from 0 to 3 representing the current user's access level using the Yii auth manager Assumes authItem naming scheme like "ContactsViewPrivate", etc. This method probably ought to overridden, as there is no reliable way to determine the module a model "belongs" to. |
abstract public
String
|
#
getAccessConditions( integer $accessLevel )
Generates SQL condition to filter out records the user doesn't have |
abstract public
|
|
abstract public
|
|
public static
|
|
public static
|
afterDelete(),
afterFind(),
afterSave(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeSave(),
events()
|
afterConstruct(),
afterValidate(),
beforeValidate()
|
attach(),
detach(),
getEnabled(),
getOwner(),
setEnabled()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
boolean|string
|
$assignmentAttr |
#
The attribute to use for assignment and ownership. False signifies that it's to be treated as if owned by the system/no one in particular. |
public
boolean|string
|
$visibilityAttr |
#
The attribute to use for visibility settings. False signifies that visibility should be ignored. |
$owner
|
$enabled
|