當前位置: 首頁>>代碼示例>>PHP>>正文


PHP QueryPage類代碼示例

本文整理匯總了PHP中QueryPage的典型用法代碼示例。如果您正苦於以下問題:PHP QueryPage類的具體用法?PHP QueryPage怎麽用?PHP QueryPage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了QueryPage類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Initialize all query page objects
  */
 function __construct()
 {
     parent::__construct();
     foreach (QueryPage::getPages() as $page) {
         $class = $page[0];
         if (!in_array($class, $this->manualTest)) {
             $this->queryPages[$class] = new $class();
         }
     }
 }
開發者ID:jpena88,項目名稱:mediawiki-dokku-deploy,代碼行數:13,代碼來源:QueryAllSpecialPagesTest.php

示例2: __construct

 public function __construct(ApiQuery $query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'qp');
     // Build mapping from special page names to QueryPage classes
     $uselessQueryPages = $this->getConfig()->get('APIUselessQueryPages');
     $this->qpMap = array();
     foreach (QueryPage::getPages() as $page) {
         if (!in_array($page[1], $uselessQueryPages)) {
             $this->qpMap[$page[1]] = $page[0];
         }
     }
 }
開發者ID:MediaWiki-stable,項目名稱:1.26.1,代碼行數:12,代碼來源:ApiQueryQueryPage.php

示例3: __construct

 public function __construct($mode)
 {
     if ($this instanceof SpecialPage) {
         parent::__construct('ApprovedRevs');
     }
     $this->mMode = $mode;
 }
開發者ID:whysasse,項目名稱:kmwiki,代碼行數:7,代碼來源:SpecialApprovedRevs.php

示例4: list

 function __construct($name = 'Newcontributors')
 {
     parent::__construct($name);
     list($limit, $offset) = wfCheckLimits();
     $this->limit = $limit;
     $this->offset = $offset;
 }
開發者ID:biribogos,項目名稱:wikihow-src,代碼行數:7,代碼來源:Newcontributors.body.php

示例5:

 function __construct($name = 'Filters')
 {
     // Backwards compatibility for pre-version 1.18.
     if ($this instanceof SpecialPage) {
         parent::__construct($name);
     }
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:7,代碼來源:SD_Filters.php

示例6: __construct

 public function __construct($name = 'Forms')
 {
     // For MW 1.17
     if ($this instanceof SpecialPage) {
         parent::__construct($name);
     }
 }
開發者ID:yusufchang,項目名稱:app,代碼行數:7,代碼來源:SF_Forms.php

示例7: __construct

 public function __construct($mode)
 {
     if ($this instanceof SpecialPage) {
         parent::__construct($this->specialpage);
     }
     $this->mMode = $mode;
 }
開發者ID:hexmode,項目名稱:MediaWiki-ApprovedRevs,代碼行數:7,代碼來源:SpecialApprovedPagesQueryPage.php

示例8:

 function __construct($name = 'MediaStatistics')
 {
     parent::__construct($name);
     // Generally speaking there is only a small number of file types,
     // so just show all of them.
     $this->limit = 5000;
     $this->shownavigation = false;
 }
開發者ID:eliagbayani,項目名稱:LiteratureEditor,代碼行數:8,代碼來源:SpecialMediaStatistics.php

示例9: reallyDoQuery

 function reallyDoQuery($limit, $offset = false)
 {
     if ($this->suppressSqlOffset) {
         // Bug #27678: Do not use offset here, because it was already used in
         // search perfomed by execute method
         return parent::reallyDoQuery($limit, false);
     } else {
         return parent::reallyDoQuery($limit, $offset);
     }
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:10,代碼來源:SpecialProofreadPages.php

示例10: feedItemDesc

 function feedItemDesc($row)
 {
     if (isset($row->rev_id)) {
         $revision = Revision::newFromId($row->rev_id);
         if ($revision) {
             return '<p>' . htmlspecialchars(wfMsg('summary')) . ': ' . $text . "</p>\n<hr />\n<div>" . nl2br(htmlspecialchars($revision->getText())) . "</div>";
         }
     }
     return parent::feedItemDesc($row);
 }
開發者ID:BackupTheBerlios,項目名稱:enotifwiki,代碼行數:10,代碼來源:SpecialNewpages.php

示例11: execute

 function execute($par)
 {
     $mime = $par ? $par : $this->getRequest()->getText('mime');
     $this->setHeaders();
     $this->outputHeader();
     $this->getOutput()->addHTML(Xml::openElement('form', array('id' => 'specialmimesearch', 'method' => 'get', 'action' => SpecialPage::getTitleFor('MIMEsearch')->getLocalUrl())) . Xml::openElement('fieldset') . Html::hidden('title', SpecialPage::getTitleFor('MIMEsearch')->getPrefixedText()) . Xml::element('legend', null, wfMsg('mimesearch')) . Xml::inputLabel(wfMsg('mimetype'), 'mime', 'mime', 20, $mime) . ' ' . Xml::submitButton(wfMsg('ilsubmit')) . Xml::closeElement('fieldset') . Xml::closeElement('form'));
     list($this->major, $this->minor) = File::splitMime($mime);
     if ($this->major == '' || $this->minor == '' || $this->minor == 'unknown' || !self::isValidType($this->major)) {
         return;
     }
     parent::execute($par);
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:12,代碼來源:SpecialMIMEsearch.php

示例12:

 function __construct($name = 'Mostinterwikis')
 {
     parent::__construct($name);
 }
開發者ID:claudinec,項目名稱:galan-wiki,代碼行數:4,代碼來源:SpecialMostinterwikis.php

示例13: __construct

 public function __construct($name = 'Templates')
 {
     parent::__construct($name);
 }
開發者ID:Rikuforever,項目名稱:wiki,代碼行數:4,代碼來源:SF_Templates.php

示例14:

 function __construct($name = 'Unwatchedpages')
 {
     parent::__construct($name, 'unwatchedpages');
 }
開發者ID:Tarendai,項目名稱:spring-website,代碼行數:4,代碼來源:SpecialUnwatchedpages.php

示例15: execute

 public function execute($par)
 {
     $this->mime = $par ? $par : $this->getRequest()->getText('mime');
     $this->mime = trim($this->mime);
     list($this->major, $this->minor) = File::splitMime($this->mime);
     if ($this->major == '' || $this->minor == '' || $this->minor == 'unknown' || !self::isValidType($this->major)) {
         $this->setHeaders();
         $this->outputHeader();
         $this->getPageHeader();
         return;
     }
     parent::execute($par);
 }
開發者ID:claudinec,項目名稱:galan-wiki,代碼行數:13,代碼來源:SpecialMIMEsearch.php


注:本文中的QueryPage類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。