| Current Path : /var/www/html/dosm/backend/models/ |
| Current File : /var/www/html/dosm/backend/models/JournalChapter.php |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "publication_chapter".
*
* @property int $chapter_id
* @property int|null $version_id
* @property string|null $chapter_title
* @property string|null $chapter_ebook1
* @property string|null $chapter_ebook2
* @property string|null $chapter_ebook3
* @property string|null $total_size
* @property string|null $total_pages
* @property string|null $created_at
* @property string|null $created_by
* @property string|null $updated_at
* @property string|null $updated_by
*/
class JournalChapter extends \yii\db\ActiveRecord {
public $uploadImage;
public $uploadArr = [];
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'journal_chapter';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['chapter_title'], 'required'],
[['version_id'], 'integer'],
[['created_at', 'updated_at', 'chapter_ebook1', 'chapter_ebook2', 'chapter_ebook3', 'total_size', 'total_pages', 'created_by', 'updated_by', 'chapter_sort'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'chapter_id' => Yii::t('app', 'Chapter ID'),
'version_id' => Yii::t('app', 'Version ID'),
'chapter_title' => Yii::t('app', 'Subject'),
'chapter_ebook1' => Yii::t('app', 'Upload excel/pdf'),
'chapter_ebook2' => Yii::t('app', 'E-book 2 (PDF)'),
'chapter_ebook3' => Yii::t('app', 'E-book 3 (Image)'),
'total_size' => Yii::t('app', 'Total Size (MB)'),
'total_pages' => Yii::t('app', 'Total Pages'),
'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'),
'chapter_sort' => 'Sorting'
];
}
}