本文整理汇总了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';
}
}
}
}