UrlWindow
class UrlWindow
Properties
| protected LengthAwarePaginator | $paginator | The paginator implementation. |
Methods
Get the window of URLs to be shown.
Get the slider of URLs there are not enough pages to slide.
Create a URL slider links.
Get the slider of URLs when too close to the beginning of the window.
Get the slider of URLs when too close to the ending of the window.
Get the slider of URLs when a full slider can be made.
Get the page range for the current page window.
Get the starting URLs of a pagination slider.
Get the ending URLs of a pagination slider.
Determine if the underlying paginator being presented has pages to show.
Get the current page from the paginator.
Get the last page from the paginator.
Details
at line 19
__construct(LengthAwarePaginator $paginator)
Create a new URL window instance.
at line 29
static array
make(LengthAwarePaginator $paginator)
Create a new URL window instance.
at line 39
array
get()
Get the window of URLs to be shown.
at line 62
protected array
getSmallSlider()
Get the slider of URLs there are not enough pages to slide.
at line 76
protected array
getUrlSlider(int $onEachSide)
Create a URL slider links.
at line 109
protected array
getSliderTooCloseToBeginning(int $window, int $onEachSide)
Get the slider of URLs when too close to the beginning of the window.
at line 123
protected array
getSliderTooCloseToEnding(int $window, int $onEachSide)
Get the slider of URLs when too close to the ending of the window.
at line 142
protected array
getFullSlider(int $onEachSide)
Get the slider of URLs when a full slider can be made.
at line 156
array
getAdjacentUrlRange(int $onEachSide)
Get the page range for the current page window.
at line 169
array
getStart()
Get the starting URLs of a pagination slider.
at line 179
array
getFinish()
Get the ending URLs of a pagination slider.
at line 190
bool
hasPages()
Determine if the underlying paginator being presented has pages to show.
at line 198
protected int
currentPage()
Get the current page from the paginator.
at line 206
protected int
lastPage()
Get the last page from the paginator.