Semantic MediaWiki and related extensions
|
Public Member Functions | |
getName () | |
getQueryResult () | |
setQueryResult ( $queryResult) | |
getTemplateCall ( $templateName, $params=[]) | |
getParamDefinitions (array $definitions) | |
getLinker ( $firstcol=false) | |
getLinkerForColumn ( $column) | |
Protected Member Functions | |
postProcessParameters () | |
getResultText (SMWQueryResult $queryResult, $outputmode) | |
buildTreeFromQueryResult ( $rootHash) | |
getRootHash () | |
buildTreeFromNodeList ( $rootHash, $nodes) | |
buildLinesFromTree ( $tree) | |
addError ( $msgkey, $params=[]) | |
Result printer that prints query results as a tree (nested html lists).
The available formats are 'tree', 'ultree', 'oltree'. 'tree' is an alias of 'ultree'. In an #ask query the parameter 'parent' must be set to contain the name of the property, that gives the parent page of the subject page.
|
protected |
string | $msgkey | |
string | | string[] $params |
|
protected |
TreeNode | $tree |
|
protected |
|
protected |
string | $rootHash |
SRF\Formats\Tree\TreeResultPrinter::getLinker | ( | $firstcol = false | ) |
Returns a linker object for making hyperlinks
SRF\Formats\Tree\TreeResultPrinter::getLinkerForColumn | ( | $column | ) |
Depending on current linking settings, returns a linker object for making hyperlinks or NULL if no links should be created.
int | $column | Column number |
SRF\Formats\Tree\TreeResultPrinter::getName | ( | ) |
(non-PHPdoc)
SRF\Formats\Tree\TreeResultPrinter::getParamDefinitions | ( | array | $definitions | ) |
$definitions | array of IParamDefinition |
Exception |
SRF\Formats\Tree\TreeResultPrinter::getQueryResult | ( | ) |
Exception |
|
protected |
Return serialised results in specified format.
SMWQueryResult | $queryResult | |
$outputmode |
|
protected |
SRF\Formats\Tree\TreeResultPrinter::getTemplateCall | ( | $templateName, | |
$params = [] |
|||
) |
string | $templateName | |
string[] | $params |
|
protected |
SRF\Formats\Tree\TreeResultPrinter::setQueryResult | ( | $queryResult | ) |
SMWQueryResult | null | $queryResult |