MediaWiki master
UnlistedSpecialPage.php
Go to the documentation of this file.
1<?php
10namespace MediaWiki\SpecialPage;
11
20
29 public function __construct( $name, $restriction = '', $function = false, $file = 'default' ) {
30 parent::__construct( $name, $restriction, false, $function, $file );
31 }
32
34 public function isListed() {
35 return false;
36 }
37}
38
40class_alias( UnlistedSpecialPage::class, 'UnlistedSpecialPage' );
Parent class for all special pages.
Shortcut to construct a special page which is unlisted by default.
__construct( $name, $restriction='', $function=false, $file='default')
isListed()
Whether this special page is listed in Special:SpecialPages.to override 1.3 (r3583) bool