CursorPaginator
interface CursorPaginator
Methods
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.
Get the URL for the previous page, or null.
The URL for the next page, or null.
Get all of the items being paginated.
Get the "cursor" of the previous set of items.
Get the "cursor" of the next set of items.
Determine how many items are being shown per page.
Determine if there are enough items to split into multiple pages.
Determine if there are more items in the data source.
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 22
string
url(Cursor|null $cursor)
Get the URL for a given cursor.
at line 29
CursorPaginator
appends(array|string|null $key, string|null $value = null)
Add a set of query string values to the paginator.
at line 36
CursorPaginator|string|null
fragment(string|null $fragment = null)
Get / set the URL fragment to be appended to URLs.
at line 43
CursorPaginator
withQueryString()
Add all current query string values to the paginator.
at line 48
string|null
previousPageUrl()
Get the URL for the previous page, or null.
at line 53
string|null
nextPageUrl()
The URL for the next page, or null.
at line 60
array
items()
Get all of the items being paginated.
at line 65
Cursor|null
previousCursor()
Get the "cursor" of the previous set of items.
at line 70
Cursor|null
nextCursor()
Get the "cursor" of the next set of items.
at line 75
int
perPage()
Determine how many items are being shown per page.
at line 80
Cursor|null
cursor()
Get the current cursor being paginated.
at line 85
bool
hasPages()
Determine if there are enough items to split into multiple pages.
at line 90
bool
hasMorePages()
Determine if there are more items in the data source.
at line 95
string|null
path()
Get the base path for paginator generated URLs.
at line 100
bool
isEmpty()
Determine if the list of items is empty or not.
at line 105
bool
isNotEmpty()
Determine if the list of items is not empty.
at line 112
Htmlable
render(string|null $view = null, array $data = [])
Render the paginator using a given view.
at line 17
$this
through(TValue): $ixed $callback)
No description