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 beginning of window.
Get the slider of URLs when too close to ending of 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 22
void
__construct(LengthAwarePaginator $paginator)
Create a new URL window instance.
at line 34
static array
make(LengthAwarePaginator $paginator, int $onEachSide = 3)
Create a new URL window instance.
at line 45
array
get(int $onEachSide = 3)
Get the window of URLs to be shown.
at line 59
protected array
getSmallSlider()
Get the slider of URLs there are not enough pages to slide.
at line 74
protected array
getUrlSlider(int $onEachSide)
Create a URL slider links.
at line 108
protected array
getSliderTooCloseToBeginning(int $window)
Get the slider of URLs when too close to beginning of window.
at line 123
protected array
getSliderTooCloseToEnding(int $window)
Get the slider of URLs when too close to ending of window.
at line 143
protected array
getFullSlider(int $onEachSide)
Get the slider of URLs when a full slider can be made.
at line 158
array
getAdjacentUrlRange(int $onEachSide)
Get the page range for the current page window.
at line 171
array
getStart()
Get the starting URLs of a pagination slider.
at line 181
array
getFinish()
Get the ending URLs of a pagination slider.
at line 194
bool
hasPages()
Determine if the underlying paginator being presented has pages to show.
at line 204
protected int
currentPage()
Get the current page from the paginator.
at line 214
protected int
lastPage()
Get the last page from the paginator.