Procedures for paginating a datasource+
Procedures for paginating a datasource
+Listing of public methods:
+pagination::get_total_pages
pagination::page_number_links
pagination::paginate_query
-Method Detail
-* indicates required
Public Methods:+ +
Method Detail
++* indicates required
+Public Methods: +
+
-pagination::get_total_pages
by Michael Pih +pagination::get_total_pages
by Michael Pih Gets the number of pages returned by a query PRE: requires {$sql}
- -Parameters:
+Parameters: -
db
*A database handle +
+
-pagination::page_number_links
by Michael Pih +pagination::page_number_links
by Michael Pih Generate HTML for navigating pages of a datasource
- -Parameters:
+Parameters:
-
page
* @@ -40,12 +48,13 @@+
+
-pagination::paginate_query
by Michael Pih +pagination::paginate_query
by Michael Pih Paginates a query
- -Parameters:
+Parameters:
-
sql
* @@ -58,23 +67,26 @@-Private Methods:
-+
++Private Methods:
+
+
pagination::get_rows_per_page - Returns the number of rows per page+
++
-pagination::ns_set_to_url_vars
by Michael Pih +pagination::ns_set_to_url_vars
by Michael Pih Converts an ns_set into a list of url variables
- -Parameters:
+Parameters: -
set_id
*The set id +
* indicates required
-