/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/UserReview.php
57 строк
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 "user_review". * * @property int $id * @property string $name * @property string $email * @property string $phone * @property string $message * @property int $sort * @property string $active */ class UserReview extends \yii\db\ActiveRecord { public $fullname = ''; /** * {@inheritdoc} */ public static function tableName() { return 'user_review'; } /** * {@inheritdoc} */ public function rules() { return [ [['message'], 'required'], [['message', 'active'], 'string'], [['sort'], 'integer'], [['name', 'email', 'phone'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'name' => Yii::t('app', 'Name'), 'email' => Yii::t('app', 'Email'), 'phone' => Yii::t('app', 'Phone'), 'message' => Yii::t('app', 'Message'), 'sort' => Yii::t('app', 'Sort'), 'active' => Yii::t('app', 'Active'), ]; } }