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

Creates the parser output for an entity. More...

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

Public Member Functions

 __construct (DispatchingEntityViewFactory $entityViewFactory, DispatchingEntityMetaTagsCreatorFactory $entityMetaTagsCreatorFactory, ParserOutputJsConfigBuilder $configBuilder, EntityTitleLookup $entityTitleLookup, LanguageFallbackChain $languageFallbackChain, TemplateFactory $templateFactory, LocalizedTextProvider $textProvider, EntityDataFormatProvider $entityDataFormatProvider, array $dataUpdaters, Language $language)
 
 getParserOutput (EntityRevision $entityRevision, $generateHtml=true)
 Creates the parser output for the given entity revision.
 

Private Member Functions

 addHtmlToParserOutput (ParserOutput $parserOutput, EntityRevision $entityRevision)
 
 addModules (ParserOutput $parserOutput)
 
 addAlternateLinks (ParserOutput $parserOutput, EntityId $entityId)
 Add alternate links as extension data.
 

Private Attributes

 $entityViewFactory
 
 $entityMetaTagsCreatorFactory
 
 $configBuilder
 
 $entityTitleLookup
 
 $languageFallbackChain
 
 $templateFactory
 
 $textProvider
 
 $entityDataFormatProvider
 
 $dataUpdaters
 
 $languageCode
 
 $language
 
 $repoSettings
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::__construct ( DispatchingEntityViewFactory  $entityViewFactory,
DispatchingEntityMetaTagsCreatorFactory  $entityMetaTagsCreatorFactory,
ParserOutputJsConfigBuilder  $configBuilder,
EntityTitleLookup  $entityTitleLookup,
LanguageFallbackChain  $languageFallbackChain,
TemplateFactory  $templateFactory,
LocalizedTextProvider  $textProvider,
EntityDataFormatProvider  $entityDataFormatProvider,
array  $dataUpdaters,
Language  $language 
)
Parameters
DispatchingEntityViewFactory$entityViewFactory
DispatchingEntityMetaTagsCreatorFactory$entityMetaTagsCreatorFactory
ParserOutputJsConfigBuilder$configBuilder
EntityTitleLookup$entityTitleLookup
LanguageFallbackChain$languageFallbackChain
TemplateFactory$templateFactory
LocalizedTextProvider$textProvider
EntityDataFormatProvider$entityDataFormatProvider
EntityParserOutputUpdater[]$dataUpdaters
Language$language

Member Function Documentation

◆ addAlternateLinks()

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::addAlternateLinks ( ParserOutput  $parserOutput,
EntityId  $entityId 
)
private

Add alternate links as extension data.

OutputPageBeforeHTMLHookHandler will add these to the OutputPage.

Parameters
ParserOutput$parserOutput
EntityId$entityId

◆ addHtmlToParserOutput()

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::addHtmlToParserOutput ( ParserOutput  $parserOutput,
EntityRevision  $entityRevision 
)
private

◆ addModules()

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::addModules ( ParserOutput  $parserOutput)
private

◆ getParserOutput()

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::getParserOutput ( EntityRevision  $entityRevision,
  $generateHtml = true 
)

Creates the parser output for the given entity revision.

Parameters
EntityRevision$entityRevision
bool$generateHtml
Exceptions
InvalidArgumentException
Returns
ParserOutput

Implements Wikibase\Repo\ParserOutput\EntityParserOutputGenerator.

Member Data Documentation

◆ $configBuilder

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$configBuilder
private

◆ $dataUpdaters

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$dataUpdaters
private

◆ $entityDataFormatProvider

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$entityDataFormatProvider
private

◆ $entityMetaTagsCreatorFactory

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$entityMetaTagsCreatorFactory
private

◆ $entityTitleLookup

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$entityTitleLookup
private

◆ $entityViewFactory

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$entityViewFactory
private

◆ $language

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$language
private

◆ $languageCode

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$languageCode
private

◆ $languageFallbackChain

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$languageFallbackChain
private

◆ $repoSettings

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$repoSettings
private

◆ $templateFactory

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$templateFactory
private

◆ $textProvider

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$textProvider
private

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