Paginator
interface Paginator
Methods
Get the URL for a given page.
Add a set of query string values to the paginator.
Get / set the URL fragment to be appended to URLs.
Add all current query string values to the paginator.
The URL for the next page, or null.
Get the URL for the previous page, or null.
Get all of the items being paginated.
Get the "index" of the first item being paginated.
Get the "index" of the last item being paginated.
Determine how many items are being shown per page.
Determine the current page being paginated.
Determine if there are enough items to split into multiple pages.
Determine if there are more items in the data store.
Get the base path for paginator generated URLs.
Determine if the list of items is empty or not.
Determine if the list of items is not empty.
Render the paginator using a given view.
No description
Details
at line 21
string
url(int $page)
Get the URL for a given page.
at line 28
Paginator
appends(array|string|null $key, string|null $value = null)
Add a set of query string values to the paginator.
at line 35
Paginator|string|null
fragment(string|null $fragment = null)
Get / set the URL fragment to be appended to URLs.
at line 42
Paginator
withQueryString()
Add all current query string values to the paginator.
at line 47
string|null
nextPageUrl()
The URL for the next page, or null.
at line 52
string|null
previousPageUrl()
Get the URL for the previous page, or null.
at line 59
array
items()
Get all of the items being paginated.
at line 64
int|null
firstItem()
Get the "index" of the first item being paginated.
at line 69
int|null
lastItem()
Get the "index" of the last item being paginated.
at line 74
int
perPage()
Determine how many items are being shown per page.
at line 79
int
currentPage()
Determine the current page being paginated.
at line 84
bool
hasPages()
Determine if there are enough items to split into multiple pages.
at line 89
bool
hasMorePages()
Determine if there are more items in the data store.
at line 94
string|null
path()
Get the base path for paginator generated URLs.
at line 99
bool
isEmpty()
Determine if the list of items is empty or not.
at line 104
bool
isNotEmpty()
Determine if the list of items is not empty.
at line 111
Htmlable
render(string|null $view = null, array $data = [])
Render the paginator using a given view.
at line 16
$this
through(TValue): $ixed $callback)
No description