/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/Work.php
53 строки
951 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 "work". * * @property int $id * @property string $title * @property int $sort * @property string $icon * @property string $active */ class Work extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'work'; } /** * @inheritdoc */ public function rules() { return [ [['title'], 'required'], [['sort'], 'integer'], [['active'], 'string'], [['title'], 'string', 'max' => 255], [['icon'], 'string', 'max' => 10], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'title' => 'Title', 'sort' => 'Sort', 'icon' => 'Icon', 'active' => 'Active', ]; } }