Paging
Материал из MajorDoMo инфо
Описание
paging(&$data, $onPage, &$out); -- This function used to split array into pages and creates some additional output:
$out['PAGE'] - current page (int) \n
$out['CURRENT_PAGE'] - current page (int) \n
$out['NEXTPAGE'] - next page (mixed) \n
$out['PREVPAGE'] - previous page (mixed) \n
$out['TOTAL'] - array count \n
$out['TOTAL_PAGES'] - pages created \n
$out['ON_PAGE'] - items per page
access public
@param mixed $data Array to split on pages
@param int $onPage Items per page
@param mixed $out Output hash
@return void