Dataset for numeric data.
Uses user defined functions for numeric data creation
Source for this file: /Graph/src/datasets/numeric.php
ezcGraphDataSet | --ezcGraphNumericDataSet
Version: | //autogentag// |
callback | read/write |
$callback
Callback function which represents the mathmatical function to show |
float | read/write |
$end
End value for x axis values of function |
int | read/write |
$resolution
Steps used to draw line in graph |
float | read/write |
$start
Start value for x axis values of function |
protected int |
$position
= 0
Position of the data iterator. Depends on the configured resolution. |
protected array(string=>mixed) |
$properties
Container to hold the properties |
From ezcGraphDataSet | |
---|---|
protected |
ezcGraphDataSet::$current
|
protected |
ezcGraphDataSet::$data
|
protected |
ezcGraphDataSet::$keys
|
protected |
ezcGraphDataSet::$pallet
|
public int |
count(
)
Returns the number of elements in this dataset |
public string |
current(
)
Returns the currently selected datapoint. |
protected float |
getKey(
$position
)
Get the x coordinate for the current position |
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
)
Throws a ezcBasePropertyPermissionException because single datapoints cannot be set in average datasets. |
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. |
public mixed |
__set(
$propertyName
, $propertyValue
)
Options write access |
From ezcGraphDataSet | |
---|---|
public string |
ezcGraphDataSet::current()
Returns the currently selected datapoint. |
public string |
ezcGraphDataSet::key()
Returns the key of the currently selected datapoint. |
public float |
ezcGraphDataSet::next()
Returns the next datapoint and selects it or false on the last datapoint. |
public bool |
ezcGraphDataSet::offsetExists()
Returns true if the given datapoint exists Allows isset() using ArrayAccess. |
public float |
ezcGraphDataSet::offsetGet()
Returns the value for the given datapoint Get an datapoint value by ArrayAccess. |
public void |
ezcGraphDataSet::offsetSet()
Sets the value for a datapoint. |
public void |
ezcGraphDataSet::offsetUnset()
Unset an option. |
public float |
ezcGraphDataSet::rewind()
Selects the very first datapoint and returns it. |
public bool |
ezcGraphDataSet::valid()
Returns if the current datapoint is valid. |
public mixed |
ezcGraphDataSet::__get()
Property get access. |
Returns the number of elements in this dataset
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).
Method | Description |
---|---|
ezcGraphDataSet::current() |
Returns the currently selected datapoint. |
Get the x coordinate for the current position
Name | Type | Description |
---|---|---|
$position |
int | Position |
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).
Method | Description |
---|---|
ezcGraphDataSet::key() |
Returns the key of the currently selected datapoint. |
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).
Method | Description |
---|---|
ezcGraphDataSet::next() |
Returns the next datapoint and selects it or false on the last datapoint. |
Returns true if the given datapoint exists Allows isset() using ArrayAccess.
Name | Type | Description |
---|---|---|
$key |
string | The key of the datapoint to get. |
Method | Description |
---|---|
ezcGraphDataSet::offsetExists() |
Returns true if the given datapoint exists Allows isset() using ArrayAccess. |
Returns the value for the given datapoint Get an datapoint value by ArrayAccess.
Name | Type | Description |
---|---|---|
$key |
string | The key of the datapoint to get. |
Method | Description |
---|---|
ezcGraphDataSet::offsetGet() |
Returns the value for the given datapoint Get an datapoint value by ArrayAccess. |
Throws a ezcBasePropertyPermissionException because single datapoints cannot be set in average datasets.
Name | Type | Description |
---|---|---|
$key |
string | The kex of a datapoint to set. |
$value |
float | The value for the datapoint. |
Type | Description |
---|---|
ezcBasePropertyPermissionException |
Always, because access is readonly. |
Method | Description |
---|---|
ezcGraphDataSet::offsetSet() |
Sets the value for a datapoint. |
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).
Method | Description |
---|---|
ezcGraphDataSet::rewind() |
Selects the very first datapoint and returns it. |
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).
Method | Description |
---|---|
ezcGraphDataSet::valid() |
Returns if the current datapoint is valid. |
Property get access.
Simply returns a given option.
Name | Type | Description |
---|---|---|
$propertyName |
string | The name of the option to get. |
Type | Description |
---|---|
ezcBasePropertyNotFoundException |
If a the value for the property options is not an instance of |
Method | Description |
---|---|
ezcGraphDataSet::__get() |
Property get access. |
Options write access
Name | Type | Description |
---|---|---|
$propertyName |
mixed | Option name |
$propertyValue |
mixed | Option value; |
Type | Description |
---|---|
ezcBaseValueException |
If value is out of range |
ezcBasePropertyNotFoundException |
If Option could not be found |