当前位置: 首页>>代码示例>>PHP>>正文


PHP QueryPage::__construct方法代码示例

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


在下文中一共展示了QueryPage::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: __construct

 public function __construct($name = 'Forms')
 {
     // For MW 1.17
     if ($this instanceof SpecialPage) {
         parent::__construct($name);
     }
 }
开发者ID:yusufchang,项目名称:app,代码行数:7,代码来源:SF_Forms.php

示例3: __construct

 public function __construct($mode)
 {
     if ($this instanceof SpecialPage) {
         parent::__construct($this->specialpage);
     }
     $this->mMode = $mode;
 }
开发者ID:hexmode,项目名称:MediaWiki-ApprovedRevs,代码行数:7,代码来源:SpecialApprovedPagesQueryPage.php

示例4:

 function __construct($name = 'LinkSearch')
 {
     parent::__construct($name);
     // Since we don't control the constructor parameters, we can't inject services that way.
     // Instead, we initialize services in the execute() method, and allow them to be overridden
     // using the setServices() method.
 }
开发者ID:nanasess,项目名称:mediawiki,代码行数:7,代码来源:SpecialLinkSearch.php

示例5: __construct

 public function __construct($mode)
 {
     if ($this instanceof SpecialPage) {
         parent::__construct('ApprovedRevs');
     }
     $this->mMode = $mode;
 }
开发者ID:whysasse,项目名称:kmwiki,代码行数:7,代码来源:SpecialApprovedRevs.php

示例6:

 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

示例7:

 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

示例8: MWTimestamp

 function __construct()
 {
     global $wgModerationTimeToOverrideRejection;
     $mw_ts = new MWTimestamp(time());
     $mw_ts->timestamp->modify('-' . intval($wgModerationTimeToOverrideRejection) . ' seconds');
     $this->earliestReapprovableTimestamp = $mw_ts->getTimestamp(TS_MW);
     $this->mblockCheck = new ModerationBlockCheck();
     parent::__construct('Moderation', 'moderation');
 }
开发者ID:ATCARES,项目名称:mediawiki-moderation,代码行数:9,代码来源:SpecialModeration.php

示例9:

 function __construct()
 {
     parent::__construct('NewHowtoArticles');
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:4,代码来源:NewHowtoArticles.body.php

示例10:

 function __construct($name = 'Unwatchedpages')
 {
     parent::__construct($name, 'unwatchedpages');
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:4,代码来源:SpecialUnwatchedpages.php

示例11: wfMsgForContent

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

示例12: __construct

 public function __construct($name = 'CrossNamespaceLinks')
 {
     parent::__construct($name);
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:4,代码来源:CrossNamespaceLinks_body.php

示例13: __construct

 public function __construct($name = 'IndexPages')
 {
     parent::__construct($name);
     $this->index_namespace = wfMsgForContent('proofreadpage_index_namespace');
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:5,代码来源:SpecialProofreadPages.php


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