SRFjqPlotBar Class Reference

A query printer for bar 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_charttitle
 $m_barcolor
 $m_bardirection
 $m_numbersaxislabel

Static Protected Attributes

static $m_barchartnum = 1


Detailed Description

A query printer for bar 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_jqPlotBar.php.


Member Function Documentation

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

(non-PHPdoc)

See also:
SMWResultPrinter::handleParameters()

Reimplemented from SMWResultPrinter.

Definition at line 27 of file SRF_jqPlotBar.php.

SRFjqPlotBar::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 36 of file SRF_jqPlotBar.php.

SRFjqPlotBar::loadJavascriptAndCSS (  )  [protected]

Definition at line 40 of file SRF_jqPlotBar.php.

Referenced by addResources().

SRFjqPlotBar::addResources (  )  [protected]

Add the JS and CSS resources needed by this chart.

Since:
1.7

Reimplemented from SMWAggregatablePrinter.

Definition at line 54 of file SRF_jqPlotBar.php.

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

SRFjqPlotBar::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 101 of file SRF_jqPlotBar.php.

References END, and portalocker::log.

SRFjqPlotBar::getParameters (  ) 

See also:
SMWResultPrinter::getParameters

Reimplemented from SMWAggregatablePrinter.

Definition at line 237 of file SRF_jqPlotBar.php.

References SMWResultPrinter::$params.


Member Data Documentation

SRFjqPlotBar::$m_barchartnum = 1 [static, protected]

Definition at line 16 of file SRF_jqPlotBar.php.

SRFjqPlotBar::$m_charttitle [protected]

Definition at line 18 of file SRF_jqPlotBar.php.

SRFjqPlotBar::$m_barcolor [protected]

Definition at line 19 of file SRF_jqPlotBar.php.

SRFjqPlotBar::$m_bardirection [protected]

Definition at line 20 of file SRF_jqPlotBar.php.

SRFjqPlotBar::$m_numbersaxislabel [protected]

Definition at line 21 of file SRF_jqPlotBar.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