MediaWiki master
IncludableSpecialPage.php
Go to the documentation of this file.
1<?php
8
15abstract class IncludableSpecialPage extends SpecialPage {
26 public function __construct(
27 $name, $restriction = '', $listed = true, $function = false, $file = 'default'
28 ) {
29 parent::__construct( ...func_get_args() );
30 $this->mIncludable = true;
31 }
32
34 public function isIncludable() {
35 return true;
36 }
37}
38
40class_alias( IncludableSpecialPage::class, 'IncludableSpecialPage' );
Shortcut to construct an includable special page.
__construct( $name, $restriction='', $listed=true, $function=false, $file='default')
isIncludable()
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.to override bool
Parent class for all special pages.