class Import

Methods

get_assoc_csv_array(array $csv_array)

Returns an assoc array with header row values as data row index.

array
get_table_formats()

Returns all available export formats

remove_first_row(array $csv_array)

Removes the first row of an array and returns it.

array
table(mixed $fileOrData, string $format, array $options = array())

No description

Details

at line 80
get_assoc_csv_array(array $csv_array)

Returns an assoc array with header row values as data row index.

The returned array does not contain the header row.

Parameters

array $csv_array

at line 57
array get_table_formats()

Returns all available export formats

Return Value

array

Array with the format identifier (e.g. csv) and the full name

at line 69
remove_first_row(array $csv_array)

Removes the first row of an array and returns it.

Parameters

array $csv_array

at line 36
array table(mixed $fileOrData, string $format, array $options = array())

No description

Parameters

mixed $fileOrData

either an array with DATA [deprecated] OR only the FILE [using fgetcsv] (incl. headers in first line)

string $format

ID of the file format (e.g. csv) - get all available formats with get_table_formats()

array $options

Optional parameters

Return Value

array

Table as array, first row is always the header row