
CGI::Widget::DBI::Search::AbstractDisplay - Abstract Display class inherited by default display classes

package My::SearchWidget::DisplayClass; use base qw/ CGI::Widget::DBI::Search::AbstractDisplay /; # ... implement abstract methods

This abstract class defines several methods useful to display classes, and is the base class of all default display classes (shipped with this distribution).


This is the top-level method called by CGI::Widget::DBI::Search. The default implementation calls the _set_display_defaults() and render_dataset() methods, then returns the result of the display_dataset() method.
If this method is overridden, it should return the rendering of the search widget UI from data values stored in the search widget's 'results' object variable (retrieved from the most recent call to its search() method).
Sets object variables for displaying search results. Called from display() method.
Initializes list of columns to display in dataset, based on 'sql_table_display_columns' object variable, and -pre_nondb_columns, -post_nondb_columns, and -display_columns settings.
Returns URI for sorting the dataset by the given column. If the dataset is currently sorted by $column, then the URI returned will be for reversing the sort.
Returns URI of location to previous page in search results.
Returns URI of location to next page in search results.
Returns URI of location to first page in search results.
Returns URI of location to last page in search results.
Generates and returns a URI for a given page number in the search result set. Pages start at 0, with each page containing at most -max_results_per_page.
Returns HTML rendering of a single record in the dataset, for column name $column. The $row parameter is the entire row hash for the row being displayed.
Returns a chunk of HTML which shows links to the surrounding pages in the search set. The number of pages shown is determined by the -page_range_nav_limit setting.