当前位置: 首页>>代码示例>>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;未经允许,请勿转载。