Paging: различия между версиями

Материал из MajorDoMo инфо
(Новая страница: «Category:Встроенные функции ==Описание== '''paging'''(&$data, $onPage, &$out); -- This function used to split array into pages and cr...»)
 
 
Строка 2: Строка 2:
==Описание==
==Описание==
'''paging'''(&$data, $onPage, &$out); -- This function used to split array into pages and creates some additional output:<br>
'''paging'''(&$data, $onPage, &$out); -- This function used to split array into pages and creates some additional output:<br>
$out['PAGE'] - current page (int) \n
$out['PAGE'] - current page (int) \n
$out['CURRENT_PAGE'] - current page (int) \n
$out['CURRENT_PAGE'] - current page (int) \n
$out['NEXTPAGE'] - next page (mixed) \n
$out['NEXTPAGE'] - next page (mixed) \n
$out['PREVPAGE'] - previous page (mixed) \n
$out['PREVPAGE'] - previous page (mixed) \n
$out['TOTAL'] - array count \n
$out['TOTAL'] - array count \n
$out['TOTAL_PAGES'] - pages created \n
$out['TOTAL_PAGES'] - pages created \n
$out['ON_PAGE'] - items per page
$out['ON_PAGE'] - items per page
access public
access public
@param mixed $data  Array to split on pages
@param mixed $data  Array to split on pages
@param int  $onPage Items per page
@param int  $onPage Items per page
@param mixed $out    Output hash
@param mixed $out    Output hash
@return void
@return void



Текущая версия от 13:05, 11 декабря 2019

Описание

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

Примеры запросов

Альтернативные названия функции (сленг)

Просто для проверки появления разделов