Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter Class Reference

More...

+ Inheritance diagram for Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter:
+ Collaboration diagram for Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter:

Public Member Functions

 __construct (SnakFormatter $snakFormatter, WellKnownReferenceProperties $properties, MessageLocalizer $messageLocalizer)
 
 formatReference (Reference $reference)
 
Parameters
Reference$reference
Returns
string Wikitext

 

Private Member Functions

 formatReferenceLink (array $referenceUrlSnaks, array $titleSnaks)
 Format reference URL(s) and title(s) into exactly one link, if possible.
 

Private Attributes

 $snakFormatter
 
 $properties
 
 $messageLocalizer
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter::__construct ( SnakFormatter $snakFormatter,
WellKnownReferenceProperties $properties,
MessageLocalizer $messageLocalizer )
Parameters
SnakFormatter$snakFormattershould generate SnakFormatter::FORMAT_WIKI
WellKnownReferenceProperties$properties
MessageLocalizer$messageLocalizer

Member Function Documentation

◆ formatReference()

Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter::formatReference ( Reference $reference)

Parameters
Reference$reference
Returns
string Wikitext

Implements Wikibase\Lib\Formatters\Reference\ReferenceFormatter.

◆ formatReferenceLink()

Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter::formatReferenceLink ( array $referenceUrlSnaks,
array $titleSnaks )
private

Format reference URL(s) and title(s) into exactly one link, if possible.

Member Data Documentation

◆ $messageLocalizer

Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter::$messageLocalizer
private

◆ $properties

Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter::$properties
private

◆ $snakFormatter

Wikibase\Lib\Formatters\Reference\DataBridgeReferenceFormatter::$snakFormatter
private

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