The axis container class is internally used to store and validate sets of axis, and offering access using the SPL ArrayAccess interface to add or modify its contents.
Source for this file: /Graph/src/axis/container.php
Version: | //autogentag// |
protected ezcGraphLineChart |
$chart
Chart the container is used with |
protected array(ezcGraphChartElementAxis) |
$data
= array()
Contains the data of a chart |
public int |
count(
)
Returns the number of datasets in the row. |
public ezcGraphChartElementAxis |
current(
)
Returns the currently selected dataset. |
public int |
key(
)
Returns the key of the currently selected dataset. |
public mixed |
next(
)
Returns the next dataset and selects it or false on the last dataset. |
public bool |
offsetExists(
$key
)
Returns if the given offset exists. |
public ezcGraphChartElementAxis |
offsetGet(
$key
)
Returns the element with the given offset. |
public void |
offsetSet(
$key
, $value
)
Set the element with the given offset. |
public void |
offsetUnset(
$key
)
Unset the element with the given offset. |
public ezcGraphChartElementAxis |
rewind(
)
Selects the very first dataset and returns it. |
public bool |
valid(
)
Returns if the current dataset is valid. |
Returns the number of datasets in the row.
This method is part of the Countable interface to allow the usage of PHP's count() function to check how many datasets exist.
Method | Description |
---|---|
Countable::count |
Returns the currently selected dataset.
This method is part of the Iterator interface to allow access to the datasets of this row by iterating over it like an array (e.g. using foreach).
Method | Description |
---|---|
Iterator::current |
Returns the key of the currently selected dataset.
This method is part of the Iterator interface to allow access to the datasets of this row by iterating over it like an array (e.g. using foreach).
Method | Description |
---|---|
Iterator::key |
Returns the next dataset and selects it or false on the last dataset.
This method is part of the Iterator interface to allow access to the datasets of this row by iterating over it like an array (e.g. using foreach).
Method | Description |
---|---|
Iterator::next |
Returns if the given offset exists.
This method is part of the ArrayAccess interface to allow access to the data of this object as if it was an array.
Name | Type | Description |
---|---|---|
$key |
string | Identifier of dataset. |
Method | Description |
---|---|
ArrayAccess::offsetExists |
Returns the element with the given offset.
This method is part of the ArrayAccess interface to allow access to the data of this object as if it was an array.
Name | Type | Description |
---|---|---|
$key |
string | Identifier of dataset. |
Type | Description |
---|---|
ezcBasePropertyNotFoundException |
If no dataset with identifier exists |
Method | Description |
---|---|
ArrayAccess::offsetGet |
Set the element with the given offset.
This method is part of the ArrayAccess interface to allow access to the data of this object as if it was an array.
Name | Type | Description |
---|---|---|
$key |
string | |
$value |
ezcGraphChartElementAxis |
Type | Description |
---|---|
ezcBaseValueException |
If supplied value is not an ezcGraphChartElementAxis |
Method | Description |
---|---|
ArrayAccess::offsetSet |
Unset the element with the given offset.
This method is part of the ArrayAccess interface to allow access to the data of this object as if it was an array.
Name | Type | Description |
---|---|---|
$key |
string |
Method | Description |
---|---|
ArrayAccess::offsetUnset |
Selects the very first dataset and returns it.
This method is part of the Iterator interface to allow access to the datasets of this row by iterating over it like an array (e.g. using foreach).
Method | Description |
---|---|
Iterator::rewind |
Returns if the current dataset is valid.
This method is part of the Iterator interface to allow access to the datasets of this row by iterating over it like an array (e.g. using foreach).
Method | Description |
---|---|
Iterator::valid |