Your IP : 216.73.216.79


Current Path : /var/www/html/jppmintranetv2/frontend/models/
Upload File :
Current File : /var/www/html/jppmintranetv2/frontend/models/PolicyAcknowledgeVendor.php

<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "policy_acknowledge_vendor".
 *
 * @property int $id
 * @property string|null $ic_no
 * @property string|null $fullname
 * @property string|null $position
 * @property string|null $company_name
 * @property string|null $email
 * @property string|null $phone
 * @property string|null $submit_at
 */
class PolicyAcknowledgeVendor extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'policy_acknowledge_vendor';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['submit_at'], 'safe'],
            [['ic_no', 'fullname', 'position', 'company_name', 'email', 'phone'], 'required', 'message' => '{attribute} tidak boleh kosong'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'ic_no' => 'No. Kad Pengenalan',
            'fullname' => 'Nama Penuh',
            'position' => 'Jawatan',
            'company_name' => 'Nama Syarikat',
            'email' => 'Alamat Emel',
            'phone' => 'Nombor Telefon',
            'submit_at' => 'Submit At',
        ];
    }
}