本文整理汇总了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');
}
示例2: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
Mobile::logic('pm');
$this->MyPmLogic = new MyPmLogic();
Mobile::is_login();
$this->Execute();
}
示例3: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
$this->Config = $config;
Mobile::is_login();
Mobile::logic('misc');
$this->MiscLogic = new MiscLogic();
$this->Execute();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
}
示例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');
}