Wikibase
MediaWiki Wikibase extension
Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory Class Reference

Public Member Functions

 __construct (PropertyLabelResolver $propertyLabelResolver, SnaksFinder $snaksFinder, EntityLookup $entityLookup, DataAccessSnakFormatterFactory $dataAccessSnakFormatterFactory, EntityUsageFactory $entityUsageFactory, LanguageConverterFactory $langConvFactory, $allowDataAccessInUserLanguage)
 
 newRendererFromParser (Parser $parser, $type=DataAccessSnakFormatterFactory::TYPE_ESCAPED_PLAINTEXT)
 

Private Member Functions

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

Private Attributes

 $propertyLabelResolver
 
 $snaksFinder
 
 $languageAwareRenderers = []
 
 $entityLookup
 
 $dataAccessSnakFormatterFactory
 
 $entityUsageFactory
 
 $langConvFactory
 
 $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,
EntityUsageFactory  $entityUsageFactory,
LanguageConverterFactory  $langConvFactory,
  $allowDataAccessInUserLanguage 
)
Parameters
PropertyLabelResolver$propertyLabelResolver
SnaksFinder$snaksFinder
EntityLookup$entityLookup
DataAccessSnakFormatterFactory$dataAccessSnakFormatterFactory
EntityUsageFactory$entityUsageFactory
LanguageConverterFactory$langConvFactory
bool$allowDataAccessInUserLanguage

Member Function Documentation

◆ getLanguageAwareRendererFromCode()

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

◆ isParserUsingVariants()

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

Check whether variants are used in this parser run.

Parameters
Parser$parser
Returns
bool

◆ newLanguageAwareRenderer()

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

◆ newRendererFromParser()

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

◆ newVariantsAwareRenderer()

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::newVariantsAwareRenderer (   $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
Parameters
Parser$parser
Returns
bool

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

◆ $entityUsageFactory

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

◆ $langConvFactory

Wikibase\Client\DataAccess\ParserFunctions\StatementGroupRendererFactory::$langConvFactory
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

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