Your IP : 216.73.216.79


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

<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "module_app_services_drsa".
 *
 * @property int $id
 * @property string $name
 * @property string $email
 * @property string $phone
 * @property string $org_type
 * @property string $org_name
 * @property string $gred
 * @property string $created_at
 * @property string $created_by
 * @property string $updated_at
 * @property string $updated_by
 */
class ModuleAppServicesDrsa extends \yii\db\ActiveRecord {

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

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['created_by', 'updated_by', 'created_at', 'updated_at', 'status', 'descr'], 'safe'],
            [['name', 'email', 'phone', 'org_type', 'org_name', 'gred',], 'required', 'message' => '{attribute} tidak boleh kosong'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'name' => 'Nama',
            'email' => 'Alamat Emel',
            'phone' => 'Nombor Telefon',
            'org_type' => 'Jenis Organisasi',
            'org_name' => 'Kementerian / Agensi / SUK',
            'gred' => 'Gred',
            'created_at' => 'Created At',
            'created_by' => 'Created By',
            'updated_at' => 'Updated At',
            'updated_by' => 'Updated By',
            'status' => 'Status',
            'descr' => 'Keterangan Perkhidmatan Diperlukan',
        ];
    }

}