This DataListSource child class gets the data from a CSV (comma seperated values) file on disk.
The CSV MUST have a 'header' line before any data. The 'header' line is a CSV line that provides a name for each column of data in the file.
All lines that start with '#' or '//' are ignored as comments.
Located in Program_Root/widgets/data_list/CSVFILEDataListSource.inc (line 31)
DataListSource | --CSVFILEDataListSource
this holds the headers read
from the top of the csv file
The csv file name/path on disk
The file descriptor pointer
The length of the longest
line in the csv file (so we read the line properly)
Inherited from DataListSource
DataListSource::$_columns
DataListSource::$_data
DataListSource::$_data_index
DataListSource::$_not_found_message
DataListSource::$_query_params
The constructor.
- the path to the CSV file on on disk to use as the data source.
This function adds a row of data
if necesarry to the data array
The prequery. We use this to read the file
into memory so we can do operations on the data (search, sort, etc.)
This function does the query
and search/sort
This function returns the next row of valid data.
this is used to build a row from a csv line
- the original csv line from the file
This file trys to get the CSV header.
Inherited From DataListSource
DataListSource::DataListSource()
DataListSource::add_column()
DataListSource::do_prequery()
DataListSource::do_query()
DataListSource::get_data_index()
DataListSource::get_limit()
DataListSource::get_next_data_row()
DataListSource::get_not_found_message()
DataListSource::get_offset()
DataListSource::get_orderby()
DataListSource::get_reverseorder()
DataListSource::get_searchby()
DataListSource::get_searchby_value()
DataListSource::get_search_type()
DataListSource::get_simplesearch_modifier()
DataListSource::get_total_rows()
DataListSource::query()
DataListSource::row_filter()
DataListSource::set_limit()
DataListSource::set_not_found_message()
DataListSource::set_offset()
DataListSource::set_orderby()
DataListSource::set_reverseorder()
DataListSource::set_searchby()
DataListSource::set_searchby_value()
DataListSource::set_search_type()
DataListSource::set_simplesearch_modifier()
DataListSource::set_total_rows()
DataListSource::sort()
DataListSource::_is_column_sortable()
Documention generated on Thu, 31 Jul 2003 18:32:20 -0700 by phpDocumentor 1.2.0