• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP QueryPage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中QueryPage的典型用法代码示例。如果您正苦于以下问题:PHP QueryPage类的具体用法?PHP QueryPage怎么用?PHP QueryPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了QueryPage类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: getList

 function getList()
 {
     list($limit, $offset) = wfCheckLimits();
     $this->limit = $limit;
     $this->offset = $offset;
     parent::execute('');
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:7,代码来源:NewHowtoArticles.body.php


示例17: wfMsgForContent

	function __construct( $name = 'PagesWithoutScans' ) {
		parent::__construct( $name );
		$this->page_namespace = wfMsgForContent( 'proofreadpage_namespace' );
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:4,代码来源:SpecialPagesWithoutScans.php


示例18: 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);
     }
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:15,代码来源:SpecialLinkSearch.php


示例19: onSubmit

 public function onSubmit($data, $form)
 {
     $this->propName = $data['propname'];
     parent::execute($data['propname']);
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:5,代码来源:SpecialPagesWithProp.php



注:本文中的QueryPage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Query_helper类代码示例发布时间:2022-05-23
下一篇:
PHP QueryObject类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap