Your IP : 216.73.216.79


Current Path : /var/www/html/agcintranet/common/models/
Upload File :
Current File : /var/www/html/agcintranet/common/models/Profile.php

<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "profile".
 *
 * @property integer $id
 * @property integer $user_id
 * @property string $fullname
 * @property string $email
 * @property string $phone
 * @property string $site_lang
 * @property string $register_date
 * @property string $update_date
 */
class Profile extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dmg_user_info';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid','user_id'], 'integer'],
            [['register_date', 'update_date'], 'safe'],
            [['staff_name','company_email','fullname', 'email'], 'string', 'max' => 100],
            [['office_no','phone'], 'string', 'max' => 20],
            [['site_lang'], 'string', 'max' => 5],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'user_id' => Yii::t('app', 'User ID'),
            'userid' => Yii::t('app', 'User ID'),
            'fullname' => Yii::t('app', 'Fullname'),
            'staff_name' => Yii::t('app', 'Name'),
            'company_email' => Yii::t('app', 'Official Email'),
            'email' => Yii::t('app', 'Email'),
            'phone' => Yii::t('app', 'Phone'),
            'site_lang' => Yii::t('app', 'Site Lang'),
            'register_date' => Yii::t('app', 'Register Date'),
            'update_date' => Yii::t('app', 'Update Date'),
        ];
    }
}