| Current Path : /var/www/html/dvs/backend/models/frontendcontenthistory/ |
| Current File : /var/www/html/dvs/backend/models/frontendcontenthistory/FrontendContentHistory.php |
<?php
namespace backend\models\frontendcontenthistory;
use Yii;
/**
* This is the model class for table "frontend_content_history".
*
* @property int $content_history_id
* @property int $history_content_id
* @property string $history_content_title
* @property string $history_content
* @property int $history_page_id
* @property int $history_category_id
* @property string $created_at
* @property int $created_by
*/
class FrontendContentHistory extends yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'frontend_content_history';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['history_content_id', 'history_page_id', 'history_category_id', 'created_by'], 'integer'],
[['history_content'], 'string'],
[['created_at'], 'safe'],
[['history_content_title'], 'string', 'max' => 250],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'content_history_id' => Yii::t('app', 'Content History ID'),
'history_content_id' => Yii::t('app', 'History Content ID'),
'history_content_title' => Yii::t('app', 'History Content Title'),
'history_content' => Yii::t('app', 'History Content'),
'history_page_id' => Yii::t('app', 'History Page ID'),
'history_category_id' => Yii::t('app', 'History Category ID'),
'created_at' => Yii::t('app', 'Created At'),
'created_by' => Yii::t('app', 'Created By'),
];
}
}