|
static | compareQueryResults ( $a, $b) |
|
static | doCompoundQuery (Parser &$parser) |
|
static | separateParams ( $params) |
|
static | queryAndMergeResults ( $queryParams, $otherParams) |
|
static | setRecursiveTextProcessor (RecursiveTextProcessor $recursiveTextProcessor=null) |
|
static | getProcessedParams (array $params, array $printRequests=[], $unknownInvalid=true, $context=null, $showMode=false) |
|
static | createQuery ( $queryString, array $params, $context=self::INLINE_QUERY, $format='', array $extraPrintouts=[], $contextPage=null) |
|
static | addThisPrintout (array &$printRequests, array $rawParams) |
|
static | getQueryAndParamsFromFunctionParams (array $rawParams, $outputMode, $context, $showMode, $contextPage=null) |
|
static | getResultFromQuery (SMWQuery $query, array $params, $outputMode, $context) |
|
static | getParameters ( $context=null, $resultPrinter=null) |
|
static | getFormatParameters ( $format) |
|
|
static | getSubParams ( $param) |
|
static | getQueryResultFromFunctionParams ( $rawParams, $context=QueryProcessor::INLINE_QUERY, $showMode=false) |
|
static | mergeSMWQueryResults ( $result1, $result2) |
|
static | mergeSMWPrintRequests ( $printRequests1, $printRequests2) |
|
static | getQueryResultFromQueryString ( $querystring, array $params, $extraPrintouts, $context=QueryProcessor::INLINE_QUERY) |
|
static | getResultFromQueryResult (CompoundQueryResult $res, array $params, $outputmode, $context=QueryProcessor::INLINE_QUERY, $format='') |
|
Class that holds static functions for handling compound queries. This class inherits from Semantic MediaWiki's QueryProcessor.
GNU GPL v2+
- Since
- 1.0
- Author
- Yaron Koren
-
Peter Grassberger < peter.nosp@m.theo.nosp@m.ne@gm.nosp@m.ail..nosp@m.com >
◆ compareQueryResults()
static SCQ\CompoundQueryProcessor::compareQueryResults |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
static |
Comparison helper function, used in sorting results.
◆ doCompoundQuery()
static SCQ\CompoundQueryProcessor::doCompoundQuery |
( |
Parser & |
$parser | ) |
|
|
static |
Handler for the #compound_query parser function.
- Parameters
-
- Returns
- string
◆ getQueryResultFromFunctionParams()
static SCQ\CompoundQueryProcessor::getQueryResultFromFunctionParams |
( |
|
$rawParams, |
|
|
|
$context = QueryProcessor::INLINE_QUERY , |
|
|
|
$showMode = false |
|
) |
| |
|
staticprotected |
- Parameters
-
$rawparams | |
$context | |
$showmode | |
- Returns
- SMWQueryResult
◆ getQueryResultFromQueryString()
static SCQ\CompoundQueryProcessor::getQueryResultFromQueryString |
( |
|
$querystring, |
|
|
array |
$params, |
|
|
|
$extraPrintouts, |
|
|
|
$context = QueryProcessor::INLINE_QUERY |
|
) |
| |
|
staticprotected |
- Parameters
-
| $querystring | |
array | $params | |
| $extraPrintouts | |
| $outputMode | |
| $context | |
- Returns
- SMWQueryResult
◆ getResultFromQueryResult()
static SCQ\CompoundQueryProcessor::getResultFromQueryResult |
( |
CompoundQueryResult |
$res, |
|
|
array |
$params, |
|
|
|
$outputmode, |
|
|
|
$context = QueryProcessor::INLINE_QUERY , |
|
|
|
$format = '' |
|
) |
| |
|
staticprotected |
◆ getSubParams()
static SCQ\CompoundQueryProcessor::getSubParams |
( |
|
$param | ) |
|
|
staticprotected |
An alternative to explode() - that function won't work here, because we don't want to split the string on all semicolons, just the ones that aren't contained within square brackets
- Parameters
-
- Returns
- array
◆ mergeSMWQueryResults()
static SCQ\CompoundQueryProcessor::mergeSMWQueryResults |
( |
|
$result1, |
|
|
|
$result2 |
|
) |
| |
|
staticprotected |
Combine two arrays of SMWWikiPageValue objects into one
- Parameters
-
array | $result1 | |
array | $result2 | |
- Returns
- array
◆ queryAndMergeResults()
static SCQ\CompoundQueryProcessor::queryAndMergeResults |
( |
|
$queryParams, |
|
|
|
$otherParams |
|
) |
| |
|
static |
Query and merge results of subqueries.
- Parameters
-
$queryParams | |
$otherParams | |
- Returns
- array
◆ separateParams()
static SCQ\CompoundQueryProcessor::separateParams |
( |
|
$params | ) |
|
|
static |
Separates $queryParams from $otherParams.
- Parameters
-
- Returns
- array
The documentation for this class was generated from the following file:
- CompoundQueryProcessor.php