Property | Type | Description | |
---|---|---|---|
$inlineErrors | flag that indicates if the errors should be displayed as blocks. | ||
$input | input class. | ||
$type | the form type. Allowed types are in TYPE_* constants |
Method | Description | |
---|---|---|
captchaRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .captchaRow() | |
checkBoxGroupsList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ### .checkBoxGroupsList() | |
checkBoxGroupsListRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ### .checkBoxGroupsListRow() | |
checkBoxList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ### .checkBoxList() | |
checkBoxListInlineRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ### .checkBoxListInlineRow() | |
checkBoxListRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ### .checkBoxListRow() | |
checkBoxRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .checkBoxRow() | |
ckEditorRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .ckEditorRow() | |
colorpickerRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .colorpickerRow() | |
dateRangeRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .dateRangeRow() | |
datepickerRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .datepickerRow() | |
dropDownListRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ### dropDownListRow() | |
error ( CModel $model, string $attribute, array $htmlOptions = [], boolean $enableAjaxValidation = true, boolean $enableClientValidation = true ) : string | ### .error() | |
errorSummary ( mixed $models, string $header = null, string $footer = null, array $htmlOptions = [] ) : string | ### .errorSummary() | |
fileFieldRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .fileFieldRow() | |
html5EditorRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .html5EditorRow() | |
init ( ) | ### .init() Initializes the widget. | |
inputRow ( string $type, CModel $model, string $attribute, array $data = null, array $htmlOptions = [] ) : string | ### .inputRow() | |
markdownEditorRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .markdownEditorRow() | |
maskedTextField ( CModel $model, string $attribute, array $mask, array $htmlOptions = [] ) : string | Renders a masked text field row | |
maskedTextFieldRow ( CModel $model, string $attribute, array $mask, array $htmlOptions = [] ) : string | ### .maskedTextFieldRow() | |
numberFieldRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | Renders a number field input row. | |
passwordFieldRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .passwordFieldRow() | |
radioButtonGroupsList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ### .radioButtonGroupsList() | |
radioButtonGroupsListRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ### .radioButtonGroupsListRow() | |
radioButtonList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ### .radioButtonList() | |
radioButtonListInlineRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ### .radioButtonListInlineRow() | |
radioButtonListRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ### .radioButtonListRow() | |
radioButtonRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .radioButtonRow() | |
redactorRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .redactorRow() | |
select2Row ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .select2Row() | |
textAreaRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .textAreaRow() | |
textFieldRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .textFieldRow() | |
timepickerRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .timepickerRow() | |
toggleButtonRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .toggleButtonRow() | |
typeAheadField ( CModel $model, string $attribute, array $widgetOptions, array $htmlOptions = [] ) : string | Renders a type ahead field row | |
typeAheadRow ( CModel $model, string $attribute, array $widgetOptions = [], array $htmlOptions = [] ) : string | Renders a typeAhead input row | |
uneditableRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ### .uneditableRow() |
Method | Description | |
---|---|---|
getInputClassName ( ) : string | Returns the input widget class name suitable for the form. | |
inputsList ( boolean $checkbox, CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | Renders an input list. | |
renderError ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | Creates the HTML code wrapping the error text for given model attribute. |
public checkBoxGroupsList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$data | array | value-label pairs used to generate the checkbox list. |
$htmlOptions | array | additional HTML options. |
return | string | the generated checkbox list |
public checkBoxList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$data | array | value-label pairs used to generate the check box list. |
$htmlOptions | array | additional HTML options. |
return | string | the generated check box list |
public colorpickerRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$htmlOptions | array | additional HTML attributes. 'events' and 'options' key specify the events and configuration options of colorpicker respectively. |
return | string | the generated row |
public dateRangeRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ||
$model | CModel | |
$attribute | string | |
$htmlOptions | array | addition HTML attributes. In order to pass initialization parameters to dateRange, you need to set the HTML 'options' key with an array of configuration options. |
return | string |
public datepickerRow ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$htmlOptions | array | additional HTML attributes. 'events' and 'options' key specify the events and configuration options of datepicker respectively. |
return | string | the generated row |
public error ( CModel $model, string $attribute, array $htmlOptions = [], boolean $enableAjaxValidation = true, boolean $enableClientValidation = true ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute name |
$htmlOptions | array | additional HTML attributes to be rendered in the container div tag. |
$enableAjaxValidation | boolean | whether to enable AJAX validation for the specified attribute. |
$enableClientValidation | boolean | whether to enable client-side validation for the specified attribute. |
return | string | the validation result (error display or success message). |
public errorSummary ( mixed $models, string $header = null, string $footer = null, array $htmlOptions = [] ) : string | ||
$models | mixed | the models whose input errors are to be displayed. This can be either a single model or an array of models. |
$header | string | a piece of HTML code that appears in front of the errors |
$footer | string | a piece of HTML code that appears at the end of the errors |
$htmlOptions | array | additional HTML attributes to be rendered in the container div tag. |
return | string | the error summary. Empty if no errors are found. |
protected getInputClassName ( ) : string | ||
return | string | the class name |
public inputRow ( string $type, CModel $model, string $attribute, array $data = null, array $htmlOptions = [] ) : string | ||
$type | string | the input type |
$model | CModel | the data model |
$attribute | string | the attribute |
$data | array | the data for list inputs |
$htmlOptions | array | additional HTML attributes |
return | string | the generated row |
protected inputsList ( boolean $checkbox, CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ||
$checkbox | boolean | flag that indicates if the list is a checkbox-list. |
$model | CModel | the data model |
$attribute | string | the attribute |
$data | array | value-label pairs used to generate the input list. |
$htmlOptions | array | additional HTML options. |
return | string | the generated input list. |
public maskedTextField ( CModel $model, string $attribute, array $mask, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$mask | array | the mask (see {@link http://digitalbush.com/projects/masked-input-plugin}) |
$htmlOptions | array | additional HTML options. |
return | string | the generated masked text field |
public maskedTextFieldRow ( CModel $model, string $attribute, array $mask, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$mask | array | the mask (see {@link http://digitalbush.com/projects/masked-input-plugin}) |
$htmlOptions | array | additional HTML attributes |
return | string | the generated row |
public radioButtonGroupsList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$data | array | value-label pairs used to generate the radio button list. |
$htmlOptions | array | additional HTML options. |
return | string | the generated radio button list |
public radioButtonList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$data | array | value-label pairs used to generate the radio button list. |
$htmlOptions | array | additional HTML options. |
return | string | the generated radio button list |
protected static renderError ( CModel $model, string $attribute, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute name |
$htmlOptions | array | additional HTML attributes to be rendered in the container div tag. |
return | string | the error display. Empty if no errors are found. |
public typeAheadField ( CModel $model, string $attribute, array $widgetOptions, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model |
$attribute | string | the attribute |
$widgetOptions | array | typeAhead options (see {@link http://twitter.github.com/bootstrap/javascript.html#typeahead}) |
$htmlOptions | array | additional HTML options. |
return | string | the generated typeahead field |
public $inlineErrors |