Pages QB resultsets

package org.openpsa.qbpager

 Methods

__construct ($classname, $pager_id)

Parameters

$classname

$pager_id

add_constraint ($param, $op, $val)

Parameters

$param

$op

$val

add_order ($param, $sort)

Parameters

$param

$sort

begin_group ($type)

Parameters

$type

count ()

count_pages ($acl_checks)

Returns number of total pages for query

By default returns a number of pages without any ACL checks, checked count is available but is much slower.

Parameters

$acl_checks

count_unchecked ()

end_group ()

execute ()

execute_unchecked ()

get_current_page ()

Get the current page number

include_deleted ()

listen_parameter ($name, $value)

Parameters

$name

$value

set_limit ($limit)

Parameters

$limit

set_offset ($offset)

Parameters

$offset

show_pages ($acl_checks)

Displays page selector

Parameters

$acl_checks

show_pages_as_list ($acl_checks)

Displays page selector as list

Parameters

$acl_checks

show_pages_as_xml ($acl_checks, $echo)

Displays page selector as XML

Parameters

$acl_checks

$echo

show_previousnext ($acl_checks)

Displays previous/next selector

Parameters

$acl_checks

_qb_limits ($qb)

sets LIMIT and OFFSET for requested page

Parameters

$qb

_sanity_check ()

Makes sure we have some absolutely required things properly set

_check_page_vars ()

Check $_REQUEST for variables and sets internal status accordingly

_collect_parameters ()

_get_parameter_string ()

_get_query_string ($page_var, $page_number)

Fetch all $_GET variables

Parameters

$page_var

$page_number

 Properties

 

mixed $count

 

mixed $display_pages

 

mixed $results_per_page

 

mixed $string_next

 

mixed $string_previous

 

mixed $_limit

 

mixed $_midcom_qb

 

mixed $_midcom_qb_count

 

mixed $_pager_id

 

mixed $_prefix

 

mixed $_count_mode

 

mixed $_current_page

 

array $_get_params

Registered get -parameters for listening
 

boolean $_listen_params

Parameter listening enabled
 

mixed $_offset

 

string $_params_cache

Cache for parameters to be listened
 

mixed $_request_data