Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 
 onParserLimitReportPrepare ( $parser, $output)
 

Static Public Member Functions

static newFromGlobalState ()
 

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

◆ newFromGlobalState()

static Wikibase\Client\Hooks\ParserHookHandler::newFromGlobalState ( )
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: