Class CInputWidget
CInputWidget is the base class for widgets that collect user inputs.
CInputWidget declares properties common among input widgets. An input widget
can be associated with a data model and an attribute, or a name and a value. If
the former, the name and the value will be generated automatically. Child
classes may use CInputWidget::resolveNameID()
and CInputWidget::hasModel()
.
- CComponent
- CBaseController
- CWidget
- CInputWidget
Indirect known subclasses
X2StarRating
Abstract
Package: system\web\widgets
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/widgets/CInputWidget.php
Package: system\web\widgets
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/widgets/CInputWidget.php
protected
array
|
|
protected
boolean
|
__construct(),
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
init(),
render(),
run(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
public
|
$model |
|
#
the data model associated with this widget. |
public
string
|
$attribute |
|
#
the attribute associated with this widget. The name can contain square brackets (e.g. 'name[1]') which is used to collect tabular data input. |
public
string
|
$name |
|
#
the input name. This must be set if |
public
string
|
$value |
|
#
the input value |
public
array
|
$htmlOptions | array() |
#
additional HTML options to be rendered in the input tag |
$actionPrefix,
$skin
|
$controller,
$id,
$owner,
$viewPath
|