30 public function __construct( $name, $restriction =
'', $function =
false, $file =
'default' ) {
31 $parentParams = [ $name ];
32 if ( func_num_args() > 1 ) {
33 wfDeprecated( __CLASS__ .
' constructor parameters $restriction, $function and $file',
'1.46' );
34 $parentParams[] = $restriction;
36 parent::__construct( ...$parentParams );
50class_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