Renders an uneditable text field row.
@param CModel $model the data model
@param string $attribute the attribute
@param array $htmlOptions additional HTML attributes
@return string the generated row
@since 0.9.5
194705
public function uneditableRow($model, $attribute, $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_UNEDITABLE, $model, $attribute, null, $htmlOptions);
	}
357166
public static function dateFormat($model, $attribute, $options = [], $pickerOptions = [])
    {
        $pickerOptions = array_merge([
            'language' => Yii::$app->language == 'en' ? 'en-US' : Yii::$app->language,
            'model' => $model,
            'attribute' => $attribute,
            'options' => ['class' => 'form-control'],
        ], $pickerOptions);
        return array_merge([
            'attribute' => $attribute,
            'format' => 'date',
            'filter' => DatePicker::widget($pickerOptions)
        ], $options);
    }
60434
public function validateAttribute($model, $attribute)
    {
        $value = $model->$attribute;
        $result = $this->validateValue($value);

        if (!empty($result)) {
            $this->addError($model, $attribute, $this->renderMessage($model, $attribute));
        }
    }
1013874
public function renderAttribute($attribute, array $params)
    {
        $twig = $this->getTwig(new EmailTemplateLoader([
            'attributeName' => $attribute,
        ]));

        try {
            $result = $twig->render($this->shortcut, $params);
        } catch (\Exception $e) {
            $result = 'Error compiling email ' . $attribute . ': ' . $e->getMessage();
        }

        return $result;
    }
225245
public function radioButtonListRow($model, $attribute, $data = array(), $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_RADIOLIST, $model, $attribute, $data, $htmlOptions);
	}
1164707
public function textField($model, $attribute, $htmlOptions = array())
    {
        return $this->createInput(TbHtml::INPUT_TYPE_TEXT, $model, $attribute, $htmlOptions);
    }
3758
public function numberField($model, $attribute, $htmlOptions = array())
    {
        return $this->createInput(TbHtml::INPUT_TYPE_NUMBER, $model, $attribute, $htmlOptions);
    }
277789
public static function option($value, $text, array $attributes = array())
    {
        if (!is_null($value)) {
            $attributes['value'] = $value;
        }

        $node = new Node\Option($text);
        return $node->render($attributes);
    }
455575
public function dropDownListFieldRow(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::openTag('div', $this->getBlock('block', $options)).
        Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)).
        $this->dropDownListField($model, $property, $options).
        Html::closeTag('div');
    }
529218
public function checkboxFieldRow(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::openTag('div', $this->getBlock('block', $options)).
        Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)).
        $this->checkBoxField($model, $property, $options).
        Html::closeTag('div');
    }
305509
public function renderField()
    {
        if (null === $this->selector) {
            $options = array();

            list($name, $id) = $this->resolveNameID();

            $options['id'] = $id . '_datetimepicker';
            TbHtml::addCssClass('input-append', $options);

            echo TbHtml::openTag('div', $options);
            if ($this->hasModel()) {
                echo TbHtml::activeTextField($this->model, $this->attribute, $this->htmlOptions);
            } else {
                echo TbHtml::textField($name, $this->value, $this->htmlOptions);
            }
            echo TbHtml::openTag('span', array('class' => 'add-on'));
            echo '<i data-time-icon="' . $this->iconTime . '" data-date-icon="' . $this->iconDate . '"></i>';
            echo TbHtml::closeTag('span');
            echo TbHtml::closeTag('div');
        }
    }
179376
public static function renderHtmlTag(array $attributes, $htmlTag, $shortEndTag)
    {
        $output = '<'.$htmlTag;

        foreach ($attributes as $attr => $value) {
            if (static::isValidValue($value)) {
                $output .= ' '.$attr.'="'.$value.'"';
            }
        }

        $output .= $shortEndTag ? ' />' : '></'.$htmlTag.'>';

        return $output;
    }
940864
protected function getAttributeId($attribute)
	{
		return isset($this->htmlOptions['id'])
			? $this->htmlOptions['id']
			: CHtml::getIdByName(CHtml::resolveName($this->model, $attribute));
	}
1101550
public function passwordFieldRow(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::openTag('div', $this->getBlock('block', $options)).
        Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)).
        $this->passwordField($model, $property, $options).
        Html::closeTag('div');
    }
853163
public function checkBoxListRow($model, $attribute, $data = array(), $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_CHECKBOXLIST, $model, $attribute, $data, $htmlOptions);
	}
662174
public function dateField($model, $attribute, $htmlOptions = array())
    {
        return $this->createInput(TbHtml::INPUT_TYPE_DATE, $model, $attribute, $htmlOptions);
    }
1231699
public static function renderAttributes($attributes)
    {
        $attributes = self::mergeAttributes($attributes);

        $html = '';
        foreach ($attributes as $key => $value) {
            $html .= " {$key}=\"{$value}\"";
        }

        return new HtmlString(trim($html));
    }