Class X2StaticFieldsBehavior
Allows fields to be defined in an array, instead of in the x2_fields table.
Enables use of features that have a Fields dependency, without having to
subclass X2Model or introduce unnecessary database interaction.
-
CComponent
-
CBehavior
implements
IBehavior
-
X2StaticFieldsBehavior
Methods summary
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
CBehavior::events() . This method will also set enabled to true. Make sure
you've declared handler as public and call the parent implementation if you
override this method.
Attaches the behavior object to the component. The default implementation
will set the owner property and attach event handlers as declared in
CBehavior::events() . This method will also set enabled to true. Make sure
you've declared handler as public and call the parent implementation if you
override this method.
Parameters
- $owner
CComponent $owner the component that this behavior is to be attached to.
Overrides
CBehavior::attach()
|
public
|
|
public
|
#
renderInput( mixed $fieldName, mixed $htmlOptions = array() )
|
Methods inherited from CBehavior
detach(),
events(),
getEnabled(),
getOwner(),
setEnabled()
|
Methods inherited from CComponent
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
Magic properties inherited from CBehavior
$enabled,
$owner
|