class Pagination (View source)

Properties

$current_page
$page_size
$result_offset
$number_of_pages
$result_count
$result_lower
$result_upper
$classOff
$classOn
$classCurrent
$URL
$jsFunctionCall
$queryStringPagingVariable
$additionalVars

Methods

__construct()

No description

reset()

No description

init($page_num, $num_results, $URL = '', $size = 20, $jsFunctionCall = '')

No description

getBaseURL($url = false)

No description

setAdditionalQueryStringVariables($args)

No description

recalc($num_results)

No description

getLIMIT()

No description

getCurrentURL()

No description

getCurrentPage()

No description

getRequestedPage()

No description

hasNextPage()

No description

hasPreviousPage()

No description

getTotalPages()

No description

getNextURL()

No description

getPreviousURL()

No description

getNext($linkText = false, $wrapper = 'span')

No description

getNextInt()

No description

getPrevious($linkText = false, $wrapper = 'span')

No description

getPreviousInt()

No description

getAsJSONObject()

No description

getPages($wrapper = 'span')

No description

limitResultsToPage($results = array())

No description

getJSFunctionCall($pageNum)

No description

Details

__construct()

reset()

init($page_num, $num_results, $URL = '', $size = 20, $jsFunctionCall = '')

Parameters

$page_num
$num_results
$URL
$size
$jsFunctionCall

protected getBaseURL($url = false)

Parameters

$url

setAdditionalQueryStringVariables($args)

Parameters

$args

recalc($num_results)

Parameters

$num_results

getLIMIT()

getCurrentURL()

getCurrentPage()

getRequestedPage()

hasNextPage()

hasPreviousPage()

getTotalPages()

getNextURL()

getPreviousURL()

getNext($linkText = false, $wrapper = 'span')

Parameters

$linkText
$wrapper

getNextInt()

getPrevious($linkText = false, $wrapper = 'span')

Parameters

$linkText
$wrapper

getPreviousInt()

getAsJSONObject()

getPages($wrapper = 'span')

Parameters

$wrapper

limitResultsToPage($results = array())

Parameters

$results

getJSFunctionCall($pageNum)

Parameters

$pageNum