This DataListSource child class gets the data from an external array
The array is a 2D array and each sub-array is a set of elements for each row in the list
Located in /widgets/data_list/ArrayDataListSource.inc (line 29)
DataListSource | --ArrayDataListSource
Class | Description |
---|---|
CSVFILEDataListSource | This DataListSource child class gets the data from a CSV (comma seperated values) file on disk. |
Sorting in reverse order, to speed up things
Secondary sorting column, if any
internal class variable to tell us which column to order by.
Inherited from DataListSource
DataListSource::$_columns
DataListSource::$_data
DataListSource::$_data_index
DataListSource::$_debug
DataListSource::$_query_params
The constructor.
This method is used for comparing 2 string values
This method is used for comparing 2 numerical values
This is a method that should be defined by the child class to do any pre-query type of things.
Such as building a sql query string for a DB, or checking to make sure the file on disk exists if the source is a file on disk.
This function does the query
and search/sort
This function returns the data_index value and increments it
This function returns the next row of valid data.
This is used to perform pre-query filtering Gives us a chance to run the next row through a filter before any processing has been done
This method sorts our data array by the requested column order by. This could be expensive for HUGE arrays.
This function gets the column name from the sortname
This is used to do the default search capability in the DataListSource parent class.
This is used so we can filter our results to what the user searched for.
This is called to allow rebuilding the data array to remove elements that have to be filtered
This is done on pre-processing phase and used for simple and advanced searches
This method actually calls the usort methods
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_offset()
DataListSource::get_orderby()
DataListSource::get_reverseorder()
DataListSource::get_searchby()
DataListSource::get_searchby_value()
DataListSource::get_search_type()
DataListSource::get_secondary_orderby()
DataListSource::get_simplesearch_modifier()
DataListSource::get_total_rows()
DataListSource::query()
DataListSource::row_filter()
DataListSource::set_debug()
DataListSource::set_limit()
DataListSource::set_offset()
DataListSource::set_orderby()
DataListSource::set_reverseorder()
DataListSource::set_searchby()
DataListSource::set_searchby_value()
DataListSource::set_search_type()
DataListSource::set_secondary_orderby()
DataListSource::set_simplesearch_modifier()
DataListSource::set_total_rows()
DataListSource::sort()
DataListSource::_is_column_sortable()
Documentation generated on Fri, 28 Jan 2011 08:52:49 -0500 by phpDocumentor 1.4.3