| Current Path : /var/www/html/chatbot/backend/models/ |
| Current File : /var/www/html/chatbot/backend/models/AdmStatusPermohonan.php |
<?php
namespace backend\models;
use Yii;
/**
* masukkan bidang table db di dalam senarai ini
* This is the model class for table "content_faq".
*
* @property string $kod_status_permohonana
* @property string $status_permohonan
* @property string $status_desc
* @property string $created_date
* @property string $created_by
* @property string $modified_by
* @property string $modified_date
* @property int $aktif 0-Tidak Aktif,1-Aktif
* @property int $is_penyata
* @property int $is_view
* @property int $is_rayuan
* @property int $is_main 0-Tidak Aktif,1-Aktif
* @property int $is_laporan 0-Tidak Aktif,1-Aktif
*/
class AdmStatusPermohonan extends yii\db\ActiveRecord
{
/**
* Ubah tableName ke nama table dalam db
* @inheritdoc
*/
public static function tableName()
{
return 'adm_status_permohonan';
}
/**
* Ubah atau tambah bidang db berdasarkan jenis data, jika perlu, letakkan property required. jika date, time, letakkan di bawah safe
* @inheritdoc
*/
public function rules()
{
return [
[['status_permohonan', 'status_desc'], 'required'],
[['kod_status_permohonan', 'aktif', 'is_laporan'], 'integer'],
[['status_permohonan'], 'string','max' => 30],
[['status_desc'], 'string','max' => 255],
[['created_by'], 'string','max' => 50],
[['modified_by'], 'string','max' => 50],
[['is_penyata'], 'string','max' => 50],
[['is_view'], 'string','max' => 50],
[['is_rayuan'], 'string','max' => 50],
[['created_date', 'modified_date'], 'safe'],
];
}
/**
* Ubah atau tambah label untuk setiap bidang. Fungi Yii::t adalah untuk kegunaan fungsi terjemahan
* @inheritdoc
*/
public function attributeLabels()
{
return [
'kod_status_permohonan' => Yii::t('app', 'Kod Status Permohonan'),
'status_permohonan' => Yii::t('app', 'Status Permohonan'),
'status_desc' => Yii::t('app', 'Keterangan Status'),
'is_penyata' => Yii::t('app', 'Is Penyata'),
'aktif' => Yii::t('app', 'Aktif'),
'is_view' => Yii::t('app', 'Is View'),
'is_laporan' => Yii::t('app', 'Is Laporan'),
'is_rayuan' => Yii::t('app', 'Is Rayuan'),
'created_date' => Yii::t('app', 'Created At'),
'created_by' => Yii::t('app', 'Created By'),
'modified_date' => Yii::t('app', 'Updated At'),
'modified_by' => Yii::t('app', 'Updated By'),
];
}
}