本文整理汇总了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;
}
示例2: __construct
public function __construct($name = 'Forms')
{
// For MW 1.17
if ($this instanceof SpecialPage) {
parent::__construct($name);
}
}
示例3: __construct
public function __construct($mode)
{
if ($this instanceof SpecialPage) {
parent::__construct($this->specialpage);
}
$this->mMode = $mode;
}
示例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.
}
示例5: __construct
public function __construct($mode)
{
if ($this instanceof SpecialPage) {
parent::__construct('ApprovedRevs');
}
$this->mMode = $mode;
}
示例6:
function __construct($name = 'Filters')
{
// Backwards compatibility for pre-version 1.18.
if ($this instanceof SpecialPage) {
parent::__construct($name);
}
}
示例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;
}
示例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');
}
示例9:
function __construct()
{
parent::__construct('NewHowtoArticles');
}
示例10:
function __construct($name = 'Unwatchedpages')
{
parent::__construct($name, 'unwatchedpages');
}
示例11: wfMsgForContent
function __construct( $name = 'PagesWithoutScans' ) {
parent::__construct( $name );
$this->page_namespace = wfMsgForContent( 'proofreadpage_namespace' );
}
示例12: __construct
public function __construct($name = 'CrossNamespaceLinks')
{
parent::__construct($name);
}
示例13: __construct
public function __construct($name = 'IndexPages')
{
parent::__construct($name);
$this->index_namespace = wfMsgForContent('proofreadpage_index_namespace');
}