Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
SMW\MediaWiki\Hooks\OutputPageParserOutput Class Reference
Inheritance diagram for SMW\MediaWiki\Hooks\OutputPageParserOutput:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\Hooks\OutputPageParserOutput:
Collaboration graph
[legend]

Public Member Functions

 __construct (NamespaceExaminer $namespaceExaminer, PermissionExaminer $permissionExaminer)
 
 setIndicatorRegistry (IndicatorRegistry $indicatorRegistry)
 
 process (OutputPage &$outputPage, ParserOutput $parserOutput)
 

Protected Member Functions

 addFactbox (OutputPage $outputPage, ParserOutput $parserOutput)
 
 getParserOutput (OutputPage $outputPage, ParserOutput $parserOutput)
 

Detailed Description

OutputPageParserOutput hook is called after parse, before the HTML is added to the output

See also
https://www.mediawiki.org/wiki/Manual:Hooks/OutputPageParserOutput
Note
This hook copies SMW's custom data from the given ParserOutput object to the given OutputPage object, since otherwise it is not possible to access it later on to build a Factbox.

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Hooks\OutputPageParserOutput::__construct ( NamespaceExaminer  $namespaceExaminer,
PermissionExaminer  $permissionExaminer 
)
Since
1.9
Parameters
NamespaceExaminer$namespaceExaminer
PermissionExaminer$permissionExaminer

Member Function Documentation

◆ process()

SMW\MediaWiki\Hooks\OutputPageParserOutput::process ( OutputPage &  $outputPage,
ParserOutput  $parserOutput 
)
Since
1.9

◆ setIndicatorRegistry()

SMW\MediaWiki\Hooks\OutputPageParserOutput::setIndicatorRegistry ( IndicatorRegistry  $indicatorRegistry)
Since
3.1
Parameters
IndicatorRegistry$indicatorRegistry

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

About | General disclaimer | Privacy policy