Class CFormModel
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 CModel::rules()
to declare validation rules that should be applied to the
attributes.
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- CFormModel
Direct known subclasses
CalendarEvent, ContactForm, EventCommentPublisherFormModel, EventPublisherFormModel, FiltersForm, InlineEmail, MassActionFormModel, PasswordResetForm, X2FormModelIndirect known subclasses
ActionFormModel, ActionFormModelBase, NoteFormModel, TestEmailActionForm, TimeFormModel, UploadLogoFormModel, CalendarEventFormModel, CallFormModel, CreatePageFormModel, EditMobileFormsFormModel, EventFormModel, GlobalCSSFormModel, GlobalImportFormModel, LoginForm
Package: system\web
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/CFormModel.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/CFormModel.php
public
|
|
public
|
|
public
array
|
#
attributeNames( )
Returns the list of attribute names. By default, this method returns all public properties of the class. You may override this method to change the default. |
$attributes,
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|