SRFMath Class Reference

Inherits SMWResultPrinter.

List of all members.

Public Member Functions

 getName ()
 (non-PHPdoc)
 getResult (SMWQueryResult $results, array $params, $outputmode)
 (non-PHPdoc)
 getParameters ()
 (non-PHPdoc)

Static Public Member Functions

static addNumbersForDataItem (SMWDataItem $dataItem, array &$numbers)
 Gets a list of all numbers contained in a dataitem.

Protected Member Functions

 getResultText (SMWQueryResult $res, $outputmode)
 (non-PHPdoc)
 getNumbers (SMWQueryResult $res)
 Gets a list of all numbers.


Detailed Description

Definition at line 15 of file SRF_Math.php.


Member Function Documentation

SRFMath::getName (  ) 

(non-PHPdoc)

See also:
SMWResultPrinter::getName()

Reimplemented from SMWResultPrinter.

Definition at line 21 of file SRF_Math.php.

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

(non-PHPdoc)

See also:
SMWResultPrinter::getResult()

Reimplemented from SMWResultPrinter.

Definition at line 29 of file SRF_Math.php.

References getResultText(), and SMWResultPrinter::handleParameters().

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

(non-PHPdoc)

See also:
SMWResultPrinter::getResultText()

Reimplemented from SMWResultPrinter.

Definition at line 39 of file SRF_Math.php.

References getNumbers().

Referenced by getResult().

SRFMath::getNumbers ( SMWQueryResult res  )  [protected]

Gets a list of all numbers.

Since:
1.6
Parameters:
SMWQueryResult $res
Returns:
array

Definition at line 79 of file SRF_Math.php.

Referenced by getResultText().

static SRFMath::addNumbersForDataItem ( SMWDataItem dataItem,
array &$  numbers 
) [static]

Gets a list of all numbers contained in a dataitem.

Since:
1.6
Parameters:
SMWDataItem $dataItem
array $numbers

Definition at line 101 of file SRF_Math.php.

References SMWDataItem::TYPE_CONTAINER, and SMWDataItem::TYPE_NUMBER.

SRFMath::getParameters (  ) 

(non-PHPdoc)

See also:
SMWResultPrinter::getParameters()

Reimplemented from SMWResultPrinter.

Definition at line 119 of file SRF_Math.php.

References SMWResultPrinter::$params.


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

Generated on Sun Mar 18 07:15:45 2012 for Semantic MediaWiki by  doxygen 1.5.6