class DataCell (View source)

Properties

string $v The cell value.
string $f A string version of the v value. (Optional)
string $p An object that is a map of custom values applied to the cell. (Optional)

Methods

__construct( string $v = null, string $f = null, string $p = null)

Defines a DataCell for a DataTable

string
toJson()

Converts the DataCell object to JSON notation.

Details

at line 64
DataCell __construct( string $v = null, string $f = null, string $p = null)

Defines a DataCell for a DataTable

Each cell in the table holds a value. Cells can have a null value, or a value of the type specified by its column. 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
string $p An object that is a map of custom values applied to the cell

Return Value

DataCell

See also

DataTable

at line 87
string toJson()

Converts the DataCell object to JSON notation.

Return Value

string JSON string representation of the data cell