本文整理汇总了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'));