Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater Class Reference

Update Wikibase ParserOutput properties and extension data. More...

Public Member Functions

 __construct (OtherProjectsSidebarGeneratorFactory $otherProjectsSidebarGeneratorFactory, SiteLinkLookup $siteLinkLookup, EntityLookup $entityLookup, EntityUsageFactory $entityUsageFactory, $siteId, LoggerInterface $logger=null)
 
 updateItemIdProperty (Title $title, ParserOutput $out)
 Add wikibase_item parser output property.
 
 updateTrackingCategories (Title $title, ParserOutput $out)
 Add tracking category if the page is a redirect and is connected to an item.
 
 updateOtherProjectsLinksData (Title $title, ParserOutput $out)
 
 updateBadgesProperty (Title $title, ParserOutput $out)
 

Private Member Functions

 getItemIdForTitle (Title $title)
 

Private Attributes

 $otherProjectsSidebarGeneratorFactory
 
 $entityLookup
 
 $siteLinkLookup
 
 $entityUsageFactory
 
 $siteId
 
 $logger
 

Detailed Description

Update Wikibase ParserOutput properties and extension data.

Author
Daniel Kinzler
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::__construct ( OtherProjectsSidebarGeneratorFactory  $otherProjectsSidebarGeneratorFactory,
SiteLinkLookup  $siteLinkLookup,
EntityLookup  $entityLookup,
EntityUsageFactory  $entityUsageFactory,
  $siteId,
LoggerInterface  $logger = null 
)
Parameters
OtherProjectsSidebarGeneratorFactory$otherProjectsSidebarGeneratorFactoryUse the factory here to defer initialization of things like Site objects.
SiteLinkLookup$siteLinkLookup
EntityLookup$entityLookup
EntityUsageFactory$entityUsageFactory
string$siteIdThe global site ID for the local wiki
LoggerInterface | null$logger
Exceptions
InvalidArgumentException

Member Function Documentation

◆ getItemIdForTitle()

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::getItemIdForTitle ( Title  $title)
private
Parameters
Title$title
Returns
ItemId|null

◆ updateBadgesProperty()

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateBadgesProperty ( Title  $title,
ParserOutput  $out 
)

◆ updateItemIdProperty()

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateItemIdProperty ( Title  $title,
ParserOutput  $out 
)

Add wikibase_item parser output property.

Parameters
Title$title
ParserOutput$out

◆ updateOtherProjectsLinksData()

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateOtherProjectsLinksData ( Title  $title,
ParserOutput  $out 
)

◆ updateTrackingCategories()

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateTrackingCategories ( Title  $title,
ParserOutput  $out 
)

Add tracking category if the page is a redirect and is connected to an item.

Parameters
Title$title
ParserOutput$out

Member Data Documentation

◆ $entityLookup

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$entityLookup
private

◆ $entityUsageFactory

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$entityUsageFactory
private

◆ $logger

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$logger
private

◆ $otherProjectsSidebarGeneratorFactory

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$otherProjectsSidebarGeneratorFactory
private

◆ $siteId

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$siteId
private

◆ $siteLinkLookup

Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$siteLinkLookup
private

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