Base for API modules that query SMW
GNU GPL v2+
- Since
- 1.9
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
mwjames
◆ addQueryResult()
SMW\MediaWiki\Api\Query::addQueryResult |
( |
SMWQueryResult |
$queryResult, |
|
|
|
$outputFormat = 'json' |
|
) |
| |
|
protected |
Add the query result to the API output.
- Since
- 1.6.2
- Parameters
-
SMWQueryResult | $queryResult | |
◆ getQuery()
SMW\MediaWiki\Api\Query::getQuery |
( |
|
$queryString, |
|
|
array |
$printouts, |
|
|
array |
$parameters = [] |
|
) |
| |
|
protected |
Returns a query object for the provided query string and list of printouts.
- Since
- 1.6.2
- Parameters
-
string | $queryString | |
array | $printouts | |
array | $parameters | |
- Returns
- SMWQuery
◆ getQueryResult()
SMW\MediaWiki\Api\Query::getQueryResult |
( |
SMWQuery |
$query | ) |
|
|
protected |
Run the actual query and return the result.
- Since
- 1.6.2
- Parameters
-
- Returns
- SMWQueryResult
The documentation for this class was generated from the following file:
- SemanticMediaWiki/src/MediaWiki/Api/Query.php