| Current Path : /var/www/html/chatbot/backend/models/ |
| Current File : /var/www/html/chatbot/backend/models/ContentFaq.php |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "content_faq".
*
* @property int $faq_id
* @property int $faq_no
* @property string $faq_question
* @property string $faq_answer
* @property int $faq_status 0-Tidak Aktif,1-Aktif
* @property string $created_at
* @property int $created_by
* @property string $updated_at
* @property int $updated_by
*/
class ContentFaq extends \common\models\Dermaga
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'content_faq';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['faq_no', 'faq_status', 'created_by', 'updated_by'], 'integer'],
[['faq_question_my', 'faq_question_en', 'faq_answer_my', 'faq_answer_en'], 'string'],
[['created_at', 'updated_at'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'faq_id' => Yii::t('app', 'Faq ID'),
'faq_no' => Yii::t('app', 'Susunan'),
'faq_question_my' => Yii::t('app', 'Soalan'),
'faq_answer_my' => Yii::t('app', 'Jawapan'),
'faq_question_en' => Yii::t('app', 'Question'),
'faq_answer_en' => Yii::t('app', 'Answer'),
'faq_status' => Yii::t('app', 'Status'),
'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'),
];
}
}