Class FileFieldBehavior
Manages file upload for filename fields. If file fails to be saved,
save/update will be cancelled.
-
CComponent
-
CBehavior
implements
IBehavior
-
CModelBehavior
-
CActiveRecordBehavior
-
X2ActiveRecordBehavior
-
FileFieldBehavior
Methods summary
public
|
|
public
array
|
#
events( )
Declares events and the corresponding event handler methods. If you override
this method, make sure you merge the parent result to the return value.
Declares events and the corresponding event handler methods. If you override
this method, make sure you merge the parent result to the return value.
Returns
array events (array keys) and the corresponding event handler methods (array values).
See
CBehavior::events
Overrides
CActiveRecordBehavior::events()
|
public
|
#
beforeSave( CModelEvent $evt )
Responds to CActiveRecord::onBeforeSave event. Override this method
and make it public if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to
quit the saving process.
Responds to CActiveRecord::onBeforeSave event. Override this method
and make it public if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to
quit the saving process.
Parameters
- $evt
CModelEvent $event event parameter
Overrides
CActiveRecordBehavior::beforeSave()
|
Methods inherited from CActiveRecordBehavior
afterDelete(),
afterFind(),
afterSave(),
beforeCount(),
beforeDelete(),
beforeFind()
|
Methods inherited from CModelBehavior
afterConstruct(),
afterValidate(),
beforeValidate()
|
Methods inherited from CBehavior
attach(),
detach(),
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()
|
Constants summary
integer |
IMAGE
|
1 |
|
Magic properties inherited from CActiveRecordBehavior
$owner
|
Magic properties inherited from CBehavior
$enabled
|