本文整理匯總了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;
}