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

Enables accessing items by providing the identifier of a site and the title of the corresponding page on that site. More...

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

Public Member Functions

 __construct (EntityTitleLookup $titleLookup, LanguageNameLookup $languageNameLookup, SiteLookup $siteLookup, SiteLinkLookup $siteLinkLookup, SiteLinkTargetProvider $siteLinkTargetProvider, LoggerInterface $logger, array $siteLinkGroups)
 
 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

 getSiteOptions ()
 Return options for the site input field.
 
 switchForm ( $siteId, $page)
 Output a form to allow searching for a page.
 

Private Attributes

 $titleLookup
 
 $languageNameLookup
 
 $sites
 
 $siteLinkLookup
 
 $siteLinkTargetProvider
 
 $logger
 
 $groups
 

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

Enables accessing items by providing the identifier of a site and the title of the corresponding page on that site.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialItemByTitle::__construct ( EntityTitleLookup  $titleLookup,
LanguageNameLookup  $languageNameLookup,
SiteLookup  $siteLookup,
SiteLinkLookup  $siteLinkLookup,
SiteLinkTargetProvider  $siteLinkTargetProvider,
LoggerInterface  $logger,
array  $siteLinkGroups 
)
See also
SpecialWikibasePage::__construct
Parameters
EntityTitleLookup$titleLookup
LanguageNameLookup$languageNameLookup
SiteLookup$siteLookup
SiteLinkLookup$siteLinkLookup
SiteLinkTargetProvider$siteLinkTargetProvider
LoggerInterface$logger
string[]$siteLinkGroups

Member Function Documentation

◆ execute()

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

Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.

◆ getSiteOptions()

Wikibase\Repo\Specials\SpecialItemByTitle::getSiteOptions ( )
private

Return options for the site input field.

Returns
array

◆ newFromGlobalState()

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

◆ switchForm()

Wikibase\Repo\Specials\SpecialItemByTitle::switchForm (   $siteId,
  $page 
)
private

Output a form to allow searching for a page.

Parameters
string$siteId
string$page

Member Data Documentation

◆ $groups

Wikibase\Repo\Specials\SpecialItemByTitle::$groups
private

◆ $languageNameLookup

Wikibase\Repo\Specials\SpecialItemByTitle::$languageNameLookup
private

◆ $logger

Wikibase\Repo\Specials\SpecialItemByTitle::$logger
private

◆ $siteLinkLookup

Wikibase\Repo\Specials\SpecialItemByTitle::$siteLinkLookup
private

◆ $siteLinkTargetProvider

Wikibase\Repo\Specials\SpecialItemByTitle::$siteLinkTargetProvider
private

◆ $sites

Wikibase\Repo\Specials\SpecialItemByTitle::$sites
private

◆ $titleLookup

Wikibase\Repo\Specials\SpecialItemByTitle::$titleLookup
private

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