Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Specials\SpecialWikibasePage Class Reference

Base for special pages of the Wikibase extension, holding some scaffolding and preventing us from needing to deal with weird SpecialPage insanity (ie $this->mFile inclusion) in every base class. More...

+ Inheritance diagram for Wikibase\Repo\Specials\SpecialWikibasePage:
+ Collaboration diagram for Wikibase\Repo\Specials\SpecialWikibasePage:

Public Member Functions

 __construct ( $name='', $restriction='', $listed=true)
 
 getDescription ()
 
 setHeaders ()
 
 execute ( $subPage)
 

Protected Member Functions

 getGroupName ()
 
 checkBlocked ()
 Checks if user is blocked, and if blocked throws a UserBlocked.
 
 showErrorHTML ( $error)
 

Protected Attributes

 $stringNormalizer
 

Detailed Description

Base for special pages of the Wikibase extension, holding some scaffolding and preventing us from needing to deal with weird SpecialPage insanity (ie $this->mFile inclusion) in every base class.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialWikibasePage::__construct ( $name = '',
$restriction = '',
$listed = true )
Parameters
string$name
string$restriction
bool$listed

Reimplemented in Wikibase\Repo\Specials\SpecialWikibaseQueryPage.

Member Function Documentation

◆ checkBlocked()

Wikibase\Repo\Specials\SpecialWikibasePage::checkBlocked ( )
protected

Checks if user is blocked, and if blocked throws a UserBlocked.

Exceptions
UserBlockedError

◆ execute()

◆ getDescription()

Wikibase\Repo\Specials\SpecialWikibasePage::getDescription ( )
See also
SpecialPage::getDescription
Returns
Message

◆ getGroupName()

Wikibase\Repo\Specials\SpecialWikibasePage::getGroupName ( )
protected
See also
SpecialPage::getGroupName
Returns
string

◆ setHeaders()

Wikibase\Repo\Specials\SpecialWikibasePage::setHeaders ( )

◆ showErrorHTML()

Wikibase\Repo\Specials\SpecialWikibasePage::showErrorHTML ( $error)
protected
Parameters
string$errorThe error message in HTML format

Member Data Documentation

◆ $stringNormalizer

Wikibase\Repo\Specials\SpecialWikibasePage::$stringNormalizer
protected

The documentation for this class was generated from the following file: