Class WidgetLayout
A model class for dealing with "embedded" models, whose attributes are stored
in a database column as a JSON-encoded string, when using JSONEmbeddedModelFieldsBehavior
.
The methods for form inputs and rendering detail should be included in the models themselves, to keep each model self-contained.
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- JSONEmbeddedModel
- WidgetLayout
Abstract
Package: application\models\embedded
Author: Demitri Morgan <demitri@x2engine.com>
Located at x2engine/protected/models/embedded/WidgetLayout.php
Package: application\models\embedded
Author: Demitri Morgan <demitri@x2engine.com>
Located at x2engine/protected/models/embedded/WidgetLayout.php
protected
|
|
public
array
|
|
public
|
|
public
mixed
|
#
getAttributes( array $names = null )
Normalize attribute to properties array structures defined in widget classes |
addError(),
addErrors(),
afterConstruct(),
afterValidate(),
attributeLabels(),
beforeValidate(),
behaviors(),
clearErrors(),
createValidators(),
generateAttributeLabel(),
getAttributeLabel(),
getError(),
getErrors(),
getIterator(),
getSafeAttributeNames(),
getScenario(),
getValidatorList(),
getValidators(),
hasErrors(),
isAttributeRequired(),
isAttributeSafe(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
onAfterConstruct(),
onAfterValidate(),
onBeforeValidate(),
onUnsafeAttribute(),
rules(),
setScenario(),
unsetAttributes(),
validate()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
protected
string
|
$alias |
|
#
$alias |
protected
mixed
|
$_fields |
|
|
public
mixed
|
$whitelist |
|
$_attributeNames,
$exoAttr,
$exoFormName,
$exoModel,
$requiresAdmin
|
$attributes,
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|