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