| Current Path : /var/www/html/dosm/backend/models/ |
| Current File : /var/www/html/dosm/backend/models/TotKhai.php |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "tot_khai".
*
* @property int $id
* @property string $title
* @property string $url
* @property int $sort
*/
class TotKhai extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'tot_khai';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['title', 'url', 'sort'], 'required'],
[['sort'], 'integer'],
[['title', 'url', 'category'], 'string', 'max' => 100],
[['category'], 'safe']
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'title' => 'Title',
'url' => 'Url',
'sort' => 'Sort',
];
}
}