Configuration options:
callback_name - name of the class to be used for populating the rows and columns.
The callback class must support the following methods:
class table_callback {
array get_headers () ;
array get_rows() ; //Returns an array containing the values for each row.
boolean set_rows($values);
void set_type($midcom_helper_datamanager2_type_table ) ;
Array with header names in the same order as the row columns.
Methods
_on_initialize ()
Initialize the class, if necessary, create a callback instance, otherwise
validate that an option array is present.
convert_from_csv ($source)
CSV conversion works from the storage representation, converting the arrays
into simple text lists.
convert_from_storage ($source)
Converts storage format to live format, all invalid keys are dropped, and basic validation
is done to ensure constraints like allow_multiple are met.
convert_to_csv ()
CSV conversion works from the storage representation, converting the arrays
into simple text lists.
convert_to_storage ()
Returns
Array
The storage information.
Properties
object $_callback
In case the options are returned by a callback, this member holds the callback
instance.
boolean $csv_export_key
Set this to true if you want the keys to be exported to the csv dump instead of the
values.
Note, that this does not affect import, which is only available with keys, not
values.
NB:
This option is not supported at the moment.
mixed $rows
A list of rows for the table
string $callback
The name of or reference to the callback object to be used.