This class is a data source driver for a CSV File. It will also support any other delimiter.
This driver accepts the following options:
Table 55-1. Options for this driver
Option | Type | Description | Default Value |
---|---|---|---|
delimiter | string | Field delimiter | ',' |
fields | array | Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...) | array() |
generate_columns | bool | Generate Structures_DataGrid_Column objects with labels. See the 'labels' option. | false |
header | bool | Whether the CSV file (or string) contains a header row | false |
labels | array | Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...) | array() |