SMWAutoResultPrinter Class Reference
[SMWQuery]

New implementation of SMW's printer for automatically selecting the format for printing a result. More...

Inherits SMWResultPrinter.

List of all members.

Public Member Functions

 getResult (SMWQueryResult $results, array $params, $outputmode)
 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

 getResultText (SMWQueryResult $res, $outputmode)


Detailed Description

New implementation of SMW's printer for automatically selecting the format for printing a result.

Definition at line 20 of file SMW_QP_Auto.php.


Member Function Documentation

SMWAutoResultPrinter::getResult ( SMWQueryResult results,
array $  params,
outputmode 
)

See also:
SMWResultPrinter::getResult
Parameters:
$results SMWQueryResult
$params array
$outputmode integer
Returns:
string

This hook allows extensions to override SMWs implementation of default result format handling.

Since:
1.5.2

Reimplemented from SMWResultPrinter.

Definition at line 31 of file SMW_QP_Auto.php.

References SMWQueryResult::getColumnCount(), SMWQueryProcessor::getResultPrinter(), SMWQueryProcessor::INLINE_QUERY, and SMWQueryProcessor::SPECIAL_PAGE.

SMWAutoResultPrinter::getResultText ( SMWQueryResult res,
outputmode 
) [protected]

See also:
SMWResultPrinter::getResultText
Parameters:
SMWQueryResult $res
$outputmode 

Reimplemented from SMWResultPrinter.

Definition at line 61 of file SMW_QP_Auto.php.

SMWAutoResultPrinter::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 65 of file SMW_QP_Auto.php.

References smwfLoadExtensionMessages().

SMWAutoResultPrinter::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

Reimplemented from SMWResultPrinter.

Definition at line 70 of file SMW_QP_Auto.php.

References SMWQueryProcessor::getResultPrinter(), SMWQueryProcessor::INLINE_QUERY, and SMWQueryProcessor::SPECIAL_PAGE.


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

Generated on Sun Sep 18 07:15:40 2011 for Semantic MediaWiki by  doxygen 1.5.6