Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\ParserFunctions\ShowParserFunction Class Reference

Public Member Functions

 __construct (ParserData $parserData, MessageFormatter $messageFormatter, CircularReferenceGuard $circularReferenceGuard)
 
 parse (array $rawParams)
 
 isQueryDisabled ()
 

Detailed Description

Class that provides the {{#show}} parser function

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

SMW\ParserFunctions\ShowParserFunction::__construct ( ParserData  $parserData,
MessageFormatter  $messageFormatter,
CircularReferenceGuard  $circularReferenceGuard 
)
Since
1.9
Parameters
ParserData$parserData
MessageFormatter$messageFormatter
CircularReferenceGuard$circularReferenceGuard

Member Function Documentation

SMW\ParserFunctions\ShowParserFunction::isQueryDisabled ( )

Returns a message about inline queries being disabled

See also
$smwgQEnabled
Since
1.9
Returns
string|null
SMW\ParserFunctions\ShowParserFunction::parse ( array  $rawParams)

Parse parameters, return results from the query printer and update the ParserOutput with meta data from the query

Note
The {{#show}} parser function internally uses the AskParserFunction and while an extra ShowParserFunction constructor is not really necessary it allows for separate unit testing
Since
1.9
Parameters
array$params
Returns
string|null

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