Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMW\MediaWiki\Hooks\OutputPageParserOutput Class Reference

Public Member Functions

 __construct (OutputPage &$outputPage, ParserOutput $parserOutput)
 
 process ()
 

Protected Member Functions

 canPerformUpdate ()
 
 performUpdate ()
 
 getParserOutput ()
 

Protected Attributes

 $outputPage = null
 
 $parserOutput = null
 

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

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

Member Function Documentation

SMW\MediaWiki\Hooks\OutputPageParserOutput::canPerformUpdate ( )
protected
SMW\MediaWiki\Hooks\OutputPageParserOutput::getParserOutput ( )
protected
SMW\MediaWiki\Hooks\OutputPageParserOutput::performUpdate ( )
protected
SMW\MediaWiki\Hooks\OutputPageParserOutput::process ( )
See also
FunctionHook::process
Since
1.9
Returns
true

Member Data Documentation

SMW\MediaWiki\Hooks\OutputPageParserOutput::$outputPage = null
protected
SMW\MediaWiki\Hooks\OutputPageParserOutput::$parserOutput = null
protected

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