Set a global config
Parameters: | array|Traversable – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Returns the default scrolling style.
Return type: | string |
---|
Get the default item count per page
Return type: | int |
---|
Set the default item count per page
Parameters: | int – |
---|
Sets the default scrolling style.
Parameters: | string – |
---|
Returns the scrolling style manager. If it doesn’t exist it’s created.
Return type: | ScrollingStylePluginManager |
---|
Constructor.
Parameters: | AdapterInterface|AdapterAggregateInterface – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Enables/Disables the cache for this instance
Parameters: | bool – |
---|---|
Return type: | Paginator |
Returns the number of pages.
Return type: | integer |
---|
Returns the total number of items available.
Return type: | integer |
---|
Clear the page item cache.
Parameters: | int – |
---|---|
Return type: | Paginator |
Returns the absolute item number for the specified item.
Parameters: |
|
---|---|
Return type: | integer |
Returns the number of items for the current page.
Return type: | integer |
---|
Returns the items for the current page.
Return type: | Traversable |
---|
Returns the current page number.
Return type: | integer |
---|
Sets the current page number.
Parameters: | integer – Page number |
---|---|
Return type: | Paginator $this |
Set a filter chain
Parameters: | FilterInterface – |
---|---|
Return type: | Paginator |
Returns an item from a page. The current page is used if there’s no page specified.
Parameters: |
|
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | mixed |
Returns the number of items per page.
Return type: | integer |
---|
Sets the number of items per page.
Parameters: | integer – |
---|---|
Return type: | Paginator $this |
Returns the number of items in a collection.
Parameters: | mixed – Items |
---|---|
Return type: | integer |
Returns the items for a given page.
Parameters: | integer – |
---|---|
Return type: | mixed |
Returns a foreach-compatible iterator.
Return type: | Traversable |
---|
Returns the page range (see property declaration above).
Return type: | integer |
---|
Sets the page range (see property declaration above).
Parameters: | integer – |
---|---|
Return type: | Paginator $this |
Returns the page collection.
Parameters: | string – Scrolling style |
---|---|
Return type: | array |
Returns a subset of pages within a given range.
Parameters: |
|
---|---|
Return type: | array |
Retrieves the view instance.
If none registered, instantiates a PhpRenderer instance.
Return type: | ZendViewRendererRendererInterface|null |
---|
Sets the view object.
Parameters: | ZendViewRendererRendererInterface – |
---|---|
Return type: | Paginator |
Brings the item number in range of the page.
Parameters: | integer – |
---|---|
Return type: | integer |
Brings the page number in range of the paginator.
Parameters: | integer – |
---|---|
Return type: | integer |
Renders the paginator.
Parameters: | ZendViewRendererRendererInterface – |
---|---|
Return type: | string |
Tells if there is an active cache object and if the cache has not been disabled
Return type: | bool |
---|
Makes an Id for the cache Depends on the adapter object and the page number
Parameters: | int – |
---|---|
Return type: | string |
Get the internal cache id Depends on the adapter and the item count per page
Used to tag that unique Paginator instance in cache
Return type: | string |
---|
Calculates the page count.
Return type: | integer |
---|