| Current Path : /var/www/html/dosm/backend/models/ |
| Current File : /var/www/html/dosm/backend/models/ContentPhotoList.php |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "content_photo_list".
*
* @property int $photo_id
* @property int|null $photo_main
* @property int|null $photo_parent_id
* @property string|null $photo_language
* @property int|null $photo_sort
* @property string|null $photo_url
* @property string|null $created_at
* @property string|null $created_by
* @property string|null $updated_at
* @property string|null $updated_by
*/
class ContentPhotoList extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'content_photo_list_international';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
// [[''], 'required'],
// [['photo_url'], 'required', 'on' => 'create'],
[['photo_main', 'photo_parent_id', 'photo_sort'], 'integer'],
[['created_at', 'updated_at', 'photo_gallery_id', 'photo_url', 'created_by', 'updated_by','embed_youtube','video_upload'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'photo_id' => Yii::t('app', 'Photo ID'),
'photo_main' => Yii::t('app', 'Photo Main'),
'photo_parent_id' => Yii::t('app', 'Photo Parent ID'),
'photo_sort' => Yii::t('app', 'Sorting'),
'photo_url' => Yii::t('app', 'Photo'),
'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'),
'embed_youtube' => Yii::t('app', 'Youtube Embed URL'),
'video_upload' => Yii::t('app', 'Upload Video'),
];
}
}