__construct()
__toString()
clearPageItemCache()
count()
getAbsoluteItemNumber()
getAdapter()
getCurrentItemCount()
getCurrentItems()
getCurrentPageNumber()
getDefaultItemCountPerPage()
getDefaultScrollingStyle()
getFilter()
getItem()
getItemCount()
getItemCountPerPage()
getItemsByPage()
getIterator()
getPageItemCache()
getPageRange()
getPages()
getPagesInRange()
getScrollingStylePluginManager()
getTotalItemCount()
getView()
normalizeItemNumber()
normalizePageNumber()
render()
setCache()
setCacheEnabled()
setCurrentPageNumber()
setDefaultItemCountPerPage()
setDefaultScrollingStyle()
setFilter()
setGlobalConfig()
setItemCountPerPage()
setPageRange()
setScrollingStylePluginManager()
setView()
toJson()
_calculatePageCount()
_createPages()
_getCacheId()
_getCacheInternalId()
_loadScrollingStyle()
cacheEnabled()
$adapter
$adapters
$cache
$cacheEnabled
$config
$currentItemCount
$currentItems
$currentPageNumber
$defaultItemCountPerPage
$defaultScrollingStyle
$filter
$itemCountPerPage
$pageCount
$pageRange
$pages
$scrollingStyles
$view
CACHE_TAG_PREFIX
__construct(\Zend\Paginator\Adapter\AdapterInterface | \Zend\Paginator\AdapterAggregateInterface $adapter)
count() : int
int
getAbsoluteItemNumber(int $relativeItemNumber, int $pageNumber) : int
int
Relative item number
int
Page number
int
getAdapter() : \Zend\Paginator\Adapter\AdapterInterface
getCurrentItemCount() : int
int
getCurrentItems() : \Traversable
\Traversable
getCurrentPageNumber() : int
int
getDefaultItemCountPerPage() : int
int
getDefaultScrollingStyle() : string
string
getItem(int $itemNumber, int $pageNumber) : mixed
The current page is used if there's no page specified.
int
Item number (1 to itemCountPerPage)
int
\Zend\Paginator\Exception\InvalidArgumentException |
---|
mixed
getItemCount(mixed $items) : int
mixed
Items
int
getItemCountPerPage() : int
int
getItemsByPage(int $pageNumber) : mixed
int
mixed
getIterator() : \Traversable
getPageItemCache() : array
array
getPageRange() : int
int
getPagesInRange(int $lowerBound, int $upperBound) : array
int
Lower bound of the range
int
Upper bound of the range
array
getScrollingStylePluginManager() : \Zend\Paginator\ScrollingStylePluginManager
getTotalItemCount() : int
int
getView() : \Zend\View\Renderer\RendererInterface | null
If none registered, instantiates a PhpRenderer instance.
normalizeItemNumber(int $itemNumber) : int
int
int
normalizePageNumber(int $pageNumber) : int
int
int
render(\Zend\View\Renderer\RendererInterface $view) : string
setCache(\Zend\Cache\Storage\StorageInterface $cache)
setCacheEnabled(bool $enable) : \Zend\Paginator\Paginator
setDefaultItemCountPerPage(int $count)
int
setDefaultScrollingStyle(string $scrollingStyle)
string
setGlobalConfig(array | \Traversable $config)
setItemCountPerPage(int $itemCountPerPage) : \Zend\Paginator\Paginator
setPageRange(int $pageRange) : \Zend\Paginator\Paginator
setScrollingStylePluginManager($scrollingAdapters)
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\Paginator\Paginator
toJson() : string
string
_calculatePageCount() : int
int
_getCacheId(int $page) : string
Used to store item in cache from that Paginator instance and that current page
int
string
_getCacheInternalId() : string
Used to tag that unique Paginator instance in cache
string
_loadScrollingStyle(string $scrollingStyle) : \Zend\Paginator\ScrollingStyle\ScrollingStyleInterface
string
\Zend\Paginator\Exception\InvalidArgumentException |
---|
cacheEnabled() : bool
bool
$cacheEnabled : bool
$config : array | null
$currentItemCount : int
$currentItems : \Traversable
$currentPageNumber : int
$defaultItemCountPerPage : int
$defaultScrollingStyle : string
$itemCountPerPage : int
$pageCount : int
$pageRange : int
CACHE_TAG_PREFIX