Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator Class Reference
+ Inheritance diagram for Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator:
+ Collaboration diagram for Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator:

Public Member Functions

 __construct (EntityParserOutputGenerator $inner, StatsdDataFactoryInterface $stats, $timingPrefix)
 
 getParserOutput (EntityRevision $entityRevision, $generateHtml=true)
 Creates the parser output for the given entity. More...
 

Private Attributes

 $inner
 
 $stats
 
 $timingPrefix
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator::__construct ( EntityParserOutputGenerator  $inner,
StatsdDataFactoryInterface  $stats,
  $timingPrefix 
)
Parameters
EntityParserOutputGenerator$inner
StatsdDataFactoryInterface$stats
string$timingPrefixResulting metric will be: $timingPrefix.getParserOutput.<html/nohtml>><entitytype>

Member Function Documentation

◆ getParserOutput()

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

Creates the parser output for the given entity.

Parameters
EntityRevision$entityRevision
bool$generateHtml
Exceptions
InvalidArgumentException
Returns
ParserOutput

Implements Wikibase\Repo\ParserOutput\EntityParserOutputGenerator.

Member Data Documentation

◆ $inner

Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator::$inner
private

◆ $stats

Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator::$stats
private

◆ $timingPrefix

Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator::$timingPrefix
private

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