| Current Path : /var/www/html/sprm/backend/models/ |
| Current File : /var/www/html/sprm/backend/models/PublicationUploadDoc.php |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "publication_upload_doc".
*
* @property int $id
* @property int $parent_id
* @property string $title
* @property string $pdf_url
* @property int $sorting
* @property string $created_dt
* @property int $created_by
* @property string $updated_dt
* @property int $updated_by
*/
class PublicationUploadDoc extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'publication_upload_doc';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['parent_id', 'sorting', 'created_by', 'updated_by'], 'integer'],
[['created_dt', 'updated_dt', 'title', 'pdf_url', 'sorting', 'parent_id', 'alt_url', 'total_pages', 'total_size', 'title_en', 'title_ch'], 'safe'],
[['title', 'pdf_url'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => Yii::t('app', 'ID'),
'parent_id' => Yii::t('app', 'Parent ID'),
'title' => Yii::t('app', 'Tajuk Dokumen'),
'title_en' => Yii::t('app', 'Tajuk Dokumen (EN)'),
'title_ch' => Yii::t('app', 'Tajuk Dokumen (CH)'),
'pdf_url' => Yii::t('app', 'Muat Naik PDF'),
'sorting' => Yii::t('app', 'Turutan'),
'created_dt' => Yii::t('app', 'Created Dt'),
'created_by' => Yii::t('app', 'Created By'),
'updated_dt' => Yii::t('app', 'Updated Dt'),
'updated_by' => Yii::t('app', 'Updated By'),
];
}
}