| Current Path : /var/www/html/chatbot/backend/models/ |
| Current File : /var/www/html/chatbot/backend/models/RosMakGabungan.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 int $id_pt_gab
* @property string $no_pertubuhan
* @property string $no_cawangan
* @property string $created_date
* @property string $created_by
* @property string $modified_by
* @property string $modified_date
* @property int $id_penyata
* @property string $nama
* @property string $negara
* @property string $kod_status_permohonan
*/
class RosMakGabungan extends yii\db\ActiveRecord
{
/**
* Ubah tableName ke nama table dalam db
* @inheritdoc
*/
public static function tableName()
{
return 'ros_mak_gabungan';
}
/**
* 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 [
[['no_cawangan', 'no_pertubuhan'], 'required'],
[['id_pt_gab', 'id_penyata','kod_status_permohonan'], 'integer'],
[['no_pertubuhan'], 'string','max' => 45],
[['no_cawangan'], 'string','max' => 60],
[['created_by','modified_by'], 'string','max' => 50],
[['nama'], 'string','max' => 200],
[['negara'], 'string','max' => 100],
[['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 [
'id_pt_gab' => Yii::t('app', 'ID'),
'no_pertubuhan' => Yii::t('app', 'No Pertubuhan'),
'no_cawangan' => Yii::t('app', 'Nama No Cawangan'),
'id_penyata' => Yii::t('app', 'ID Penyata'),
'nama' => Yii::t('app', 'Nama'),
'negara' => Yii::t('app', 'Negara'),
'kod_status_permohonan' => Yii::t('app', 'Kod Status Permohonan'),
'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'),
];
}
}