| Current Path : /var/www/html/maiwp/backend/modules/contentVideo/models/ |
| Current File : /var/www/html/maiwp/backend/modules/contentVideo/models/ContentVideo.php |
<?php
namespace backend\modules\contentVideo\models;
use Yii;
/**
* This is the model class for table "content_video".
*
* @property int $video_id
* @property string|null $video_date
* @property string|null $video_category
* @property string|null $video_status
* @property string|null $video_page
* @property string|null $created_at
* @property int|null $created_by
* @property string|null $updated_at
* @property int|null $updated_by
*/
class ContentVideo extends \yii\db\ActiveRecord {
public $video_title;
public $video_location;
public $video_content;
public $video_language;
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'content_video';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['video_title', 'video_language', 'video_page', 'video_status', 'video_url', 'video_code', 'video_date', 'video_source'], 'required'],
[['video_date', 'created_at', 'updated_at', 'video_tag', 'video_location', 'video_source', 'video_img'], 'safe'],
[['created_by', 'updated_by', 'video_sorting'], 'integer'],
[['video_category', 'video_status'], 'string', 'max' => 255],
[['video_code'], 'unique'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'video_id' => Yii::t('app', 'Video ID'),
'video_date' => Yii::t('app', 'Video Date'),
'video_category' => Yii::t('app', 'Category'),
'video_sorting' => Yii::t('app', 'Sorting'),
'video_status' => Yii::t('app', 'Status'),
'video_page' => Yii::t('app', 'Portal Display'),
'created_at' => Yii::t('app', 'Created At'),
'created_by' => Yii::t('app', 'Created By'),
'updated_at' => Yii::t('app', 'Updated At'),
'updated_by' => Yii::t('app', 'Updated By'),
'video_title' => Yii::t('app', 'Title'),
'video_content' => Yii::t('app', 'Content'),
'video_language' => Yii::t('app', 'Language'),
'video_location' => Yii::t('app', 'Location'),
'video_url' => Yii::t('app', 'Video URL'),
'video_source' => Yii::t('app', 'Source'),
'video_img' => Yii::t('app', 'Image Thumbnail'),
'video_code' => Yii::t('app', 'Page Slug'),
];
}
}