/** * 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 * * @param array $params * * @return string|null */ public function parse(array $rawParams) { $instance = new AskParserFunction($this->parserData, $this->messageFormatter, $this->circularReferenceGuard); $instance->setShowMode(true); return $instance->parse($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 * * @param array $params * * @return string|null */ public function parse(array $rawParams) { $ask = new AskParserFunction($this->parserData, $this->messageFormatter); return $ask->setShowMode(true)->parse($rawParams); }