Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory Class Reference

Public Member Functions

 __construct (PropertyLabelResolver $propertyLabelResolver, SnaksFinder $snaksFinder, EntityLookup $entityLookup, DataAccessSnakFormatterFactory $dataAccessSnakFormatterFactory, UsageAccumulatorFactory $usageAccumulatorFactory, LanguageConverterFactory $langConvFactory, LanguageFactory $langFactory, bool $allowDataAccessInUserLanguage)
 
 newRendererFromParser (Parser $parser, string $type=DataAccessSnakFormatterFactory::TYPE_ESCAPED_PLAINTEXT)
 

Private Member Functions

 newLanguageAwareRenderer (string $type, Language $language, UsageAccumulator $usageAccumulator, ParserOutput $parserOutput, Title $title)
 
 getLanguageAwareRendererFromCode (string $type, string $languageCode, UsageAccumulator $usageAccumulator, ParserOutput $parserOutput, Title $title)
 
 newVariantsAwareRenderer (string $type, array $variants, UsageAccumulator $usageAccumulator, ParserOutput $parserOutput, Title $title)
 
 isParserUsingVariants (Parser $parser)
 Check whether variants are used in this parser run.
 
 useVariants (Parser $parser)
 

Private Attributes

 $propertyLabelResolver
 
 $snaksFinder
 
 $languageAwareRenderers = []
 
 $entityLookup
 
 $dataAccessSnakFormatterFactory
 
 $usageAccumulatorFactory
 
 $langConvFactory
 
 $langFactory
 
 $allowDataAccessInUserLanguage
 

Detailed Description

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::__construct ( PropertyLabelResolver $propertyLabelResolver,
SnaksFinder $snaksFinder,
EntityLookup $entityLookup,
DataAccessSnakFormatterFactory $dataAccessSnakFormatterFactory,
UsageAccumulatorFactory $usageAccumulatorFactory,
LanguageConverterFactory $langConvFactory,
LanguageFactory $langFactory,
bool $allowDataAccessInUserLanguage )

Member Function Documentation

◆ getLanguageAwareRendererFromCode()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::getLanguageAwareRendererFromCode ( string $type,
string $languageCode,
UsageAccumulator $usageAccumulator,
ParserOutput $parserOutput,
Title $title )
private
Parameters
string$typeOne of DataAccessSnakFormatterFactory::TYPE_*
string$languageCode
UsageAccumulator$usageAccumulator
ParserOutput$parserOutput
Title$title

◆ isParserUsingVariants()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::isParserUsingVariants ( Parser $parser)
private

Check whether variants are used in this parser run.

◆ newLanguageAwareRenderer()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::newLanguageAwareRenderer ( string $type,
Language $language,
UsageAccumulator $usageAccumulator,
ParserOutput $parserOutput,
Title $title )
private
Parameters
string$typeOne of DataAccessSnakFormatterFactory::TYPE_*
Language$language
UsageAccumulator$usageAccumulator
ParserOutput$parserOutput
Title$title

◆ newRendererFromParser()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::newRendererFromParser ( Parser $parser,
string $type = DataAccessSnakFormatterFactory::TYPE_ESCAPED_PLAINTEXT )
Parameters
Parser$parser
string$typeOne of DataAccessSnakFormatterFactory::TYPE_*

◆ newVariantsAwareRenderer()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::newVariantsAwareRenderer ( string $type,
array $variants,
UsageAccumulator $usageAccumulator,
ParserOutput $parserOutput,
Title $title )
private
Parameters
string$typeOne of DataAccessSnakFormatterFactory::TYPE_*
string[]$variants
UsageAccumulator$usageAccumulator
ParserOutput$parserOutput
Title$title
Returns
VariantsAwareRenderer

◆ useVariants()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::useVariants ( Parser $parser)
private

Member Data Documentation

◆ $allowDataAccessInUserLanguage

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$allowDataAccessInUserLanguage
private

◆ $dataAccessSnakFormatterFactory

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$dataAccessSnakFormatterFactory
private

◆ $entityLookup

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$entityLookup
private

◆ $langConvFactory

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$langConvFactory
private

◆ $langFactory

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$langFactory
private

◆ $languageAwareRenderers

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$languageAwareRenderers = []
private

◆ $propertyLabelResolver

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$propertyLabelResolver
private

◆ $snaksFinder

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$snaksFinder
private

◆ $usageAccumulatorFactory

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$usageAccumulatorFactory
private

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