Enables accessing a linked page on a site by providing the item id and site id.
More...
|
| 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.
|
|
Enables accessing a linked page on a site by providing the item id and site id.
- Copyright
- GPL-2.0-or-later
- Author
- Jan Zerebecki
◆ __construct()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::__construct |
( |
SiteLookup |
$siteLookup, |
|
|
SiteLinkLookup |
$siteLinkLookup, |
|
|
EntityRedirectLookup |
$redirectLookup, |
|
|
EntityIdParser |
$idParser, |
|
|
EntityLookup |
$entityLookup |
|
) |
| |
- See also
- SpecialWikibasePage::__construct
- Parameters
-
SiteLookup | $siteLookup | |
SiteLinkLookup | $siteLinkLookup | |
EntityRedirectLookup | $redirectLookup | |
EntityIdParser | $idParser | |
EntityLookup | $entityLookup | |
◆ execute()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::execute |
( |
|
$subPage | ) |
|
◆ getArguments()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::getArguments |
( |
|
$subPage | ) |
|
|
private |
- Parameters
-
- Returns
- array ( string[] $sites, string $itemString ) -return array{0:string[],1:string}
◆ getItemId()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::getItemId |
( |
|
$itemString | ) |
|
|
private |
Parses a string to itemId.
- Parameters
-
- Returns
- ItemId|null
◆ getTargetUrl()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::getTargetUrl |
( |
|
$site, |
|
|
|
$itemString |
|
) |
| |
|
private |
- Parameters
-
string | $site | |
string | $itemString | |
- Returns
- string|null the URL to redirect to or null if the sitelink does not exist
◆ loadLinks()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::loadLinks |
( |
|
$site, |
|
|
ItemId |
$itemId |
|
) |
| |
|
private |
Load the sitelink using a SiteLinkLookup.
Resolves item redirects, if needed.
- Parameters
-
string | $site | |
ItemId | $itemId | |
- Returns
- array[]
◆ newFromGlobalState()
static Wikibase\Repo\Specials\SpecialGoToLinkedPage::newFromGlobalState |
( |
| ) |
|
|
static |
◆ outputError()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::outputError |
( |
| ) |
|
|
private |
Outputs an error message.
◆ outputForm()
Wikibase\Repo\Specials\SpecialGoToLinkedPage::outputForm |
( |
array |
$sites, |
|
|
|
$itemString |
|
) |
| |
|
private |
Output a form via the context's OutputPage object to go to a sitelink (linked page) for an item and site id.
- Parameters
-
string[] | $sites | |
string | $itemString | |
◆ $entityLookup
Wikibase\Repo\Specials\SpecialGoToLinkedPage::$entityLookup |
|
private |
◆ $errorMessageKey
Wikibase\Repo\Specials\SpecialGoToLinkedPage::$errorMessageKey = null |
|
private |
◆ $idParser
Wikibase\Repo\Specials\SpecialGoToLinkedPage::$idParser |
|
private |
◆ $redirectLookup
Wikibase\Repo\Specials\SpecialGoToLinkedPage::$redirectLookup |
|
private |
◆ $siteLinkLookup
Wikibase\Repo\Specials\SpecialGoToLinkedPage::$siteLinkLookup |
|
private |
◆ $siteLookup
Wikibase\Repo\Specials\SpecialGoToLinkedPage::$siteLookup |
|
private |
The documentation for this class was generated from the following file: