Path

ez components / documentation / api reference / 2009.2 / graph


eZ Components 2009.2

Graph: ezcGraphChartSingleDataContainer

[ Tutorial ] [ Gallery ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcGraphChartSingleDataContainer

Container class for datasets, which ensures, that only one dataset is used. [source]
Needed for pie charts which can only display one dataset.

Parents

ezcGraphChartDataContainer
   |
   --ezcGraphChartSingleDataContainer

Inherited Member Variables

From ezcGraphChartDataContainer:
protected  ezcGraphChartDataContainer::$chart
protected  ezcGraphChartDataContainer::$data

Method Summary

protected ezcGraphDataSet addDataSet( $name, $dataSet )
Adds a dataset to the charts data

Inherited Methods

From ezcGraphChartDataContainer :
protected ezcGraphDataSet ezcGraphChartDataContainer::addDataSet()
Adds a dataset to the charts data
public int ezcGraphChartDataContainer::count()
Returns the number of datasets in the row.
public ezcGraphDataSet ezcGraphChartDataContainer::current()
Returns the currently selected dataset.
public int ezcGraphChartDataContainer::key()
Returns the key of the currently selected dataset.
public mixed ezcGraphChartDataContainer::next()
Returns the next dataset and selects it or false on the last dataset.
public bool ezcGraphChartDataContainer::offsetExists()
Returns if the given offset exists.
public ezcGraphDataSet ezcGraphChartDataContainer::offsetGet()
Returns the element with the given offset.
public void ezcGraphChartDataContainer::offsetSet()
Set the element with the given offset.
public void ezcGraphChartDataContainer::offsetUnset()
Unset the element with the given offset.
public ezcGraphDataSet ezcGraphChartDataContainer::rewind()
Selects the very first dataset and returns it.
public bool ezcGraphChartDataContainer::valid()
Returns if the current dataset is valid.

Methods

addDataSet

ezcGraphDataSet addDataSet( string $name, ezcGraphDataSet $dataSet )
Adds a dataset to the charts data

Parameters

Name Type Description
$name string  
$dataSet ezcGraphDataSet  

Throws

ClassDescription
ezcGraphTooManyDataSetExceptions If too many datasets are created

Redefinition of

Method Description
ezcGraphChartDataContainer::addDataSet() Adds a dataset to the charts data

Last updated: Mon, 21 Dec 2009