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

Special page for addressing entity data pages without knowing the namespace. More...

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

Public Member Functions

 __construct (EntityIdParser $entityIdParser, EntityTitleLookup $entityTitleLookup)
 
 execute ( $subPage)
 
- Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 __construct ( $name='', $restriction='', $listed=true)
 
 getDescription ()
 
 setHeaders ()
 

Static Public Member Functions

static newFromGlobalState ()
 

Private Attributes

 $entityIdParser
 
 $entityTitleLookup
 

Additional Inherited Members

- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 getGroupName ()
 
 checkBlocked ()
 Checks if user is blocked, and if blocked throws a UserBlocked.
 
 showErrorHTML ( $error)
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 $stringNormalizer
 

Detailed Description

Special page for addressing entity data pages without knowing the namespace.

This special page redirects to a page that represents the given entity ID. This special page is completely agnostic to what is the page of the entity. This is the responsibility of EntityTitleLookup that can e.g. return local titles for local entities, and use interwikis for foreign entities.

This allows wikis to link to an entity page without needing to know namespace names of entity types configured on the target wiki.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialEntityPage::__construct ( EntityIdParser  $entityIdParser,
EntityTitleLookup  $entityTitleLookup 
)

Member Function Documentation

◆ execute()

Wikibase\Repo\Specials\SpecialEntityPage::execute (   $subPage)
See also
SpecialWikibasePage::execute
Parameters
string | null$subPage
Exceptions
HttpError

Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.

◆ newFromGlobalState()

static Wikibase\Repo\Specials\SpecialEntityPage::newFromGlobalState ( )
static

Member Data Documentation

◆ $entityIdParser

Wikibase\Repo\Specials\SpecialEntityPage::$entityIdParser
private

◆ $entityTitleLookup

Wikibase\Repo\Specials\SpecialEntityPage::$entityTitleLookup
private

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