This is the class expPaginator Exponent Pagination Subsystem
The expPaginator class is used to retrieve objects from the database and paginate them and optionally group the by category. It automagically handles the calls to other pages and has built-in sorting using the defined column headers.
Usage Example:
$page = new expPaginator(array( 'model'=>'faq', 'where'=>1, 'limit'=>25, 'order'=>'rank', 'controller'=>$this->baseclassname, 'action'=>$this->params['action'], 'columns'=>array('In FAQ'=>'include_in_faq', 'Submitted'=>'created_at', 'Submitted By'=>'submitter_name'), ));
package |
Subsystems |
---|---|
subpackage |
Subsystems |
__construct(array $params = array())
This is the main entry point for using the expPaginator. See example above.
array
Use this to set any of the class variables. Ones not passed will be set to a default.
asc( $a, $b) : integer
node |
Subsystems:expPaginator |
---|
integer
cleanParams( $params)
desc( $a, $b) : integer
node |
Subsystems:expPaginator |
---|
integer
makeHeaderCols( $params)
makeSortDropdown( $params)
runCallback()
model :
search_string :
sql :
count_sql :
where :
controller :
action :
order :
order_direction :
firstpage :
lastpage :
previous_page :
next_page :
previous_shift :
next_shift :
pagelink :
header_columns :
default :
view :
uncat :
page :
limit :
start :
last :
pages_to_show :
total_records :
total_pages :
page_offset :
categorize :
pages :
records :
cats :
sort_dropdown :