123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <?php
- /**
- * [WeEngine System] Copyright (c) 2014 WE7.CC
- * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
- */
- 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();
- }
- }
|