MediaWiki master
IncludableSpecialPage.php
Go to the documentation of this file.
1<?php
8
24 public function __construct(
25 $name, $restriction = '', $listed = true, $function = false, $file = 'default'
26 ) {
27 parent::__construct( $name, $restriction, $listed, $function, $file, true );
28 }
29
31 public function isIncludable() {
32 return true;
33 }
34}
35
37class_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.