Class ActionFormModelBase
CFormModel represents a data model that collects HTML form inputs.
Unlike CActiveRecord, the data collected by CFormModel are stored in memory only, instead of database.
To collect user inputs, you may extend CFormModel and define the attributes
whose values are to be collected from user inputs. You may override ActionFormModelBase::rules()
to declare validation rules that should be applied to the
attributes.
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- CFormModel
- X2FormModel
- ActionFormModelBase
Direct known subclasses
ActionFormModel, CallFormModel, EventFormModel, NoteFormModel, TimeFormModelIndirect known subclasses
CalendarEventFormModelPackage: system\web
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/protected/modules/actions/models/ActionFormModelBase.php
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
#
validateAssociationId( mixed $attribute )
if association name is sent without id, try to lookup the record by name and type |
public
|
#
validateAssociationName( mixed $attribute )
Synchronize association name with association type and id |
public
array
|
#
attributeLabels( )
Returns the attribute labels. Attribute labels are mainly used in error
messages of validation. By default an attribute label is generated using |
public
|
|
public
boolean
|
|
public
|
getAllErrorMessages()
|
__construct(),
attributeNames(),
init()
|
addError(),
addErrors(),
afterConstruct(),
afterValidate(),
beforeValidate(),
behaviors(),
clearErrors(),
createValidators(),
generateAttributeLabel(),
getAttributeLabel(),
getAttributes(),
getError(),
getErrors(),
getIterator(),
getSafeAttributeNames(),
getScenario(),
getValidatorList(),
getValidators(),
hasErrors(),
isAttributeRequired(),
isAttributeSafe(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
onAfterConstruct(),
onAfterValidate(),
onBeforeValidate(),
onUnsafeAttribute(),
setAttributes(),
setScenario(),
unsetAttributes()
|
__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
mixed
|
$associationType |
|
|
public
mixed
|
$associationId |
|
|
public
mixed
|
$associationName |
|
|
public
mixed
|
$assignedTo |
|
|
public
mixed
|
$dueDate |
|
|
public
mixed
|
$completeDate |
|
|
public
mixed
|
$timerIds |
|
|
public
boolean
|
$skipActionTimers | true |
$exceptionClass,
$throwExceptions
|
$attributes,
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|