当前位置: 首页>>代码示例>>PHP>>正文


PHP MemberModel::TotalPostProcess方法代码示例

本文整理汇总了PHP中MemberModel::TotalPostProcess方法的典型用法代码示例。如果您正苦于以下问题:PHP MemberModel::TotalPostProcess方法的具体用法?PHP MemberModel::TotalPostProcess怎么用?PHP MemberModel::TotalPostProcess使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MemberModel的用法示例。


在下文中一共展示了MemberModel::TotalPostProcess方法的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';
             }
         }
     }
 }
开发者ID:jimmy18dev,项目名称:dailypoint,代码行数:46,代码来源:member.controller.php


注:本文中的MemberModel::TotalPostProcess方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。