本文整理汇总了PHP中QueryPage::doQuery方法的典型用法代码示例。如果您正苦于以下问题:PHP QueryPage::doQuery方法的具体用法?PHP QueryPage::doQuery怎么用?PHP QueryPage::doQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QueryPage
的用法示例。
在下文中一共展示了QueryPage::doQuery方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doQuery
/**
* Override to check query validity.
*/
function doQuery($offset = false, $limit = false)
{
list($this->mMungedQuery, ) = LinkSearchPage::mungeQuery($this->mQuery, $this->mProt);
if ($this->mMungedQuery === false) {
$this->getOutput()->addWikiMsg('linksearch-error');
} else {
// For debugging
// Generates invalid xhtml with patterns that contain --
//$this->getOutput()->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" );
parent::doQuery($offset, $limit);
}
}
示例2: doQuery
/**
* Override to check query validity.
*/
function doQuery($offset, $limit, $shownavigation = true)
{
global $wgOut;
$this->mMungedQuery = LinkSearchPage::mungeQuery($this->mQuery, $this->mProt);
if ($this->mMungedQuery === false) {
$wgOut->addWikiText(wfMsg('linksearch-error'));
} else {
// For debugging
$wgOut->addHtml("\n<!-- " . htmlspecialchars($this->mMungedQuery) . " -->\n");
parent::doQuery($offset, $limit, $shownavigation);
}
}
示例3: doQuery
/**
* Override to check query validity.
*/
function doQuery($offset, $limit, $shownavigation = true)
{
global $wgOut;
list($this->mMungedQuery, $clause) = LinkSearchPage::mungeQuery($this->mQuery, $this->mProt);
if ($this->mMungedQuery === false) {
$wgOut->addWikiText(wfMsg('linksearch-error'));
} else {
// For debugging
// Generates invalid xhtml with patterns that contain --
//$wgOut->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" );
parent::doQuery($offset, $limit, $shownavigation);
}
}
示例4: doQuery
function doQuery($par, $offset, $limit)
{
global $wgOut;
// get user name and tree name and maybe the namespace
$this->getRequestVars($par);
if ($this->userName && $this->treeName) {
// call doQuery in QueryPage
parent::doQuery($offset, $limit);
} else {
// just display a form to get user name and tree name
$wgOut->addHTML($this->getPageHeader());
}
}