skeeks\cms\relatedProperties\propertyTypes\PropertyTypeText::fieldElements PHP Method

fieldElements() public static method

public static fieldElements ( )
    public static function fieldElements()
    {
        return ['textarea' => \Yii::t('skeeks/cms', 'Text field') . ' (textarea)', 'textInput' => \Yii::t('skeeks/cms', 'Text string') . ' (input)', 'hiddenInput' => \Yii::t('skeeks/cms', 'Скрытое поле') . ' (hiddenInput)', 'default_value' => \Yii::t('skeeks/cms', 'Default Value')];
    }

Usage Example

コード例 #1
0
ファイル: _formPropertyTypeText.php プロジェクト: Liv1020/cms
<?php

/**
 * @author Semenov Alexander <*****@*****.**>
 * @link http://skeeks.com/
 * @copyright 2010 SkeekS (СкикС)
 * @date 09.06.2015
 */
use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
$form = ActiveForm::begin();
?>
    <?php 
echo $form->fieldSelect($model, 'fieldElement', \skeeks\cms\relatedProperties\propertyTypes\PropertyTypeText::fieldElements());
?>
    <?php 
echo $form->fieldInputInt($model, 'rows');
?>
    <?php 
echo $form->buttonsStandart($model);
ActiveForm::end();
All Usage Examples Of skeeks\cms\relatedProperties\propertyTypes\PropertyTypeText::fieldElements