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


PHP CMbString::toQuery方法代码示例

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


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

示例1: list

 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$file = CValue::get("file");
list($module, $view) = explode("/", $file, 2);
list($action, $extention) = explode(".", $view);
$user = CUser::get();
$params["m"] = $module;
$params["raw"] = $action;
$params["info"] = 1;
// Could be done throw session cookie forwarding too
$token = new CViewAccessToken();
$token->_spec->loggable = false;
$token->user_id = $user->_id;
$token->params = CMbString::toQuery($params);
$token->datetime_start = "now";
$token->ttl_hours = 1;
$token->store();
$base = CAppUI::conf("base_url");
$url = "{$base}/?token={$token->hash}";
$content = file_get_contents($url);
$token->delete();
// Try and get view properties
if (null == ($props = json_decode($content))) {
    CAppUI::stepMessage(UI_MSG_ERROR, "regression_checker-noviewinfo");
    return;
}
CAppUI::stepMessage(UI_MSG_OK, "regression_checker-viewinfo-found");
$plan = CView::sampleCheckPlan($props);
// Création du template
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:regression_view_check.php

示例2: makeUrl

 function makeUrl($user)
 {
     $base = CAppUI::conf("base_url");
     $this->_params["login"] = "{$user->user_username}:{$user->user_password}";
     if ($this->multipart) {
         $this->_params["suppressHeaders"] = "1";
         $this->_params["multipart"] = "1";
     } else {
         $this->_params["dialog"] = "1";
         $this->_params["_aio"] = "1";
     }
     $query = CMbString::toQuery($this->_params);
     $url = "{$base}/?{$query}";
     return $this->_url = $url;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:15,代码来源:CViewSender.class.php

示例3: makeUrl

 /**
  * Make the URL
  *
  * @return string
  */
 function makeUrl()
 {
     $base = rtrim(CAppUI::conf("base_url"), "/");
     $this->_params["login"] = "{$this->cron_login}:{$this->cron_password}";
     $query = CMbString::toQuery($this->_params);
     $url = "{$base}/?{$query}";
     return $this->_url = $url;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:13,代码来源:CCronJob.class.php


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