Your IP : 216.73.216.79


Current Path : /var/www/html/drsa/frontend/models/
Upload File :
Current File : /var/www/html/drsa/frontend/models/ModuleAppCompetencyPreregistration.php

<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "module_app_competency_attendance".
 *
 * @property int $id
 * @property int $id_competency
 * @property string $name
 * @property string $email
 * @property string $phone
 * @property string $date
 * @property string $created_at
 * @property string $created_by
 * @property string $updated_at
 * @property string $updated_by
 */
class ModuleAppCompetencyPreregistration extends \yii\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return 'module_app_competency_preregistration';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['name', 'email', 'phone', 'ministry', 'agency', 'ic_no'], 'required', 'message' => '{attribute} tidak boleh kosong'],
            [['id_competency', 'created_by', 'updated_by', 'created_at', 'updated_at', 'date', 'approval_status'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'id_competency' => 'Id Competency',
            'name' => 'Nama',
            'email' => 'Alamat Emel',
            'phone' => 'Nombor Telefon',
            'date' => 'Date',
            'created_at' => 'Created At',
            'created_by' => 'Created By',
            'updated_at' => 'Updated At',
            'updated_by' => 'Updated By',
            'ministry' => 'Kementerian / SUK',
            'agency' => 'Agensi',
            'ic_no' => 'No. Kad Pengenalan',
        ];
    }
}