/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/FormType.php
46 строк
784 B
Kokorin Pavel
copy past sta files
22 апр 2020, 11:01
22 апр 2020, 11:01
6fdb817
Код
Авторство
О чём код?
<?php namespace common\models; use Yii; /** * This is the model class for table "form_type". * * @property int $id * @property string $name * @property string $active */ class FormType extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return 'form_type'; } /** * {@inheritdoc} */ public function rules() { return [ [['active'], 'string'], [['name'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'name' => Yii::t('app', 'Name'), 'active' => Yii::t('app', 'Active'), ]; } }