/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/PhotoReview.php
60 строк
1 KB
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 "photo_review". * * @property int $id * @property string $active * @property string $name * @property int $order */ class PhotoReview extends \yii\db\ActiveRecord { function behaviors() { return [ 'images' => [ 'class' => 'dvizh\gallery\behaviors\AttachImages', 'mode' => 'single', ] ]; } /** * {@inheritdoc} */ public static function tableName() { return 'photo_review'; } /** * {@inheritdoc} */ public function rules() { return [ [['active'], 'string'], [['name'], 'required'], [['order'], 'integer'], [['name'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'active' => 'Active', 'name' => 'Name', 'order' => 'Order', ]; } }