本文整理匯總了PHP中QApplication::GenerateQueryString方法的典型用法代碼示例。如果您正苦於以下問題:PHP QApplication::GenerateQueryString方法的具體用法?PHP QApplication::GenerateQueryString怎麽用?PHP QApplication::GenerateQueryString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類QApplication
的用法示例。
在下文中一共展示了QApplication::GenerateQueryString方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Form_Run
protected function Form_Run()
{
// Sanitize the Path in the PathInfo
$strSanitizedFullPath = WikiItem::ValidateOrGenerateSanitizedFullPath(QApplication::$PathInfo);
if ($strSanitizedFullPath) {
QApplication::Redirect('/wiki/admin.php' . $strSanitizedFullPath . QApplication::GenerateQueryString());
}
}
示例2: Filter_Change
public function Filter_Change()
{
$_GET = array();
if (strlen($strText = trim($this->txtServerIdentifier->Text))) {
$_GET['id'] = $strText;
}
if (strlen($strText = trim($this->txtFirstName->Text))) {
$_GET['fn'] = $strText;
}
if (strlen($strText = trim($this->txtLastName->Text))) {
$_GET['ln'] = $strText;
}
if (strlen($strText = trim($this->txtGraduationYear->Text))) {
$_GET['year'] = $strText;
}
if ($strValue = $this->lstParentPagerSyncStatusTypeId->SelectedValue) {
$_GET['sync'] = $strValue;
}
if ($strValue = $this->lstGender->SelectedValue) {
$_GET['g'] = $strValue;
}
QApplication::Redirect('/sk/index.php' . QApplication::GenerateQueryString());
}
示例3: dirname
<?php
require '../../includes/prepend.inc.php';
QApplication::Authenticate();
// Sanitize the Path in the PathInfo
$strSanitizedFullPath = WikiItem::ValidateOrGenerateSanitizedFullPath(QApplication::$PathInfo);
if ($strSanitizedFullPath) {
QApplication::Redirect('/wiki/edit.php' . $strSanitizedFullPath . QApplication::GenerateQueryString());
}
// Get the WikiItemTypeId
WikiItem::SanitizeForPath(QApplication::$PathInfo, $intWikiItemTypeId);
// Based on the requested WikiItemTypeId, figure out the EditWikiForm to use
$strWikiItemType = WikiItemType::$TokenArray[$intWikiItemTypeId];
$strEditWikiClassName = 'EditWiki' . $strWikiItemType . 'Form';
// Include the required class files
require dirname(__FILE__) . '/EditWikiForm.class.php';
require dirname(__FILE__) . '/' . $strEditWikiClassName . '.class.php';
// Make a call to the QForm::Run() for that Form
call_user_func_array(array($strEditWikiClassName, 'Run'), array($strEditWikiClassName, dirname(__FILE__) . '/' . $strEditWikiClassName . '.tpl.php'));