Documentation

Pagination
in package

Class Pagination

Table of Contents

calcPagination()  : array<string|int, mixed>
categoryPagination()  : array<string|int, mixed>
categoryPaginationSwiper()  : array<string|int, mixed>
generateBootstrap()  : array<string|int, mixed>
generateSwiper()  : array<string|int, mixed>
SearchPagination()  : array<string|int, mixed>
sellerPagination()  : array<string|int, mixed>

Methods

calcPagination()

public static calcPagination( $itemsCount[, int $itemCountPerPage = 16 ]) : array<string|int, mixed>
Parameters
$itemsCount :
$itemCountPerPage : int = 16
Return values
array<string|int, mixed>

categoryPagination()

public static categoryPagination( $categoryID,  $pageNumber[, int $itemCountPerPage = 16 ][, null $sort = null ]) : array<string|int, mixed>
Parameters
$categoryID :
$pageNumber :
$itemCountPerPage : int = 16
$sort : null = null
Return values
array<string|int, mixed>

categoryPaginationSwiper()

public static categoryPaginationSwiper( $categoryID,  $pageNumber,  $itemCountPerPage[, null $sort = null ]) : array<string|int, mixed>
Parameters
$categoryID :
$pageNumber :
$itemCountPerPage :
$sort : null = null
Return values
array<string|int, mixed>

generateBootstrap()

public static generateBootstrap( $pageCount,  $pageNumber,  $link,  $itemCountPerPage,  $itemsCount) : array<string|int, mixed>
Parameters
$pageCount :
$pageNumber :
$link :
$itemCountPerPage :
$itemsCount :
Return values
array<string|int, mixed>

generateSwiper()

public static generateSwiper( $pageCount,  $pageNumber,  $link,  $itemCountPerPage,  $itemsCount) : array<string|int, mixed>
Parameters
$pageCount :
$pageNumber :
$link :
$itemCountPerPage :
$itemsCount :
Return values
array<string|int, mixed>

SearchPagination()

public static SearchPagination( $keyword,  $pageNumber[, int $itemCountPerPage = 16 ]) : array<string|int, mixed>
Parameters
$keyword :
$pageNumber :
$itemCountPerPage : int = 16
Return values
array<string|int, mixed>

sellerPagination()

public static sellerPagination( $sellerID,  $pageNumber,  $itemCountPerPage) : array<string|int, mixed>
Parameters
$sellerID :
$pageNumber :
$itemCountPerPage :
Return values
array<string|int, mixed>

Search results