class Paginator extends AbstractPaginator implements Arrayable, ArrayAccess, Countable, IteratorAggregate, JsonSerializable, Jsonable, Paginator (View source)
string | getUrlRange( int $start, int $end) Create a range of pagination URLs. | from AbstractPaginator |
string | url( int $page) Get a URL for a given page number. | from AbstractPaginator |
string|null | previousPageUrl() Get the URL for the previous page. | from AbstractPaginator |
$this|string|null | fragment( string|null $fragment = null) Get / set the URL fragment to be appended to URLs. | from AbstractPaginator |
$this | appends( array|string $key, string|null $value = null) Add a set of query string values to the paginator. | from AbstractPaginator |
$this | addQuery( string $key, string $value) Add a query string value to the paginator. | from AbstractPaginator |
array | items() Get the slice of items being paginated. | from AbstractPaginator |
int | firstItem() Get the number of the first item in the slice. | from AbstractPaginator |
int | lastItem() Get the number of the last item in the slice. | from AbstractPaginator |
int | perPage() Get the number of items shown per page. | from AbstractPaginator |
int | currentPage() Get the current page. | from AbstractPaginator |
bool | hasPages() Determine if there are enough items to split into multiple pages. | from AbstractPaginator |
static string | resolveCurrentPath( string $default = '/') Resolve the current request path or return the default value. | from AbstractPaginator |
static void | currentPathResolver( Closure $resolver) Set the current request path resolver callback. | from AbstractPaginator |
static int | resolveCurrentPage( string $pageName = 'page', int $default = 1) Resolve the current page or return the default value. | from AbstractPaginator |
static void | currentPageResolver( Closure $resolver) Set the current page resolver callback. | from AbstractPaginator |
static void | presenter( Closure $resolver) Set the default Presenter resolver. | from AbstractPaginator |
string | getPageName() Get the query string variable used to store the page. | from AbstractPaginator |
$this | setPageName( string $name) Set the query string variable used to store the page. | from AbstractPaginator |
$this | setPath( string $path) Set the base path to assign to all URLs. | from AbstractPaginator |
ArrayIterator | getIterator() Get an iterator for the items. | from AbstractPaginator |
bool | isEmpty() Determine if the list of items is empty or not. | from AbstractPaginator |
int | count() Get the number of items for the current page. | from AbstractPaginator |
Collection | getCollection() Get the paginator's underlying collection. | from AbstractPaginator |
$this | setCollection( Collection $collection) Set the paginator's underlying collection. | from AbstractPaginator |
bool | offsetExists( mixed $key) Determine if the given item exists. | from AbstractPaginator |
mixed | offsetGet( mixed $key) Get the item at the given offset. | from AbstractPaginator |
void | offsetSet( mixed $key, mixed $value) Set the item at the given offset. | from AbstractPaginator |
void | offsetUnset( mixed $key) Unset the item at the given key. | from AbstractPaginator |
string | toHtml() Render the contents of the paginator to HTML. | from AbstractPaginator |
mixed | __call( string $method, array $parameters) Make dynamic calls into the collection. | from AbstractPaginator |
string | __toString() Render the contents of the paginator when casting to string. | from AbstractPaginator |
void | __construct( mixed $items, int $perPage, int|null $currentPage = null, array $options = array()) Create a new paginator instance. | |
string|null | nextPageUrl() Get the URL for the next page. | |
bool | hasMorePages() Determine if there are more items in the data source. | |
string | links( Presenter $presenter = null) Render the paginator using the given presenter. | |
string | render( Presenter $presenter = null) Render the paginator using the given presenter. | |
array | toArray() Get the instance as an array. | |
array | jsonSerialize() Convert the object into something JSON serializable. | |
string | toJson( int $options) Convert the object to its JSON representation. |
Create a range of pagination URLs.
Get a URL for a given page number.
Get the URL for the previous page.
Get / set the URL fragment to be appended to URLs.
Add a set of query string values to the paginator.
Add a query string value to the paginator.
Get the slice of items being paginated.
Get the number of the first item in the slice.
Get the number of the last item in the slice.
Get the number of items shown per page.
Get the current page.
Determine if there are enough items to split into multiple pages.
Resolve the current request path or return the default value.
Set the current request path resolver callback.
Resolve the current page or return the default value.
Set the current page resolver callback.
Set the default Presenter resolver.
Get the query string variable used to store the page.
Set the query string variable used to store the page.
Set the base path to assign to all URLs.
Get an iterator for the items.
Determine if the list of items is empty or not.
Get the number of items for the current page.
Get the paginator's underlying collection.
Set the paginator's underlying collection.
Determine if the given item exists.
Get the item at the given offset.
Set the item at the given offset.
Unset the item at the given key.
Render the contents of the paginator to HTML.
Make dynamic calls into the collection.
Render the contents of the paginator when casting to string.
Create a new paginator instance.
Get the URL for the next page.
Determine if there are more items in the data source.
Render the paginator using the given presenter.
Render the paginator using the given presenter.
Get the instance as an array.
Convert the object into something JSON serializable.
Convert the object to its JSON representation.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Pagination/Paginator.html