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

Add url data values as external links in ParserOutput. More...

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

Public Member Functions

 __construct (PropertyDataTypeMatcher $propertyDataTypeMatcher)
 
 processStatement (Statement $statement)
 Add DataValue to list of used urls, if Snak property has 'url' data type.
 
 updateParserOutput (ParserOutput $parserOutput)
 Update extension data, properties or other data in ParserOutput.
 

Private Member Functions

 processSnak (Snak $snak)
 

Private Attributes

 $propertyDataTypeMatcher
 
 $urls = []
 

Detailed Description

Add url data values as external links 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\ExternalLinksDataUpdater::__construct ( PropertyDataTypeMatcher $propertyDataTypeMatcher)

Member Function Documentation

◆ processSnak()

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

◆ processStatement()

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

Add DataValue to list of used urls, if Snak property has 'url' data type.

Parameters
Statement$statement

Implements Wikibase\Repo\ParserOutput\StatementDataUpdater.

◆ updateParserOutput()

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

Update extension data, properties or other data in ParserOutput.

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

Parameters
ParserOutput$parserOutput

Implements Wikibase\Repo\ParserOutput\StatementDataUpdater.

Member Data Documentation

◆ $propertyDataTypeMatcher

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

◆ $urls

Wikibase\Repo\ParserOutput\ExternalLinksDataUpdater::$urls = []
private

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