Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\ParserOutput\ItemParserOutputUpdater Class Reference
+ Inheritance diagram for Wikibase\Repo\ParserOutput\ItemParserOutputUpdater:
+ Collaboration diagram for Wikibase\Repo\ParserOutput\ItemParserOutputUpdater:

Public Member Functions

 __construct (StatementDataUpdater $statementDataUpdater)
 
 updateParserOutput (ParserOutput $parserOutput, EntityDocument $entity)
 Update extension data, properties or other data in ParserOutput. More...
 
 updateParserOutputForItem (ParserOutput $parserOutput, Item $item)
 

Private Attributes

 $statementDataUpdater
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\ItemParserOutputUpdater::__construct ( StatementDataUpdater  $statementDataUpdater)

Member Function Documentation

◆ updateParserOutput()

Wikibase\Repo\ParserOutput\ItemParserOutputUpdater::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.

◆ updateParserOutputForItem()

Wikibase\Repo\ParserOutput\ItemParserOutputUpdater::updateParserOutputForItem ( ParserOutput  $parserOutput,
Item  $item 
)

Member Data Documentation

◆ $statementDataUpdater

Wikibase\Repo\ParserOutput\ItemParserOutputUpdater::$statementDataUpdater
private

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