Graph: ezcGraphDataSet
[ ]
[ Gallery ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphDataSet
|
Basic class to contain the charts data [
source]
Implemented Interfaces
- ArrayAccess (internal interface)
- Iterator (internal interface)
- Countable (internal interface)
Descendents
Properties
Member Variables
|
protected mixed |
$current
Current datapoint element needed for iteration over datapoint with ArrayAccess |
|
protected array |
$data
Array which contains the data of the datapoint |
|
protected array |
$keys
Array keys |
|
protected ezcGraphPalette |
$pallet
Color palette used for datapoint colorization |
|
protected array |
$properties
Property array |
Method Summary
|
public string |
current(
)
Returns the currently selected datapoint. |
|
public string |
key(
)
Returns the key of the currently selected datapoint. |
|
public float |
next(
)
Returns the next datapoint and selects it or false on the last datapoint. |
|
public bool |
offsetExists(
$key )
Returns true if the given datapoint exists Allows isset() using ArrayAccess. |
|
public float |
offsetGet(
$key )
Returns the value for the given datapoint Get an datapoint value by ArrayAccess. |
|
public void |
offsetSet(
$key, $value )
Sets the value for a datapoint. |
|
public void |
offsetUnset(
$key )
Unset an option. |
|
public float |
rewind(
)
Selects the very first datapoint and returns it. |
|
public bool |
valid(
)
Returns if the current datapoint is valid. |
|
public mixed |
__get(
$propertyName )
Property get access. |
Methods
current
string current(
)
Returns the currently selected datapoint.
This method is part of the Iterator interface to allow access to the datapoints of this row by iterating over it like an array (e.g. using foreach).
Redefined in descendants as
key
string key(
)
Returns the key of the currently selected datapoint.
This method is part of the Iterator interface to allow access to the datapoints of this row by iterating over it like an array (e.g. using foreach).
Redefined in descendants as
next
float next(
)
Returns the next datapoint and selects it or false on the last datapoint.
This method is part of the Iterator interface to allow access to the datapoints of this row by iterating over it like an array (e.g. using foreach).
Redefined in descendants as
offsetExists
bool offsetExists(
string
$key )
Returns true if the given datapoint exists Allows isset() using ArrayAccess.
Parameters
| Name |
Type |
Description |
$key |
string |
The key of the datapoint to get. |
Redefined in descendants as
offsetGet
float offsetGet(
string
$key )
Returns the value for the given datapoint Get an datapoint value by ArrayAccess.
Parameters
| Name |
Type |
Description |
$key |
string |
The key of the datapoint to get. |
Redefined in descendants as
offsetSet
void offsetSet(
string
$key, float
$value )
Sets the value for a datapoint.
Sets an datapoint using ArrayAccess.
Parameters
| Name |
Type |
Description |
$key |
string |
The kex of a datapoint to set. |
$value |
float |
The value for the datapoint. |
Redefined in descendants as
offsetUnset
void offsetUnset(
string
$key )
Unset an option.
Unsets an option using ArrayAccess.
Parameters
| Name |
Type |
Description |
$key |
string |
The options to unset. |
Throws
| Class | Description |
ezcBaseValueException |
If a the value for a property is out of range. |
ezcBasePropertyNotFoundException |
If a the value for the property options is not an instance of |
rewind
float rewind(
)
Selects the very first datapoint and returns it.
This method is part of the Iterator interface to allow access to the datapoints of this row by iterating over it like an array (e.g. using foreach).
Redefined in descendants as
valid
bool valid(
)
Returns if the current datapoint is valid.
This method is part of the Iterator interface to allow access to the datapoints of this row by iterating over it like an array (e.g. using foreach).
Redefined in descendants as
__get
mixed __get(
string
$propertyName )
Property get access.
Simply returns a given option.
Parameters
| Name |
Type |
Description |
$propertyName |
string |
The name of the option to get. |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If a the value for the property options is not an instance of |
Redefined in descendants as
Last updated: Mon, 21 Dec 2009