Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\ParserOutput\ImageLinksDataUpdater Class Reference

Register commonsMedia values as used images in ParserOutput. More...

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

Public Member Functions

 __construct (PropertyDataTypeMatcher $propertyDataTypeMatcher, RepoGroup $repoGroup)
 
 processStatement (Statement $statement)
 Add DataValue to list of used images if Snak property data type is commonsMedia. More...
 
 updateParserOutput (ParserOutput $parserOutput)
 Treat CommonsMedia values as file transclusions. More...
 

Private Member Functions

 processSnak (Snak $snak)
 

Private Attributes

 $propertyDataTypeMatcher
 
 $repoGroup
 
 $fileNames = []
 

Detailed Description

Register commonsMedia values as used images in ParserOutput.

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\ImageLinksDataUpdater::__construct ( PropertyDataTypeMatcher  $propertyDataTypeMatcher,
RepoGroup  $repoGroup 
)

Member Function Documentation

◆ processSnak()

Wikibase\Repo\ParserOutput\ImageLinksDataUpdater::processSnak ( Snak  $snak)
private

◆ processStatement()

Wikibase\Repo\ParserOutput\ImageLinksDataUpdater::processStatement ( Statement  $statement)

Add DataValue to list of used images if Snak property data type is commonsMedia.

Parameters
Statement$statement

Implements Wikibase\Repo\ParserOutput\StatementDataUpdater.

◆ updateParserOutput()

Wikibase\Repo\ParserOutput\ImageLinksDataUpdater::updateParserOutput ( ParserOutput  $parserOutput)

Treat CommonsMedia values as file transclusions.

Parameters
ParserOutput$parserOutput

Implements Wikibase\Repo\ParserOutput\StatementDataUpdater.

Member Data Documentation

◆ $fileNames

Wikibase\Repo\ParserOutput\ImageLinksDataUpdater::$fileNames = []
private

◆ $propertyDataTypeMatcher

Wikibase\Repo\ParserOutput\ImageLinksDataUpdater::$propertyDataTypeMatcher
private

◆ $repoGroup

Wikibase\Repo\ParserOutput\ImageLinksDataUpdater::$repoGroup
private

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