Wikibase
MediaWiki Wikibase extension
Wikibase\Client\DataAccess\Scribunto\SnakSerializationRenderer Class Reference

Functionality needed to render snaks as provided through Lua. More...

Public Member Functions

 __construct (SnakFormatter $snakFormatter, Deserializer $snakDeserializer, Language $language, Deserializer $snakListDeserializer)
 

Private Member Functions

 formatSnakList (array $snaks)
 

Private Attributes

 $snakFormatter
 
 $snakDeserializer
 
 $language
 
 $snakListDeserializer
 

Detailed Description

Functionality needed to render snaks as provided through Lua.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\DataAccess\Scribunto\SnakSerializationRenderer::__construct ( SnakFormatter  $snakFormatter,
Deserializer  $snakDeserializer,
Language  $language,
Deserializer  $snakListDeserializer 
)

Member Function Documentation

◆ formatSnakList()

Wikibase\Client\DataAccess\Scribunto\SnakSerializationRenderer::formatSnakList ( array  $snaks)
private
Parameters
Snak[]$snaks
Returns
string Wikitext

Member Data Documentation

◆ $language

Wikibase\Client\DataAccess\Scribunto\SnakSerializationRenderer::$language
private

◆ $snakDeserializer

Wikibase\Client\DataAccess\Scribunto\SnakSerializationRenderer::$snakDeserializer
private

◆ $snakFormatter

Wikibase\Client\DataAccess\Scribunto\SnakSerializationRenderer::$snakFormatter
private

◆ $snakListDeserializer

Wikibase\Client\DataAccess\Scribunto\SnakSerializationRenderer::$snakListDeserializer
private

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