Page MenuHomeWickedGov Phorge

UnlistedSpecialPage.php
No OneTemporary

Size
853 B
Referenced Files
None
Subscribers
None

UnlistedSpecialPage.php

<?php
/**
* Shortcut to construct a special page which is unlisted by default.
*
* @license GPL-2.0-or-later
* @file
* @ingroup SpecialPage
*/
namespace MediaWiki\SpecialPage;
/**
* Shortcut to construct a special page which is unlisted by default.
*
* @stable to extend
*
* @ingroup SpecialPage
*/
class UnlistedSpecialPage extends SpecialPage {
/**
* @stable to call
*
* @param string $name
* @param string $restriction
* @param bool $function
* @param string $file
*/
public function __construct( $name, $restriction = '', $function = false, $file = 'default' ) {
parent::__construct( $name, $restriction, false, $function, $file );
}
/** @inheritDoc */
public function isListed() {
return false;
}
}
/** @deprecated class alias since 1.41 */
class_alias( UnlistedSpecialPage::class, 'UnlistedSpecialPage' );

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 20:54 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
62/23/40f94025120f924de67321fc3a9c
Default Alt Text
UnlistedSpecialPage.php (853 B)

Event Timeline