This class is the Default phpHtmlLib GUI interface child of the DataList class. This child simply does the job of rendering the html/layout for a DataList.
You can use this as an example of how to build your own look/feel for your DataList.
Located in /widgets/data_list/DefaultGUIDataList.inc (line 32)
Container | --BaseWidget | --DataList | --DefaultGUIDatalist
Do we want to alternate the row colors? This helps to see each row easier.
This holds the action column settings if any.
holds the cntr for the action
checkbox name
The overall alignment
DEFAULT: "center"
This variable tells us whether to display
select all checkbox
If true, allows search block to be collapsed/expanded.
NOTE: This doesn't stay collapsed between pages, when using GET as the form method.
This variable holds the array of default
selected items. This is populated inside the user_setup() function to pre-populate the list of selected items for a the checkbox action column.
do we show the title string?
This array holds the list of hidden checkbox[] items.
this flag tells us to save the checked items between pages By default this is off.
Flag to let us know that search
is enabled. Default this to TRUE but you can still disable it
this array holds some strings for the search functionality. This enables some level of localization for other languages.
Initial state of the search tree
Do we show action bar row?
Do we show action bar row when the data list is empty?
Flag to enable simple search modifyer.
IF enabled it will add a select that adds the "beings with", "contains" options for a simple search.
this array keeps track of the list of rendered visible checkbox[] items. So we can not render the hidden version of it.
for a reference so the row_filter affects the paging information.
Inherited from DataList
DataList::$_advanced_search_flag
DataList::$_clean_string
DataList::$_columns
DataList::$_datasource
DataList::$_debug
DataList::$_default_orderby
DataList::$_default_reverseorder
DataList::$_default_rows_per_page
DataList::$_form_attributes
DataList::$_form_render_flag
DataList::$_global_prefix
DataList::$_image_path
DataList::$_max_rows
DataList::$_not_found_message
DataList::$_num_columns
DataList::$_num_pages
DataList::$_save_vars
DataList::$_search_table
DataList::$_show_all_rows
DataList::$_show_results_flag
DataList::$_vars
Inherited from BaseWidget
BaseWidget::$title
BaseWidget::$width
BaseWidget::$_image_prefix
this is the method that builds the contents for the middle actionbar td cell.
NOTE this function is meant to be overriden by the child class.
This function builds an action button that will modify the form action, to post to a different script to handle the data
This function builds an action select box that will be passed when a form action button is executed.
This function adds an action column. This adds a column of either checkboxes or radio buttons.
Sets the flag for rendering the select all checkbox
This function builds the object/text
to be used for a column header. It can either be an href because its sortable, or it can just be text, because its not sortable.
Override the parent's method so we can wrap everything in a div to hold it all together when we change the alignment
This builds the table that holds the search capability.
this is the method that builds the contents for the middle actionbar td cell.
NOTE this function is meant to be overriden by the child class.
This function returns the array of default checked items to be marked as checked in the checkbox action column
Check to see if we should show the title
This function builds the base layout
of what the overall DataList will look like
This function is provided to give the child class the ability to precheck/select a particular column.
This function is provided to give the child class the ability to enable/disable a particular checkbox.
set the flag to tell the object to save the checked items
NOTE: this only works if we are in POST mode. GET can easily fail because of too many items saved on the query string.
This allows the caller to turn on/off the rendering of the bottom action bar row
this function is used to set the overall alignment of the widget
This method is used to set the flag that allows us to do alternating row colors or not
This function is used to set the default list
of selected checkbox items. This is used so the user can pre-populate the list of checked items in the checkbox action column
This function sets a prefix for all variables that are used in the item list table on a page. This allows you to have multiple itemlists on a single html page.
This sets the flag to turn on/off the ability to collapse the search box.
This function is used to allow the child class to override the values of text that is used for the search area
This sets the flag to turn on/off the the action bar when the datalist is empty.
This function enables/disables the displaying of the title string
This function gets the current value of the show actionbar flag setting.
This function ensures that the data we place in a column is aligned according to what the user wants.
This function renders the action bar at the bottom of the data list.
This function builds a TD with the appropriate action arrow.
This function builds the user's data cell
This builds an action column cell
This function builds the table that holds the Advanced search form fields
This function builds the search title table
This function builds the simple search TD
This function builds the JS needed for the checkbox action column
This function tests to see if the child wants to render an action column
This method checks to see if a particular row has been checked in the action column
This function returns any Javascript required for this widget
This tests the object flag to
see if the child class wants to automatically save the checked items
This function builds the JS needed for collapsable search
Inherited From DataList
DataList::DataList()
DataList::add_header_item()
DataList::advanced_search_disable()
DataList::advanced_search_enable()
DataList::build_base_url()
DataList::build_column_item()
DataList::build_column_url()
DataList::build_gui()
DataList::build_orderby_querystring()
DataList::build_reverseorder_querystring()
DataList::build_searchfield_querystring()
DataList::build_searchvalue_querystring()
DataList::build_state_vars_query_string()
DataList::build_tool_link()
DataList::child_add_row_cell()
DataList::child_build_column_header()
DataList::child_build_search_table()
DataList::child_get_gui()
DataList::data_prefetch()
DataList::do_action()
DataList::expandrows()
DataList::filter_column_string()
DataList::get_cleanstring()
DataList::get_current_page()
DataList::get_data_source()
DataList::get_default_num_rows()
DataList::get_form_action()
DataList::get_form_method()
DataList::get_form_name()
DataList::get_form_render()
DataList::get_form_target()
DataList::get_global_prefix()
DataList::get_image_path()
DataList::get_last_page()
DataList::get_max_rows()
DataList::get_not_found_message()
DataList::get_num_pages()
DataList::get_page_info()
DataList::get_showall()
DataList::get_simple_search_modifier()
DataList::gui_init()
DataList::is_advanced_search_enabled()
DataList::is_search_enabled()
DataList::numrows()
DataList::offset()
DataList::orderby()
DataList::pre_query_sanity_check()
DataList::render()
DataList::reverseorder()
DataList::search_disable()
DataList::search_enable()
DataList::search_field()
DataList::search_type()
DataList::search_value()
DataList::search_value_filter()
DataList::setup_columns()
DataList::set_cleanstring()
DataList::set_data_source()
DataList::set_debug()
DataList::set_default_num_rows()
DataList::set_expandrows()
DataList::set_form_action()
DataList::set_form_method()
DataList::set_form_name()
DataList::set_form_render()
DataList::set_form_target()
DataList::set_global_prefix()
DataList::set_image_path()
DataList::set_max_rows()
DataList::set_not_found_message()
DataList::set_numrows()
DataList::set_offset()
DataList::set_orderby()
DataList::set_reverseorder()
DataList::set_save_vars()
DataList::set_search_type()
DataList::set_showall()
DataList::set_show_results()
DataList::set_simple_search_modifier()
DataList::simple_search_modifier_value()
DataList::user_setup()
DataList::_build_default_vars()
DataList::_build_save_vars()
DataList::_build_simple_search_modifier()
DataList::_build_tool_url()
DataList::_check_datasource()
DataList::_clean_string()
DataList::_filter_column_string()
DataList::_get()
DataList::_get_searchable_fields()
DataList::_javascript()
DataList::_save_mozilla_nav_link()
DataList::_set()
DataList::_show_results()
Inherited From BaseWidget
BaseWidget::get_align()
BaseWidget::get_css()
BaseWidget::get_javascript()
BaseWidget::get_title()
BaseWidget::get_width()
BaseWidget::set_align()
BaseWidget::set_image_path_prefix()
BaseWidget::set_title()
BaseWidget::set_width()
Inherited From Container
Container::Container()
Container::add()
Container::add_reference()
Container::count_content()
Container::get_element()
Container::get_indent_flag()
Container::push()
Container::push_reference()
Container::render()
Container::reset_content()
Container::set_collapse()
Container::set_indent_flag()
Documentation generated on Fri, 28 Jan 2011 08:52:51 -0500 by phpDocumentor 1.4.3