Public Member Functions | |
| getName () | |
| Get a human readable label for this printer. | |
| getParameters () | |
| A function to describe the allowed parameters of a query using any specific format - most query printers should override this function. | |
Protected Member Functions | |
| handleParameters (array $params, $outputmode) | |
| getResultText (SMWQueryResult $res, $outputmode) | |
| Return serialised results in specified format. | |
| getRowForSubject (array $subject, $outputmode, $columnClasses, $rowNum) | |
| Gets a single table row for a subject, ie page. | |
| getCellForPropVals (SMWResultArray $resultArray, $outputmode, $columnClass) | |
| Gets a table cell for all values of a property of a subject. | |
| getCellContent (array $dataValues, $outputmode, $isSubject) | |
| Gets the contents for a table cell for all values of a property of a subject. | |
Protected Attributes | |
| $mHTMLClass = '' | |
Definition at line 12 of file SMW_QP_Table.php.
| SMWTableResultPrinter::getName | ( | ) |
Get a human readable label for this printer.
The default is to return just the format identifier. Concrete implementations may refer to messages here. The format name is normally not used in wiki text but only in forms etc. hence the user language should be used when retrieving messages.
Reimplemented from SMWResultPrinter.
Definition at line 16 of file SMW_QP_Table.php.
| SMWTableResultPrinter::handleParameters | ( | array $ | params, | |
| $ | outputmode | |||
| ) | [protected] |
| array | $params | |
| $outputmode |
Reimplemented from SMWResultPrinter.
Definition at line 28 of file SMW_QP_Table.php.
| SMWTableResultPrinter::getResultText | ( | SMWQueryResult $ | res, | |
| $ | outputmode | |||
| ) | [protected] |
Return serialised results in specified format.
Implemented by subclasses.
Reimplemented from SMWResultPrinter.
Definition at line 33 of file SMW_QP_Table.php.
References SMWQueryResult::getColumnCount(), SMWQueryResult::getQueryLink(), getRowForSubject(), SMWResultPrinter::getSearchLabel(), and SMWResultPrinter::linkFurtherResults().
| SMWTableResultPrinter::getRowForSubject | ( | array $ | subject, | |
| $ | outputmode, | |||
| $ | columnClasses, | |||
| $ | rowNum | |||
| ) | [protected] |
Gets a single table row for a subject, ie page.
| array | $subject | |
| $outputmode |
Definition at line 114 of file SMW_QP_Table.php.
References getCellForPropVals().
Referenced by getResultText().
| SMWTableResultPrinter::getCellForPropVals | ( | SMWResultArray $ | resultArray, | |
| $ | outputmode, | |||
| $ | columnClass | |||
| ) | [protected] |
Gets a table cell for all values of a property of a subject.
| SMWResultArray | $resultArray | |
| $outputmode |
Definition at line 142 of file SMW_QP_Table.php.
References getCellContent(), and SMWPrintRequest::PRINT_THIS.
Referenced by getRowForSubject().
| SMWTableResultPrinter::getCellContent | ( | array $ | dataValues, | |
| $ | outputmode, | |||
| $ | isSubject | |||
| ) | [protected] |
Gets the contents for a table cell for all values of a property of a subject.
| array | $dataValues | |
| $outputmode | ||
| boolean | $isSubject |
Definition at line 191 of file SMW_QP_Table.php.
References SMWResultPrinter::getLinker().
Referenced by getCellForPropVals().
| SMWTableResultPrinter::getParameters | ( | ) |
A function to describe the allowed parameters of a query using any specific format - most query printers should override this function.
TODO: refactor non-printer params up to the query processor and do all param handling there.
Reimplemented from SMWResultPrinter.
Definition at line 202 of file SMW_QP_Table.php.
References SMWResultPrinter::$params.
SMWTableResultPrinter::$mHTMLClass = '' [protected] |
Definition at line 14 of file SMW_QP_Table.php.
1.5.6