You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
2.0 KiB
116 lines
2.0 KiB
<?php
|
|
|
|
namespace We7\Table\Users;
|
|
|
|
class Profile extends \We7Table {
|
|
protected $tableName = 'users_profile';
|
|
protected $primaryKey = 'id';
|
|
protected $field = array(
|
|
'uid',
|
|
'createtime',
|
|
'edittime',
|
|
'realname',
|
|
'nickname',
|
|
'avatar',
|
|
'qq',
|
|
'mobile',
|
|
'fakeid',
|
|
'vip',
|
|
'gender',
|
|
'birthyear',
|
|
'birthmonth',
|
|
'birthday',
|
|
'constellation',
|
|
'zodiac',
|
|
'telephone',
|
|
'idcard',
|
|
'studentid',
|
|
'grade',
|
|
'address',
|
|
'zipcode',
|
|
'nationality',
|
|
'resideprovince',
|
|
'residecity',
|
|
'residedist',
|
|
'graduateschool',
|
|
'company',
|
|
'education',
|
|
'occupation',
|
|
'position',
|
|
'revenue',
|
|
'affectivestatus',
|
|
'lookingfor',
|
|
'bloodtype',
|
|
'height',
|
|
'weight',
|
|
'alipay',
|
|
'msn',
|
|
'email',
|
|
'taobao',
|
|
'site',
|
|
'bio',
|
|
'interest',
|
|
'workerid',
|
|
'send_expire_status',
|
|
'is_send_mobile_status',
|
|
'location',
|
|
);
|
|
protected $default = array(
|
|
'uid' => '',
|
|
'createtime' => '',
|
|
'edittime' => '',
|
|
'realname' => '',
|
|
'nickname' => '',
|
|
'avatar' => '',
|
|
'qq' => '',
|
|
'mobile' => '',
|
|
'fakeid' => '',
|
|
'vip' => '0',
|
|
'gender' => '0',
|
|
'birthyear' => '0',
|
|
'birthmonth' => '0',
|
|
'birthday' => '0',
|
|
'constellation' => '',
|
|
'zodiac' => '',
|
|
'telephone' => '',
|
|
'idcard' => '',
|
|
'studentid' => '',
|
|
'grade' => '',
|
|
'address' => '',
|
|
'zipcode' => '',
|
|
'nationality' => '',
|
|
'resideprovince' => '',
|
|
'residecity' => '',
|
|
'residedist' => '',
|
|
'graduateschool' => '',
|
|
'company' => '',
|
|
'education' => '',
|
|
'occupation' => '',
|
|
'position' => '',
|
|
'revenue' => '',
|
|
'affectivestatus' => '',
|
|
'lookingfor' => '',
|
|
'bloodtype' => '',
|
|
'height' => '',
|
|
'weight' => '',
|
|
'alipay' => '',
|
|
'msn' => '',
|
|
'email' => '',
|
|
'taobao' => '',
|
|
'site' => '',
|
|
'bio' => '',
|
|
'interest' => '',
|
|
'workerid' => '',
|
|
'send_expire_status' => '0',
|
|
'is_send_mobile_status' => '',
|
|
'location' => '',
|
|
);
|
|
|
|
public function getByUid($uid) {
|
|
return $this->query->where('uid', $uid)->get();
|
|
}
|
|
|
|
public function getByMobile($mobile) {
|
|
return $this->query->where('mobile', $mobile)->get();
|
|
}
|
|
}
|