Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater Class Reference

Finds linked entities on an Entity and add the links to ParserOutput. More...

+ Inheritance diagram for Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater:
+ Collaboration diagram for Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater:

Public Member Functions

 __construct (EntityReferenceExtractor $entityReferenceExtractor, EntityTitleLookup $entityTitleLookup, LinkBatchFactory $linkBatchFactory)
 
 updateParserOutput (ParserOutput $parserOutput, EntityDocument $entity)
 Update extension data, properties or other data in ParserOutput.
 

Private Member Functions

 addLinksToParserOutput (ParserOutput $parserOutput, array $entityIds)
 

Private Attributes

 $entityTitleLookup
 
 $entityReferenceExtractor
 
 $linkBatchFactory
 

Detailed Description

Finds linked entities on an Entity and add the links to ParserOutput.

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::__construct ( EntityReferenceExtractor $entityReferenceExtractor,
EntityTitleLookup $entityTitleLookup,
LinkBatchFactory $linkBatchFactory )
Parameters
EntityReferenceExtractor$entityReferenceExtractor
EntityTitleLookup$entityTitleLookup
LinkBatchFactory$linkBatchFactory

Member Function Documentation

◆ addLinksToParserOutput()

Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::addLinksToParserOutput ( ParserOutput $parserOutput,
array $entityIds )
private

◆ updateParserOutput()

Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::updateParserOutput ( ParserOutput $parserOutput,
EntityDocument $entity )

Update extension data, properties or other data in ParserOutput.

These updates are invoked when EntityContent::getParserOutput is called.

Parameters
ParserOutput$parserOutput
EntityDocument$entity
Returns
void

Implements Wikibase\Repo\ParserOutput\EntityParserOutputUpdater.

Member Data Documentation

◆ $entityReferenceExtractor

Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::$entityReferenceExtractor
private

◆ $entityTitleLookup

Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::$entityTitleLookup
private

◆ $linkBatchFactory

Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::$linkBatchFactory
private

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