本文整理汇总了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
示例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;
}
示例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;
}