Your IP : 216.73.216.79


Current Path : /var/www/html/biosecurity/backend/modules/formapplicationb/models/
Upload File :
Current File : /var/www/html/biosecurity/backend/modules/formapplicationb/models/Formapplicationb.php

<?php

namespace backend\modules\formapplicationb\models;

use Yii;

/**
 * This is the model class for table "formapplicationb".
 *
 * @property int $id
 * @property string $organization
 * @property string $applicant_name
 * @property string $applicant_position
 * @property string $tel_office
 * @property string $tel_mobile
 * @property string $fax_no
 * @property string $email
 * @property string $address
 */
class Formapplicationb extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'formapplicationb';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['address'], 'string'],
            [['organization', 'applicant_name', 'applicant_position', 'tel_office', 'tel_mobile', 'fax_no', 'email','gender'], 'required'],
            [['organization', 'applicant_name', 'applicant_position', 'tel_office', 'tel_mobile', 'fax_no', 'email'], 'string', 'max' => 255],
            [['tel_office', 'tel_mobile', 'fax_no'], 'number'],
            [['email'], 'email'],
            [['email'], 'unique'],
            
	];
    }


    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'organization' => 'Organization',
            'applicant_name' => 'Applicant Name',
            'applicant_position' => 'Applicant Position',
            'tel_office' => 'Tel Office',
            'tel_mobile' => 'Tel Mobile',
            'fax_no' => 'Fax No',
            'email' => 'Email',
            'address' => 'Address',
            'gender' => 'gender',
        ];
    }
}