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

Public Member Functions

 __construct (ParserData $parserData, MessageFormatter $messageFormatter, CircularReferenceGuard $circularReferenceGuard)
 
 setShowMode ($mode)
 
 isQueryDisabled ()
 
 parse (array $functionParams)
 

Detailed Description

Provides the {{#ask}} parser function

See also
http://www.semantic-mediawiki.org/wiki/Help:Ask

GNU GPL v2+

Since
1.9
Author
Markus Krötzsch
Jeroen De Dauw
mwjames

Constructor & Destructor Documentation

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

Member Function Documentation

SMW\ParserFunctions\AskParserFunction::isQueryDisabled ( )

{{#ask}} is disabled (see $smwgQEnabled)

Since
1.9
Returns
string|null
SMW\ParserFunctions\AskParserFunction::parse ( array  $functionParams)

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

FIXME $rawParams use IParameterFormatter -> QueryParameterFormatter class Parse parameters and return query results to the ParserOutput object and output result data from the QueryProcessor

Todo:
$rawParams should be of IParameterFormatter QueryParameterFormatter class
Since
1.9
Parameters
array$functionParams
Returns
string|null
SMW\ParserFunctions\AskParserFunction::setShowMode (   $mode)

Enable showMode (normally only invoked by {{#show}})

Since
1.9
Returns
AskParserFunction

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