Renders Date format Grid column
@param $model
@param $attribute
@param array $options
@param array $pickerOptions
@return array
@throws \Exception
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);
    }
932167
public function setConverterOptions($converter, $attribute, array $converterOptions)
    {
        if (!isset($this->converterOptions[$converter])) {
            $this->converterOptions[$converter] = [];
        }
        $this->converterOptions[$converter][strtolower($attribute)] = $converterOptions;
    }
393309
public static function listFormat($model, $attribute, $options = [])
    {
        $listFunction = function ($model, $attribute) {
            $method = static::listName($attribute);
            $key = get_class($model) . $attribute;
            return static::$lists[$key] = method_exists(get_class($model), $method) && isset(static::$lists[$key])
                ? static::$lists[$key] : $model->$method();
        };

        $list = $listFunction($model, $attribute);
        return array_merge([
            'attribute' => $attribute,
            'format' => 'raw',
            'value' => !$model->isNewRecord
                ? @$list[$model->$attribute]
                : function ($data) use ($listFunction, $attribute) {
                    return @$listFunction($data, $attribute)[$data->$attribute];
                },
            'filter' => $list ? : null,
            'visible' => $model->isAttributeSafe($attribute),
        ], $options);
    }
732136
public static function activeCheckboxSmart($model, $attribute, $options = [])
    {
        $name = isset($options['name']) ? $options['name'] : static::getInputName($model, $attribute);
        $value = static::getAttributeValue($model, $attribute);
        if (!array_key_exists('value', $options)) {
            $options['value'] = '1';
        }
        if (!array_key_exists('uncheck', $options)) {
            $options['uncheck'] = '0';
        }
        if (!array_key_exists('label', $options)) {
            $options['label'] = static::encode($model->getAttributeLabel(static::getAttributeName($attribute)));
        }
        $checked = "$value" === "{$options['value']}";
        if (!array_key_exists('id', $options)) {
            $options['id'] = static::getInputId($model, $attribute);
        }
        return static::checkboxSmart($name, $checked, $options);
    }
779425
public function searchFieldRow(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->searchField($model, $property, $options).
        Html::closeTag('div');
    }
903992
public function captchaRow($model, $attribute, $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_CAPTCHA, $model, $attribute, null, $htmlOptions);
	}
400078
public function monthFieldRow(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->monthField($model, $property, $options).
        Html::closeTag('div');
    }
254490
public function dropDownListRow($model, $attribute, $data = array(), $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_DROPDOWN, $model, $attribute, $data, $htmlOptions);
	}
995573
public function dateFieldRow(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->dateField($model, $property, $options).
        Html::closeTag('div');
    }
535049
public function radioButtonListInlineRow($model, $attribute, $data = array(), $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_RADIOLIST_INLINE, $model, $attribute, $data, $htmlOptions);
	}
467411
public function formatTime($field, $value, array $options)
    {
        if ($value === null) {
            return $this->Html->label(__d('crud', 'N/A'), ['type' => 'info']);
        }
        $format = isset($options['format']) ? $options['format'] : null;

        if (is_int($value) || is_string($value) || $value instanceof DateTime || $value instanceof DateTimeImmutable) {
            return $this->Time->nice($value, $format);
        }

        return $this->Html->label(__d('crud', 'N/A'), ['type' => 'info']);
    }
570068
public static function activeCheckBoxControlGroup($model, $attribute, $htmlOptions = array())
    {
        return self::activeControlGroup(self::INPUT_TYPE_CHECKBOX, $model, $attribute, $htmlOptions);
    }
915158
public function checkBoxRow($model, $attribute, $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_CHECKBOX, $model, $attribute, null, $htmlOptions);
	}
1164707
public function textField($model, $attribute, $htmlOptions = array())
    {
        return $this->createInput(TbHtml::INPUT_TYPE_TEXT, $model, $attribute, $htmlOptions);
    }
1008475
public function radioButtonRow($model, $attribute, $htmlOptions = array())
	{
		return $this->inputRow(CiiInput::TYPE_RADIO, $model, $attribute, null, $htmlOptions);
	}
1336210
public function render(Field $field, $data, array $options)
    {
        $value = $this->dataExtractor->get($field, $data);
        if (null === $value) {
            return null;
        }

        Assert::isInstanceOf($value, \DateTimeInterface::class);

        return $value->format($options['format']);
    }
799673
public function checkBox($model, $attribute, $htmlOptions = array())
    {
        return $this->createInput(TbHtml::INPUT_TYPE_CHECKBOX, $model, $attribute, $htmlOptions);
    }