Inherits SMWResultPrinter.
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. | |
| printRow ($row, &$rownum, &$rows_in_cur_column, $rows_per_column, $format, $plainlist, $header, $footer, $rowstart, $rowend, &$result, $column_width, $res, $listsep, $finallistsep) | |
| showFurtherResults (&$result, $res, $rowstart, $rowend) | |
| isPlainlist () | |
Protected Attributes | |
| $mSep | |
| $mTemplate | |
| $mNamedArgs | |
| $mUserParam | |
| $mColumns | |
| $mIntroTemplate | |
| $mOutroTemplate | |
Somewhat confusing code, since one has to iterate through lists, inserting texts in between their elements depending on whether the element is the first that is printed, the first that is printed in parentheses, or the last that will be printed. Maybe one could further simplify this.
Definition at line 19 of file SMW_QP_List.php.
| SMWListResultPrinter::handleParameters | ( | array $ | params, | |
| $ | outputmode | |||
| ) | [protected] |
| array | $params | |
| $outputmode |
Reimplemented from SMWResultPrinter.
Definition at line 37 of file SMW_QP_List.php.
References isPlainlist().
| SMWListResultPrinter::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 49 of file SMW_QP_List.php.
| SMWListResultPrinter::getResultText | ( | SMWQueryResult $ | res, | |
| $ | outputmode | |||
| ) | [protected] |
Return serialised results in specified format.
Implemented by subclasses.
Reimplemented from SMWResultPrinter.
Definition at line 53 of file SMW_QP_List.php.
References SMWQueryResult::addErrors(), SMWResultPrinter::getSearchLabel(), SMWResultPrinter::linkFurtherResults(), printRow(), and showFurtherResults().
| SMWListResultPrinter::printRow | ( | $ | row, | |
| &$ | rownum, | |||
| &$ | rows_in_cur_column, | |||
| $ | rows_per_column, | |||
| $ | format, | |||
| $ | plainlist, | |||
| $ | header, | |||
| $ | footer, | |||
| $ | rowstart, | |||
| $ | rowend, | |||
| &$ | result, | |||
| $ | column_width, | |||
| $ | res, | |||
| $ | listsep, | |||
| $ | finallistsep | |||
| ) | [protected] |
Definition at line 143 of file SMW_QP_List.php.
References END, and SMWResultPrinter::getLinker().
Referenced by getResultText().
| SMWListResultPrinter::showFurtherResults | ( | &$ | result, | |
| $ | res, | |||
| $ | rowstart, | |||
| $ | rowend | |||
| ) | [protected] |
Definition at line 234 of file SMW_QP_List.php.
References SMWResultPrinter::getSearchLabel().
Referenced by getResultText().
| SMWListResultPrinter::isPlainlist | ( | ) | [protected] |
Definition at line 281 of file SMW_QP_List.php.
Referenced by getParameters(), and handleParameters().
| SMWListResultPrinter::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 285 of file SMW_QP_List.php.
References SMWResultPrinter::$params, and isPlainlist().
SMWListResultPrinter::$mSep [protected] |
Definition at line 21 of file SMW_QP_List.php.
SMWListResultPrinter::$mTemplate [protected] |
Definition at line 22 of file SMW_QP_List.php.
SMWListResultPrinter::$mNamedArgs [protected] |
Definition at line 23 of file SMW_QP_List.php.
SMWListResultPrinter::$mUserParam [protected] |
Definition at line 24 of file SMW_QP_List.php.
SMWListResultPrinter::$mColumns [protected] |
Definition at line 25 of file SMW_QP_List.php.
SMWListResultPrinter::$mIntroTemplate [protected] |
Definition at line 26 of file SMW_QP_List.php.
SMWListResultPrinter::$mOutroTemplate [protected] |
Definition at line 27 of file SMW_QP_List.php.
1.5.6