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


PHP Mobile::convert方法代码示例

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


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

 function output($result, $status = '', $code = 200, $convert = true)
 {
     $outputs = array();
     if ($status) {
         $outputs['status'] = $status;
     }
     $outputs['code'] = $code;
     $outputs['result'] = $convert == true ? Mobile::convert($result) : $result;
     ob_clean();
     echo json_encode($outputs);
     exit;
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:12,代码来源:mobile.func.php

示例3: Main

 function Main()
 {
     $uid = intval($this->Get['uid']);
     $param = array('limit' => Mobile::config("perpage_def"), 'uid' => $uid);
     $ret = Mobile::convert($this->MTagLogic->getTagList($param));
     if (is_array($ret)) {
         $tag_list = $ret['tag_list'];
         $list_count = $ret['list_count'];
         $total_record = $ret['total_record'];
         $max_id = $ret['max_id'];
     } else {
         Mobile::show_message($ret);
     }
     include template('tag_list');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:15,代码来源:tag.mod.php

示例4: getHistoryList

 function getHistoryList()
 {
     $uid = intval($this->Get['uid']);
     if (empty($uid)) {
         Mobile::show_message(300);
     }
     $info = Mobile::convert($this->MyPmLogic->getHistoryList(MEMBER_ID, $uid, array("per_page_num" => Mobile::config("perpage_pm"))));
     if (!empty($info)) {
         $pm_list = $info['pm_list'];
         $current_page = empty($info['current_page']) ? 1 : $info['current_page'];
         $next_page = $current_page + 1;
         $total_page = intval($info['total_page']);
         $list_count = count($info['pm_list']);
     } else {
         Mobile::show_message(400);
     }
     include template('pm_list');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:18,代码来源:pm.mod.php

示例5: 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

示例6: elseif

<?php 
    if ($this->Code != "at_my" && $this->Code != "comment_my") {
        ?>
g_middle_nav_toolbar
<?php 
    } else {
        ?>
g_middle_nav_toolbar_message
<?php 
    }
    ?>
"> <?php 
    if ($this->Code == "home") {
        ?>
 <?php 
        echo Mobile::convert($GLOBALS['_J']['member']['nickname']);
    } elseif ($this->Code == "at_my" || $this->Code == "comment_my") {
        ?>
 <?php 
        $tab_msg_actives[$this->Code] = "g_middle_chute_on";
        ?>
 <div class="g_middle_chute"> <ul> <li class="<?php 
        echo $tab_msg_actives['at_my'];
        ?>
" onclick="changeMessageTab(TAB_MESSAGE_AT);">@我</li> <li class="s <?php 
        echo $tab_msg_actives['comment_my'];
        ?>
" onclick="changeMessageTab(TAB_MESSAGE_COMMENT);">评论</li> </ul> </div> <?php 
    } elseif ($this->Module == "search") {
        ?>
 <?php 
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:31,代码来源:header.php

示例7: publish

 function publish()
 {
     $topic_type = "web";
     if (in_array($this->Get['pt'], array('forward', 'reply'))) {
         $topic_type = $this->Get['pt'];
     }
     $mblog_content = "";
     if ($this->Get['pt'] == "new") {
         if (!empty($this->Get['atuid'])) {
             $atuid = intval($this->Get['atuid']);
             if ($atuid > 0) {
                 $member = Mobile::convert($this->MblogLogic->TopicLogic->GetMember($atuid));
                 $mblog_content = "@" . $member['nickname'];
             }
         } else {
             if (!empty($this->Get['tagid'])) {
                 $tag_id = intval($this->Get['tagid']);
                 $name = DB::result_first("SELECT name FROM " . DB::table('tag') . " WHERE id='{$this->Get['tagid']}'");
                 if (!empty($name)) {
                     $mblog_content = "#" . $name . "#";
                 }
             }
         }
     }
     if (!empty($mblog_content)) {
         $mblog_content = Mobile::convert($mblog_content);
     }
     $totid = intval($this->Get['totid']);
     include template('publish');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:30,代码来源:topic.mod.php

示例8: function

document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
<?php 
}
?>
 </script> <div data-role="page" data-theme="f" class="page"> <div class="logo"><div class="loginIcon"><img src="<?php 
echo $GLOBALS['_J']['config']['site_url'];
?>
/images/logo.png"></div></div> <div class="dec_line1"></div> <div id="g_tips" onclick="closeTipsExp();"></div> <?php 
if ($_GET['code'] == 'login') {
    ?>
 <style type="text/css">
#g_isrcollWrapper {
top:70px;
bottom:0px;
}
</style> <?php 
}
?>
 <div id="g_isrcollWrapper"> <div id="setting_wp" class="mc"> <ul class="lv_4"> <li> <div class="login-main-account-word">帐号:</div> <div class="col2"><input name="nickname" type="text" id="nickname" value="昵称" class="login_txt" onFocus="this.value=''" onBlur="if(this.value==''){this.value='昵称';}" /></div> </li> <li class="nb"> <div class="login-main-account-word">密码:</div> <div class="col2"><input name="password" type="password" id="password" value="密码" class="login_txt" onFocus="this.value=''" onBlur="if(this.value==''){this.value='密码';}" /></div> </li> </ul> <div class="loginbar"> <button class="btn_login" onclick="login('nickname', 'password')">登录</button> </div> </div> <div class="loginFooter"> <?php 
echo Mobile::convert($this->Config['site_name']);
?>
手机微博3G触屏版</div> <?php 
if (!$this->Config['is_mobile_client']) {
    ?>
 </div> <?php 
}
?>
 </div><?php 
echo $GLOBALS['_J']['config']['tongji'];
?>
</body> </html>
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:31,代码来源:login.php

示例9: blacklist

 function blacklist()
 {
     $param = array('limit' => Mobile::config("perpage_member"));
     $ret = Mobile::convert($this->FriendLogic->getBlackList($param));
     if (is_array($ret)) {
         $member_list = $ret['member_list'];
         $list_count = count($member_list);
         $total_record = $ret['total_record'];
         $max_id = $ret['max_id'];
     } else {
         Mobile::show_message($ret);
     }
     include template('friend_list');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:14,代码来源:friend.mod.php


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