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


PHP Mobile::logic方法代码示例

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


在下文中一共展示了Mobile::logic方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getUserInfo

 function getUserInfo()
 {
     $uid = intval($this->Get['uid']);
     if ($uid < 1) {
         $uid = MEMBER_ID;
     }
     $is_follow = false;
     $is_blacklist = false;
     if ($uid > 0) {
         $member = Mobile::convert($this->TopicLogic->GetMember($uid));
         if (empty($member)) {
             $error_code = 400;
         } else {
             if ($member['uid'] != MEMBER_ID) {
                 $is_follow = chk_follow(MEMBER_ID, $member['uid']);
                 if (!$is_follow) {
                     Mobile::logic('friend');
                     $FriendLogic = new FriendLogic();
                     $is_blacklist = $FriendLogic->check($member['uid']);
                 }
             }
         }
     } else {
         Mobile::show_message(400);
     }
     include template('user_info');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:27,代码来源:member.mod.php

示例2: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Mobile::logic('pm');
     $this->MyPmLogic = new MyPmLogic();
     Mobile::is_login();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:8,代码来源:pm.mod.php

示例3: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->Config = $config;
     Mobile::is_login();
     Mobile::logic('misc');
     $this->MiscLogic = new MiscLogic();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:9,代码来源:misc.mod.php

示例4: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic($this);
     Mobile::logic('friend');
     $this->FriendLogic = new FriendLogic();
     Mobile::is_login();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:10,代码来源:friend.mod.php

示例5: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->ID = jget('id', 'int');
     Mobile::logic('mblog');
     $this->MblogLogic = new MblogLogic();
     Mobile::logic('friend');
     $this->FriendLogic = new FriendLogic();
     $this->CacheConfig = jconf::get('cache');
     $this->ShowConfig = jconf::get('show');
     Mobile::is_login();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:13,代码来源:friend.mod.php

示例6: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->ID = jget('id', 'int');
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic($this);
     Mobile::logic('tag');
     $this->MTagLogic = new MTagLogic();
     $this->CacheConfig = jconf::get('cache');
     $this->ShowConfig = jconf::get('show');
     Mobile::is_login();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:13,代码来源:tag.mod.php

示例7: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->Config = $config;
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic($this);
     Mobile::logic('mblog');
     $this->MblogLogic = new MblogLogic();
     $this->ID = jget('id', 'int');
     if (!in_array($this->Code, array('new', 'hot_comments', 'hot_forwards'))) {
         Mobile::is_login();
     }
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:14,代码来源:topic.mod.php

示例8: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->ID = jget('id', 'int');
     Mobile::logic('mblog');
     $this->MblogLogic = new MblogLogic();
     $this->CacheConfig = jconf::get('cache');
     if (!in_array($this->Code, array('new', 'hot_comments', 'hot_forwards'))) {
         Mobile::is_login();
     }
     if (empty($this->Code)) {
         $this->Code = "home";
     }
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:15,代码来源:topic.mod.php

示例9: searchUser

 function searchUser()
 {
     Mobile::logic('member');
     $MemberLogic = new MemberLogic();
     $q = trim($this->Get['q']);
     if (empty($q)) {
         Mobile::error("No Data", 400);
     }
     $param = array('limit' => Mobile::config("perpage_member"), 'nickname' => $q, 'max_id' => $this->Get['max_id']);
     $ret = $MemberLogic->getMemberList($param);
     if (is_array($ret)) {
         Mobile::output($ret);
     } else {
         Mobile::error("No Data", $ret);
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:16,代码来源:search.mod.php

示例10: searchUser

 function searchUser()
 {
     $this->Title = "Search User";
     Mobile::logic('member');
     $MemberLogic = new MemberLogic();
     $q = trim($this->Get['q']);
     if (empty($q)) {
         Mobile::show_message($ret);
     } else {
         $param = array('limit' => Mobile::config("perpage_member"), 'nickname' => $q);
         $keyword = urlencode($param['nickname']);
         $ret = Mobile::convert($MemberLogic->getMemberList($param));
         if (is_array($ret)) {
             $member_list = $ret['member_list'];
             $total_record = $ret['total_record'];
             $list_count = count($member_list);
             $max_tid = $ret['max_tid'];
         } else {
             Mobile::show_message($ret);
         }
     }
     include template('search_user');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:23,代码来源:search.mod.php


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