Wikibase
MediaWiki Wikibase extension
Wikibase\Client\Hooks\ParserHookHandler Class Reference

Handler for some Parser-related hooks. More...

+ Inheritance diagram for Wikibase\Client\Hooks\ParserHookHandler:
+ Collaboration diagram for Wikibase\Client\Hooks\ParserHookHandler:

Public Member Functions

 __construct (RestrictedEntityLookup $restrictedEntityLookup, int $entityAccessLimit)
 
 onParserClearState ( $parser)
 Called when resetting the state of the Parser between parses. More...
 
 onParserLimitReportPrepare ( $parser, $output)
 

Static Public Member Functions

static factory (SettingsArray $clientSettings)
 

Private Attributes

 $restrictedEntityLookup
 
 $entityAccessLimit
 

Detailed Description

Handler for some Parser-related hooks.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\ParserHookHandler::__construct ( RestrictedEntityLookup  $restrictedEntityLookup,
int  $entityAccessLimit 
)

Member Function Documentation

◆ factory()

static Wikibase\Client\Hooks\ParserHookHandler::factory ( SettingsArray  $clientSettings)
static

◆ onParserClearState()

Wikibase\Client\Hooks\ParserHookHandler::onParserClearState (   $parser)

Called when resetting the state of the Parser between parses.

Parameters
Parser$parser

◆ onParserLimitReportPrepare()

Wikibase\Client\Hooks\ParserHookHandler::onParserLimitReportPrepare (   $parser,
  $output 
)
Parameters
Parser$parser
ParserOutput$output

Member Data Documentation

◆ $entityAccessLimit

Wikibase\Client\Hooks\ParserHookHandler::$entityAccessLimit
private

◆ $restrictedEntityLookup

Wikibase\Client\Hooks\ParserHookHandler::$restrictedEntityLookup
private

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