SRFjqPlotPie Class Reference

A query printer for pie charts using the jqPlot JavaScript library. More...

Inherits SMWAggregatablePrinter.

List of all members.

Public Member Functions

 getName ()
 Get a human readable label for this printer.
 getParameters ()

Protected Member Functions

 handleParameters (array $params, $outputmode)
 (non-PHPdoc)
 loadJavascriptAndCSS ()
 addResources ()
 Add the JS and CSS resources needed by this chart.
 getFormatOutput (array $data)
 Get the JS and HTML that needs to be added to the output to create the chart.

Protected Attributes

 $m_width
 $m_height
 $m_charttitle

Static Protected Attributes

static $m_piechartnum = 1


Detailed Description

A query printer for pie charts using the jqPlot JavaScript library.

Since:
1.5.1
GNU GPL v3

Author:
Sanyam Goyal

Yaron Koren

Jeroen De Dauw < jeroendedauw@gmail.com >

Definition at line 14 of file SRF_jqPlotPie.php.


Member Function Documentation

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

(non-PHPdoc)

See also:
SMWResultPrinter::handleParameters()

Reimplemented from SMWResultPrinter.

Definition at line 26 of file SRF_jqPlotPie.php.

SRFjqPlotPie::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 34 of file SRF_jqPlotPie.php.

SRFjqPlotPie::loadJavascriptAndCSS (  )  [protected]

Definition at line 38 of file SRF_jqPlotPie.php.

Referenced by addResources().

SRFjqPlotPie::addResources (  )  [protected]

Add the JS and CSS resources needed by this chart.

Since:
1.7

Reimplemented from SMWAggregatablePrinter.

Definition at line 49 of file SRF_jqPlotPie.php.

References $srfgJQPlotIncluded, $srfgScriptPath, and loadJavascriptAndCSS().

SRFjqPlotPie::getFormatOutput ( array $  data  )  [protected]

Get the JS and HTML that needs to be added to the output to create the chart.

Since:
1.7
Parameters:
array $data label => value

Reimplemented from SMWAggregatablePrinter.

Definition at line 84 of file SRF_jqPlotPie.php.

References END.

SRFjqPlotPie::getParameters (  ) 

See also:
SMWResultPrinter::getParameters

Reimplemented from SMWAggregatablePrinter.

Definition at line 137 of file SRF_jqPlotPie.php.

References SMWResultPrinter::$params.


Member Data Documentation

SRFjqPlotPie::$m_piechartnum = 1 [static, protected]

Definition at line 16 of file SRF_jqPlotPie.php.

SRFjqPlotPie::$m_width [protected]

Definition at line 18 of file SRF_jqPlotPie.php.

SRFjqPlotPie::$m_height [protected]

Definition at line 19 of file SRF_jqPlotPie.php.

SRFjqPlotPie::$m_charttitle [protected]

Definition at line 20 of file SRF_jqPlotPie.php.


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