MediaWiki master
UnlistedSpecialPage.php
Go to the documentation of this file.
1<?php
10namespace MediaWiki\SpecialPage;
11
20
30 public function __construct( $name, $restriction = '', $function = false, $file = 'default' ) {
31 if ( static::class === self::class ) {
32 wfDeprecated( 'direct instantiation of ' . __CLASS__, '1.46' );
33 }
34 if ( func_num_args() > 2 ) {
35 wfDeprecated( __CLASS__ . ' constructor parameters $function and $file', '1.46' );
36 }
37 parent::__construct( $name, $restriction );
38 }
39
41 public function isListed() {
42 return false;
43 }
44}
45
47class_alias( UnlistedSpecialPage::class, 'UnlistedSpecialPage' );
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
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