Adi Fairbank > CGI-Widget-DBI-Search-0.23 > CGI::Widget::DBI::Search::Display::Table

Download:
CGI-Widget-DBI-Search-0.23.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Source  

NAME ^

CGI::Widget::DBI::Search::Display::Table - HTML table display class for Search widget

SYNOPSIS ^

  This class is not intended to be used directly

DESCRIPTION ^

This class displays search results retrieved in the search widget in table format, much like the output from a typical relational database client. The dataset can be sorted via column header anchor tags, and paging links appear on all corners of the table display, as well as a list of navigable page ranges at bottom center.

METHODS ^

render_dataset()

Builds HTML table rows for current page in the dataset, including a header row with the visible columns with sortable columns as clickable anchor tags.

Builds data in object variables:

  dataset_rows_html
  header_columns
  header_html
render_column_headers()

Called by render_dataset() to render just the column headers (along with sort links) for the most recent search.

display_dataset()

Returns HTML rendering of current page in search results, along with navigation links.

display_pager_links($showtotal, $showpages)

Returns an HTML table containing navigation links for first, previous, next, and last pages of result set, and optionally, number and range of results being displayed, and/or navigable list of pages in the dataset.

This method is called from display() and should be treated as a protected method.

parameters: $showtotal boolean to toggle whether to show total number of results along with range on current page $showpages boolean to toggle whether to show page range links for easier navigation in large datasets (has no effect unless -show_total_numresults setting is set)