Class CommonControllerBehavior
A behavior for controllers; contains methods common to controllers whether or not they are children of x2base.
All controllers that use this behavior must declare the "modelClass" property.
- CComponent
- CBehavior implements IBehavior
- CommonControllerBehavior
Located at x2engine/protected/components/CommonControllerBehavior.php
public
|
#
attach( CComponent $owner )
Attaches the behavior object to the component. The default implementation
will set the owner property and attach event handlers as declared in
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
type
|
|
public
|
|
public
|
#
errorMessage( type $message, mixed $code = 500, mixed $type = "PHP Error" )
For server config or other expected errors which are not bugs but prevent the software from functioning properly. |
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()
|
public
boolean
|
$redirectOnNullModel | true |
|
public
boolean
|
$throwOnNullModel | true |
public
|
$model |
#
(read-only); in the context of viewing or updating a record, this contains
the active record object corresponding to that record. Its value is set by
calling |
public
string
|
$resolvedModelClass |
#
(read-only) The class name of the model to use for model. In some cases (i.e. some older custom modules) the class name will not be specified in the controller, and thus it is useful to guess its corresponding model's name based on its own name. |
$enabled,
$owner
|