Wikibase
MediaWiki Wikibase extension
|
Enables accessing a linked page on a site by providing the item id and site id. More...
Public Member Functions | |
__construct (SiteLookup $siteLookup, SiteLinkLookup $siteLinkLookup, EntityRedirectTargetLookup $redirectLookup, EntityIdParser $idParser, EntityLookup $entityLookup) | |
execute ( $subPage) | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
__construct ( $name='', $restriction='', $listed=true) | |
getDescription () | |
setHeaders () | |
Static Public Member Functions | |
static | factory (SiteLookup $siteLookup, EntityIdParser $entityIdParser, EntityLookup $entityLookup, Store $store) |
Private Member Functions | |
getArguments ( $subPage) | |
getTargetUrl ( $site, $itemString) | |
getItemId ( $itemString) | |
Parses a string to itemId. | |
loadLinks ( $site, ItemId $itemId) | |
Load the sitelink using a SiteLinkLookup. | |
outputForm (array $sites, $itemString) | |
Output a form via the context's OutputPage object to go to a sitelink (linked page) for an item and site id. | |
outputError () | |
Outputs an error message. | |
Private Attributes | |
$siteLookup | |
$siteLinkLookup | |
$redirectLookup | |
$idParser | |
$entityLookup | |
$errorMessageKey = null | |
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 | |
Enables accessing a linked page on a site by providing the item id and site id.
Wikibase\Repo\Specials\SpecialGoToLinkedPage::__construct | ( | SiteLookup | $siteLookup, |
SiteLinkLookup | $siteLinkLookup, | ||
EntityRedirectTargetLookup | $redirectLookup, | ||
EntityIdParser | $idParser, | ||
EntityLookup | $entityLookup ) |
SiteLookup | $siteLookup | |
SiteLinkLookup | $siteLinkLookup | |
EntityRedirectTargetLookup | $redirectLookup | |
EntityIdParser | $idParser | |
EntityLookup | $entityLookup |
Wikibase\Repo\Specials\SpecialGoToLinkedPage::execute | ( | $subPage | ) |
string | null | $subPage |
Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.
|
static |
|
private |
string | null | $subPage |
|
private |
Parses a string to itemId.
string | $itemString |
|
private |
string | $site | |
string | $itemString |
|
private |
Load the sitelink using a SiteLinkLookup.
Resolves item redirects, if needed.
string | $site | |
ItemId | $itemId |
|
private |
Outputs an error message.
|
private |
Output a form via the context's OutputPage object to go to a sitelink (linked page) for an item and site id.
string[] | $sites | |
string | $itemString |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |