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


PHP MbqMain::isJsonProtocol方法代码示例

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


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

示例1: returnApiDataSysStatistics

 /**
  * return user api data
  *
  * @param  Object  $oMbqEtUser
  * @return  Array
  */
 public function returnApiDataSysStatistics($oMbqEtSysStatistics)
 {
     if (MbqMain::isJsonProtocol()) {
         return $this->returnJsonApiDataSysStatistics($oMbqEtSysStatistics);
     }
     $data = array();
     if ($oMbqEtSysStatistics->forumTotalThreads->hasSetOriValue()) {
         $data['total_threads'] = (int) $oMbqEtSysStatistics->forumTotalThreads->oriValue;
     }
     if ($oMbqEtSysStatistics->forumTotalPosts->hasSetOriValue()) {
         $data['total_posts'] = (int) $oMbqEtSysStatistics->forumTotalPosts->oriValue;
     }
     if ($oMbqEtSysStatistics->forumTotalMembers->hasSetOriValue()) {
         $data['total_members'] = (int) $oMbqEtSysStatistics->forumTotalMembers->oriValue;
     }
     if ($oMbqEtSysStatistics->forumActiveMembers->hasSetOriValue()) {
         $data['active_members'] = (int) $oMbqEtSysStatistics->forumActiveMembers->oriValue;
     }
     if ($oMbqEtSysStatistics->forumTotalOnline->hasSetOriValue()) {
         $data['total_online'] = (int) $oMbqEtSysStatistics->forumTotalOnline->oriValue;
     }
     if ($oMbqEtSysStatistics->forumGuestOnline->hasSetOriValue()) {
         $data['guest_online'] = (int) $oMbqEtSysStatistics->forumGuestOnline->oriValue;
     }
     return $data;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:32,代码来源:MbqBaseRdEtSysStatistics.php

示例2: returnApiDataAttachment

 /**
  * return attachment api data
  *
  * @param  Object  $oMbqEtAtt
  * @return  Array
  */
 public function returnApiDataAttachment($oMbqEtAtt)
 {
     if (MbqMain::isJsonProtocol()) {
         return $this->returnJsonApiDataAttachment($oMbqEtAtt);
     }
     $data = array();
     if ($oMbqEtAtt->attId->hasSetOriValue()) {
         $data['attachment_id'] = (string) $oMbqEtAtt->attId->oriValue;
     }
     if ($oMbqEtAtt->groupId->hasSetOriValue()) {
         $data['group_id'] = (string) $oMbqEtAtt->groupId->oriValue;
     }
     if ($oMbqEtAtt->forumId->hasSetOriValue()) {
         $data['forum_id'] = (string) $oMbqEtAtt->forumId->oriValue;
     }
     if ($oMbqEtAtt->postId->hasSetOriValue()) {
         $data['post_id'] = (string) $oMbqEtAtt->postId->oriValue;
     }
     if ($oMbqEtAtt->filtersSize->hasSetOriValue()) {
         $data['filters_size'] = (int) $oMbqEtAtt->filtersSize->oriValue;
         //$data['filesize'] = (int) $oMbqEtAtt->filtersSize->oriValue;
     }
     if ($oMbqEtAtt->contentType->hasSetOriValue()) {
         $data['content_type'] = (string) $oMbqEtAtt->contentType->oriValue;
     }
     if ($oMbqEtAtt->thumbnailUrl->hasSetOriValue()) {
         $data['thumbnail_url'] = (string) $oMbqEtAtt->thumbnailUrl->oriValue;
     }
     if ($oMbqEtAtt->url->hasSetOriValue()) {
         $data['url'] = (string) $oMbqEtAtt->url->oriValue;
     }
     return $data;
 }
开发者ID:ZerGabriel,项目名称:wbb,代码行数:39,代码来源:MbqBaseRdEtAtt.php

示例3: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
     } else {
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:8,代码来源:MbqBaseActGetBoardStat.php

示例4: datetimeIso8601Encode

 /**
  * transform timestamp to iso8601 format
  */
 public function datetimeIso8601Encode($timeStamp)
 {
     if (MbqMain::isJsonProtocol()) {
         return date('Y-m-d\\TH:i:s', $timeStamp) . '+00:00';
     } else {
         return date('Ymd\\TH:i:s', $timeStamp) . '+00:00';
     }
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:11,代码来源:MbqBaseCm.php

示例5: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->messageId = $this->getInputParam('messageId');
     } else {
         $in->messageId = $this->getInputParam(0);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:10,代码来源:MbqBaseActMarkPmUnread.php

示例6: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->email = $this->getInputParam('email');
     } else {
         $in->email = $this->getInputParam(0);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:10,代码来源:MbqBaseActPrefetchAccount.php

示例7: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->convId = $this->getInputParam('conversationId');
     } else {
         $in->convId = $this->getInputParam(0);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:10,代码来源:MbqBaseActMarkConversationUnread.php

示例8: getInput

 function getInput()
 {
     $in = new stdClass();
     $oMbqDataPage = MbqMain::$oClk->newObj('MbqDataPage');
     if (MbqMain::isJsonProtocol()) {
         $filters = $this->getInputParam('filters');
         $search_filter = $filters[0];
         $in->searchId = $this->getValue($search_filter, 'searchId');
         $in->keywords = $this->getValue($search_filter, 'keywords');
         $in->userId = $this->getValue($search_filter, 'userId');
         $in->searchId = $this->getValue($search_filter, 'searchId');
         $in->searchUser = $this->getValue($search_filter, 'searchUser');
         $in->forumId = $this->getValue($search_filter, 'forumId');
         $in->topicId = $this->getValue($search_filter, 'topicId');
         $in->titleOnly = $this->getValue($search_filter, 'titleOnly');
         $in->showPosts = $this->getValue($search_filter, 'showPosts');
         $in->searchTime = $this->getValue($search_filter, 'searchTime');
         $in->onlyIn = $this->getValue($search_filter, 'onlyIn');
         $in->notIn = $this->getValue($search_filter, 'notIn');
         $in->startedBy = $this->getValue($search_filter, 'started_by');
         $page = $this->getValue($search_filter, 'page', 1);
         $perpage = $this->getValue($search_filter, 'perpage', 20);
         $oMbqDataPage->initByPageAndPerPage($page, $perpage);
         if ($in->startedBy) {
             $in->showPosts = 0;
         }
     } else {
         $search_filter = $this->getInputParam(0);
         $in->searchId = $this->getValue($search_filter, 'searchid');
         $in->keywords = $this->getValue($search_filter, 'keywords');
         $in->userId = $this->getValue($search_filter, 'userid');
         $in->searchId = $this->getValue($search_filter, 'searchid');
         $in->searchUser = $this->getValue($search_filter, 'searchuser');
         $in->forumId = $this->getValue($search_filter, 'forumid');
         $in->topicId = $this->getValue($search_filter, 'threadid');
         $in->titleOnly = $this->getValue($search_filter, 'titleonly');
         $in->showPosts = $this->getValue($search_filter, 'showposts');
         $in->searchTime = $this->getValue($search_filter, 'searchtime');
         $in->onlyIn = $this->getValue($search_filter, 'only_in');
         $in->notIn = $this->getValue($search_filter, 'not_in');
         $in->startedBy = $this->getValue($search_filter, 'started_by');
         if ($in->startedBy) {
             $in->showPosts = 0;
         }
         $page = $this->getValue($search_filter, 'page', 1);
         $perpage = $this->getValue($search_filter, 'perpage', 20);
         $oMbqDataPage->initByPageAndPerPage($page, $perpage);
     }
     if (isset($in->keywords) && strlen($in->keywords) < MbqBaseFdt::getFdt('MbqFdtConfig.forum.min_search_length.default')) {
         MbqError::alert('', "Search words too short!", '', MBQ_ERR_APP);
     }
     $in->oMbqDataPage = $oMbqDataPage;
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:54,代码来源:MbqBaseActSearch.php

示例9: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->username = $this->getInputParam('username');
         $in->userId = $this->getInputParam('userId');
     } else {
         $in->username = $this->getInputParam(0);
         $in->userId = $this->getInputParam(1);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:12,代码来源:MbqBaseActGetUserTopic.php

示例10: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->twoStepCode = $this->getInputParam('twoStepCode');
         $in->trust = $this->getInputParam('trust');
     } else {
         $in->twoStepCode = $this->getInputParam(0);
         $in->trust = $this->getInputParam(1);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:12,代码来源:MbqBaseActLoginTwoStep.php

示例11: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->userPassword = $this->getInputParam('password');
         $in->userEmail = $this->getInputParam('newEmail');
     } else {
         $in->userPassword = $this->getInputParam(0);
         $in->userEmail = $this->getInputParam(1);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:12,代码来源:MbqBaseActUpdateEmail.php

示例12: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->postId = $this->getInputParam('postId');
         $in->reason = $this->getInputParam('reason');
     } else {
         $in->postId = $this->getInputParam(0);
         $in->reason = $this->getInputParam(1);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:12,代码来源:MbqBaseActReportPost.php

示例13: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->topicId = $this->getInputParam('topicId');
         $in->title = $this->getInputParam('title');
     } else {
         $in->topicId = $this->getInputParam(0);
         $in->title = $this->getInputParam(1);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:12,代码来源:MbqBaseActMRenameTopic.php

示例14: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->forumId = $this->getInputParam('forumId');
         $in->password = $this->getInputParam('password');
     } else {
         $in->forumId = $this->getInputParam(0);
         $in->password = $this->getInputParam(1);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:12,代码来源:MbqBaseActLoginForum.php

示例15: getInput

 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isJsonProtocol()) {
         $in->login = $this->getInputParam('username');
         $in->token = $this->getInputParam('token');
         $in->code = $this->getInputParam('code');
     } else {
         $in->login = $this->getInputParam(0);
         $in->token = $this->getInputParam(1);
         $in->code = $this->getInputParam(2);
     }
     return $in;
 }
开发者ID:keweiliu6,项目名称:test-kunena3,代码行数:14,代码来源:MbqBaseActForgetPassword.php


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