Functions:pagination

From Whirlwind eCommerce Wiki
Revision as of 20:39, 3 December 2008 by Root (Talk | contribs) (New page: == Description == pagination() returns data and content to easily 'paginate' large data lists == Syntax == $pagination = eV::pagination($totalCount,$itemsPerPage,$pageNo,$link); == Param...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

pagination() returns data and content to easily 'paginate' large data lists

Syntax

$pagination = eV::pagination($totalCount,$itemsPerPage,$pageNo,$link);

Paramaters

  • $totalCount
total number of items in the entire list to be paginated
  • $itemsPerPage
number of items to display on each pagination page
  • $pageNo
the current page number
  • $link
the base url to be used for each pagination link. This will automatically be appended with "&pageNo=#" for the appropriate page number for the link selected.

Return Values

Returns an associative array containing content output and list item indexes to be used to manage pagination. Below is the returned array:

Array
(
    [links] => String
    [startIndex] => INT
    [endIndex] => INT
)

Examples

example 1

example 1 goes here

example 2

example 2 goes here

See Also