| Current Path : /var/www/html/akept/backend/modules/chat/models/ |
| Current File : /var/www/html/akept/backend/modules/chat/models/ChatMenu.php |
<?php
namespace backend\modules\chat\models;
use Yii;
/**
* This is the model class for table "chat_menu".
*
* @property int $id
* @property string|null $title
* @property string|null $descr
* @property string|null $thumbnail
* @property string|null $created_at
* @property string|null $created_by
* @property string|null $updated_at
* @property string|null $updated_by
*/
class ChatMenu extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'chat_menu';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['created_at', 'updated_at', 'title', 'descr', 'thumbnail', 'created_by', 'updated_by', 'sorting'], 'safe'],
[['title', 'status'], 'required'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'title' => 'Title',
'descr' => 'Description',
'thumbnail' => 'Thumbnail',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
];
}
}