SMWTableResultPrinter Class Reference

Inherits SMWResultPrinter.

List of all members.

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 = ''


Detailed Description

Definition at line 12 of file SMW_QP_Table.php.


Member Function Documentation

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.

Returns:
string

Reimplemented from SMWResultPrinter.

Definition at line 16 of file SMW_QP_Table.php.

SMWTableResultPrinter::handleParameters ( array $  params,
outputmode 
) [protected]

See also:
SMWResultPrinter::handleParameters
Since:
1.6
Parameters:
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.

Since:
1.6.1
Parameters:
array $subject
$outputmode 
Returns:
string

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.

Since:
1.6.1
Parameters:
SMWResultArray $resultArray
$outputmode 
Returns:
string

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.

Since:
1.6.1
Parameters:
array $dataValues
$outputmode 
boolean $isSubject
Returns:
string

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.

Since:
1.5
Returns:
array of Parameter

Reimplemented from SMWResultPrinter.

Definition at line 202 of file SMW_QP_Table.php.

References SMWResultPrinter::$params.


Member Data Documentation

SMWTableResultPrinter::$mHTMLClass = '' [protected]

Definition at line 14 of file SMW_QP_Table.php.


The documentation for this class was generated from the following file:

Generated on Fri Feb 10 07:15:48 2012 for Semantic MediaWiki by  doxygen 1.5.6