Wikibase
MediaWiki Wikibase extension
|
Enables accessing items by providing the label of the item and the language of the label. More...
Public Member Functions | |
__construct (EntitySearchHelper $entitySearchHelper, ItemDisambiguationFactory $itemDisambiguationFactory, LanguageNameLookupFactory $languageNameLookupFactory, ContentLanguages $contentLanguages) | |
execute ( $subPage) | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
__construct ( $name='', $restriction='', $listed=true) | |
getDescription () | |
setHeaders () | |
Private Member Functions | |
extractLanguageCode (WebRequest $request, array $subPageParts) | |
extractLabel (WebRequest $request, array $subPageParts) | |
displaySearchResults (array $searchResults, string $label) | |
getSearchResults (string $label, string $languageCode) | |
showNothingFound (string $languageCode, string $label) | |
Shows information, assuming no results were found. | |
displayDisambiguationPage (array $searchResults) | |
Display disambiguation page. | |
getLanguageOptions () | |
Return options for the language input field. | |
switchForm (?string $languageCode, ?string $label) | |
Output a form to allow searching for labels. | |
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 items by providing the label of the item and the language of the label.
A result page is shown, disambiguating between multiple results if necessary.
Wikibase\Repo\Specials\SpecialItemDisambiguation::__construct | ( | EntitySearchHelper | $entitySearchHelper, |
ItemDisambiguationFactory | $itemDisambiguationFactory, | ||
LanguageNameLookupFactory | $languageNameLookupFactory, | ||
ContentLanguages | $contentLanguages ) |
|
private |
Display disambiguation page.
TermSearchResult[] | $searchResults |
|
private |
TermSearchResult[] | $searchResults | |
string | $label |
Wikibase\Repo\Specials\SpecialItemDisambiguation::execute | ( | $subPage | ) |
string | null | $subPage |
Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.
|
private |
|
private |
|
private |
Return options for the language input field.
|
private |
string | $label | |
string | $languageCode |
EntitySearchException |
|
private |
Shows information, assuming no results were found.
|
private |
Output a form to allow searching for labels.
|
private |
|
private |
|
private |
|
private |
|
private |