Class ControllerPermissionsBehavior
Description of ControllerPermissionsBehavior
- CComponent
- CBehavior implements IBehavior
- ControllerPermissionsBehavior
Direct known subclasses
X2ControllerPermissionsBehavior
Abstract
Package: application\components\permissions
Located at x2engine/protected/components/permissions/ControllerPermissionsBehavior.php
Package: application\components\permissions
Located at x2engine/protected/components/permissions/ControllerPermissionsBehavior.php
abstract public
boolean
|
#
beforeAction( string $action = null )
Extension of a base Yii function, this method is run before every action in a controller. If true is returned, it procedes as normal, otherwise it can redirect to the login page or generate a 403 error. |
abstract public
boolean
|
#
checkPermissions( mixed & $model, string $action = null )
Determines if we have permission to edit something based on the assignedTo field. |
abstract public
array
|
#
formatMenu( array $array, array $params = array() )
Format the left sidebar menu of links to remove items which a user is not allowed to perform due to role settings. |
attach(),
detach(),
events(),
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()
|
$enabled,
$owner
|