| Current Path : /var/www/html/chatbot/backend/models/ |
| Current File : /var/www/html/chatbot/backend/models/MenuLang.php |
<?php
namespace backend\models;
/**
* This is the model class for table "ost_menu_lang".
*
* @property string $id
* @property string $menu_id
* @property string $menu_txt
* @property string $menu_lang
*/
class MenuLang extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'dmg_menu_lang';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['menu_id'], 'integer'],
[['menu_txt'], 'string', 'max' => 100],
[['menu_lang'], 'string', 'max' => 5],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'menu_id' => yii::t('app','Menu ID'),
'menu_txt' => yii::t('app','Menu Txt'),
'menu_lang' => yii::t('app','Menu Lang'),
];
}
}