MediaWiki  master
IncludableSpecialPage.php
Go to the documentation of this file.
1 <?php
24 namespace MediaWiki\SpecialPage;
25 
32  public function __construct(
33  $name, $restriction = '', $listed = true, $function = false, $file = 'default'
34  ) {
35  parent::__construct( $name, $restriction, $listed, $function, $file, true );
36  }
37 
38  public function isIncludable() {
39  return true;
40  }
41 }
42 
47 class_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}}.
Parent class for all special pages.
Definition: SpecialPage.php:66
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition: router.php:42