Class JSONFieldsBehavior
Enables automatic decoding/encoding of field values
- CComponent
- CBehavior implements IBehavior
- CModelBehavior
- CActiveRecordBehavior
- TransformedFieldStorageBehavior
- JSONFieldsBehavior
Direct known subclasses
NormalizedJSONFieldsBehaviorIndirect known subclasses
JSONFieldsDefaultValuesBehavior
public
|
#
packAttribute( mixed $name )
In child classes, this method takes the "working"/"unpacked" value of the attribute, and returns the value that is to be stored in the database. |
public
|
#
unpackAttribute( mixed $name )
In child classes, this method returns the "working" value, after retrieval from the database. |
afterFind(),
afterSave(),
beforeSave(),
packAll(),
unpackAll()
|
afterDelete(),
beforeCount(),
beforeDelete(),
beforeFind(),
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()
|
$hasOptions,
$transformAttributes
|
$owner
|
$enabled
|