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, TermLanguageFallbackChain $termLanguageFallbackChain, EntityDataFormatProvider $entityDataFormatProvider, array $dataUpdaters, Language $language, bool $isMobileView)
 
 getParserOutput (EntityRevision $entityRevision, bool $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

DispatchingEntityViewFactory $entityViewFactory
 
DispatchingEntityMetaTagsCreatorFactory $entityMetaTagsCreatorFactory
 
ParserOutputJsConfigBuilder $configBuilder
 
TermLanguageFallbackChain $termLanguageFallbackChain
 
EntityDataFormatProvider $entityDataFormatProvider
 
array $dataUpdaters
 
Language $language
 
bool $isMobileView
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::__construct ( DispatchingEntityViewFactory $entityViewFactory,
DispatchingEntityMetaTagsCreatorFactory $entityMetaTagsCreatorFactory,
ParserOutputJsConfigBuilder $configBuilder,
TermLanguageFallbackChain $termLanguageFallbackChain,
EntityDataFormatProvider $entityDataFormatProvider,
array $dataUpdaters,
Language $language,
bool $isMobileView )
Parameters
DispatchingEntityViewFactory$entityViewFactory
DispatchingEntityMetaTagsCreatorFactory$entityMetaTagsCreatorFactory
ParserOutputJsConfigBuilder$configBuilder
TermLanguageFallbackChain$termLanguageFallbackChain
EntityDataFormatProvider$entityDataFormatProvider
EntityParserOutputUpdater[]$dataUpdaters
Language$language
bool$isMobileView

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.

◆ 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,
bool $generateHtml = true )

Creates the parser output for the given entity revision.

Exceptions
InvalidArgumentException

Implements Wikibase\Repo\ParserOutput\EntityParserOutputGenerator.

Member Data Documentation

◆ $configBuilder

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

◆ $dataUpdaters

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

◆ $entityDataFormatProvider

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

◆ $entityMetaTagsCreatorFactory

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

◆ $entityViewFactory

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

◆ $isMobileView

bool Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$isMobileView
private

◆ $language

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

◆ $termLanguageFallbackChain

TermLanguageFallbackChain Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator::$termLanguageFallbackChain
private

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