| Current Path : /var/www/html/drsa/frontend/models/ |
| Current File : /var/www/html/drsa/frontend/models/ModuleAppServices.php |
<?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "module_app_services".
*
* @property int $id
* @property string $type
* @property string $name
* @property string $email
* @property string $phone
* @property string $status
* @property string $descr
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*/
class ModuleAppServices extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'module_app_services';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['name', 'email', 'phone', 'type', 'ministry', 'agency'], 'required', 'message' => '{attribute} tidak boleh kosong'],
[['descr', 'created_at', 'updated_at', 'status', 'created_by', 'updated_by'], 'safe'],
[['email'], 'email', 'message' => '{attribute} format tidak betul'],
[['phone'], 'number', 'message' => '{attribute} hanya nombor sahaja dibenarkan'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'type' => 'Kategori Perkhidmatan',
'name' => 'Nama',
'email' => 'Alamat E-mel',
'phone' => 'Nombor Telefon',
'status' => 'Status',
'descr' => 'Keterangan Perkhidmatan Diperlukan',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
'ministry' => 'Kementerian / SUK',
'agency' => 'Agensi'
];
}
}