本文整理匯總了PHP中MemberModel::GetMemberProcess方法的典型用法代碼示例。如果您正苦於以下問題:PHP MemberModel::GetMemberProcess方法的具體用法?PHP MemberModel::GetMemberProcess怎麽用?PHP MemberModel::GetMemberProcess使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MemberModel
的用法示例。
在下文中一共展示了MemberModel::GetMemberProcess方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetMember
public function GetMember($param)
{
$param['device'] = DEVICE_TYPE;
$param['model'] = DEVICE_MODEL;
$param['os'] = DEVICE_OS;
$param['browser'] = DEVICE_BROWSER;
$param['user_agent'] = htmlentities($_SERVER['HTTP_USER_AGENT']);
$param['expired'] = time() + 60 * 60 * 24 * 7;
// Get MemberData
$data = parent::GetMemberProcess($param);
// Setdata
$this->id = $data['me_id'];
$this->email = $data['me_email'];
$this->name = $data['me_name'];
$this->fname = $data['me_fname'];
$this->lname = $data['me_lname'];
$this->link = $data['me_link'];
$this->verified = $data['me_verified'];
$this->gender = $data['me_gender'];
$this->token_id = $token['token_id'];
$this->token = $token['token'];
$this->register_time = $data['me_register_time'];
$this->age = $data['me_age'];
$this->update_time = $data['me_update_time'];
$this->visit_time = $data['me_visit_time'];
$this->priority = $data['me_priority'];
$this->ip = $data['me_ip'];
$this->key = $data['me_key'];
$this->type = $data['me_type'];
$this->status = $data['me_status'];
$this->total_post = parent::TotalPostProcess($param);
$this->total_photo = parent::TotalPhotoProcess($param);
if ($this->status == 'active') {
$this->status_text = 'ปกติ';
} else {
if ($this->status == 'caution') {
$this->status_text = 'ถูกเตือน';
} else {
if ($this->status == 'banned') {
$this->status_text = 'ถูกยกเลิก';
} else {
$this->status_text = 'n/a';
}
}
}
}