class Cell implements JsonSerializable (View source)

DataCell Object

Holds the information for a data point

Methods

__construct( string $v = null, string $f = '', array|string $p = array())

Defines a DataCell for a DataTable

mixed
getValue()

Returns the value.

string
getFormat()

Returns the string format of the value.

array
getOptions()

Returns the cell customization options.

array
jsonSerialize()

Custom serialization of the DataCell

Details

at line 61
__construct( string $v = null, string $f = '', array|string $p = array())

Defines a DataCell for a DataTable

Each cell in the table holds a value. Cells optionally can take a "formatted" version of the data; this is a string version of the data, formatted for display by a visualization. A visualization can (but is not required to) use the formatted version for display, but will always use the data itself for any sorting or calculations that it makes (such as determining where on a graph to place a point). An example might be assigning the values "low" "medium", and "high" as formatted values to numeric cell values of 1, 2, and 3.

Parameters

string $v The cell value
string $f A string version of the v value
array|string $p An object that is a map of custom values applied to the cell

Exceptions

InvalidFunctionParam

at line 81
mixed getValue()

Returns the value.

Return Value

mixed

at line 91
string getFormat()

Returns the string format of the value.

Return Value

string

at line 101
array getOptions()

Returns the cell customization options.

Return Value

array

at line 111
array jsonSerialize()

Custom serialization of the DataCell

Return Value

array