Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (SMWQueryResult $queryResult) | |
setIsRawMode ( $isRawMode) | |
getContinueOffset () | |
getType () | |
getResult () | |
doFormat () | |
setIndexedTagName (&$arr, $tag=null) | |
Protected Member Functions | |
formatResults (array $queryResult) | |
formatErrors (array $errors) | |
Protected Attributes | |
$continueOffset = false | |
$type | |
$isRawMode = false | |
This class handles the Api related query result formatting
GNU GPL v2+
SMW\MediaWiki\Api\ApiQueryResultFormatter::__construct | ( | SMWQueryResult | $queryResult | ) |
SMWQueryResult | $queryResult |
SMW\MediaWiki\Api\ApiQueryResultFormatter::doFormat | ( | ) |
Result formatting
|
protected |
Formatting an error array in order to support JSON/XML
array | $errors |
|
protected |
Formatting a result array to support JSON/XML standards
array | $queryResult |
SMW\MediaWiki\Api\ApiQueryResultFormatter::getContinueOffset | ( | ) |
Returns an offset used for continuation support
SMW\MediaWiki\Api\ApiQueryResultFormatter::getResult | ( | ) |
Returns formatted result
SMW\MediaWiki\Api\ApiQueryResultFormatter::getType | ( | ) |
Returns the result type
SMW\MediaWiki\Api\ApiQueryResultFormatter::setIndexedTagName | ( | & | $arr, |
$tag = null |
|||
) |
Add '_element' to an array
array | &$arr | |
string | $tag |
SMW\MediaWiki\Api\ApiQueryResultFormatter::setIsRawMode | ( | $isRawMode | ) |
Sets whether the formatter requested raw data and is used in connection with ApiQueryResultFormatter::setIndexedTagName
boolean | $isRawMode |