| Current Path : /var/www/html/school/backend/models/ |
| Current File : /var/www/html/school/backend/models/RosMakBank.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_bank
* @property string $no_pertubuhan
* @property string $no_cawangan
* @property string $created_date
* @property string $created_by
* @property string $modified_by
* @property string $modified_dateid_penyata
* @property int $id_penyata
* @property string $nama_bank
* @property string $nom_akaun
* @property string $kod_status_permohonan
*/
class RosMakBank extends yii\db\ActiveRecord
{
/**
* Ubah tableName ke nama table dalam db
* @inheritdoc
*/
public static function tableName()
{
return 'ros_mak_bank';
}
/**
* 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'], 'required'],
[['id_pt_bank', 'id_penyata','kod_status_permohonan'], 'integer'],
[['no_pertubuhan'], 'string','max' => 45],
[['no_cawangan'], 'string','max' => 60],
[['created_by','modified_by'], 'string','max' => 50],
[['nama_bank'], 'string','max' => 200],
[['nom_akaun'], '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_bank' => Yii::t('app', 'ID'),
'no_pertubuhan ' => Yii::t('app', 'No Pertubuhan'),
'no_cawangan' => Yii::t('app', 'No Cawangan'),
'id_penyata' => Yii::t('app', 'ID Penyata'),
'nama_bank' => Yii::t('app', 'Nama Bank'),
'nom_akaun' => Yii::t('app', 'No Akaun'),
'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'),
];
}
}