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 (ContentLanguages $contentLanguages, LanguageNameLookup $languageNameLookup, ItemDisambiguation $itemDisambiguation, EntitySearchHelper $entitySearchHelper, $limit=100) | |
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 Member Functions | |
extractLanguageCode (WebRequest $request, array $subPageParts) | |
extractLabel (WebRequest $request, array $subPageParts) | |
displaySearchResults (array $searchResults, $label) | |
getSearchResults ( $label, $languageCode) | |
showNothingFound ( $languageCode, $label) | |
Shows information, assuming no results were found. | |
displayDisambiguationPage (array $searchResults) | |
Display disambiguation page. | |
getLanguageOptions () | |
Return options for the language input field. | |
switchForm ( $languageCode, $label) | |
Output a form to allow searching for labels. | |
Private Attributes | |
$contentLanguages | |
$languageNameLookup | |
$itemDisambiguation | |
$entitySearchHelper | |
$limit | |
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 | ( | ContentLanguages | $contentLanguages, |
LanguageNameLookup | $languageNameLookup, | ||
ItemDisambiguation | $itemDisambiguation, | ||
EntitySearchHelper | $entitySearchHelper, | ||
$limit = 100 |
|||
) |
ContentLanguages | $contentLanguages | |
LanguageNameLookup | $languageNameLookup | |
ItemDisambiguation | $itemDisambiguation | |
EntitySearchHelper | $entitySearchHelper | |
int | $limit |
|
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 |
WebRequest | $request | |
array | $subPageParts |
|
private |
WebRequest | $request | |
array | $subPageParts |
|
private |
Return options for the language input field.
|
private |
string | $label | |
string | $languageCode |
|
static |
|
private |
Shows information, assuming no results were found.
string | $languageCode | |
string | $label |
|
private |
Output a form to allow searching for labels.
string | null | $languageCode | |
string | null | $label |
|
private |
|
private |
|
private |
|
private |
|
private |