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)
 
 setIndicatorRegistry (IndicatorRegistry $indicatorRegistry)
 
 process (OutputPage &$outputPage, ParserOutput $parserOutput)
 
- Public Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 __construct ()
 
 setOptions (array $options)
 
 getOption ( $key, $default=null)
 
 isFlagSet ( $key, $flag)
 

Protected Member Functions

 addFactbox ( $outputPage, $parserOutput)
 
 getParserOutput ( $outputPage, $parserOutput)
 
- Protected Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 log ( $message, $context=[])
 

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)
Since
1.9
Parameters
NamespaceExaminer$namespaceExaminer

Member Function Documentation

◆ process()

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

◆ 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