class
Illuminate
/
Pagination
/
UrlWindow
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
UrlWindow
Properties
Methods
public
__construct ( LengthAwarePaginator $paginator ) : void
Create a new URL window instance.
Parameters
- $paginator LengthAwarePaginator
public
static
make ( LengthAwarePaginator $paginator ) : array
Create a new URL window instance.
Parameters
- $paginator LengthAwarePaginator
public
get ( ) : array
Get the window of URLs to be shown.
protected
getSmallSlider ( ) : array
Get the slider of URLs there are not enough pages to slide.
protected
getUrlSlider ( $onEachSide ) : array
Create a URL slider links.
Parameters
- $onEachSide int
protected
getSliderTooCloseToBeginning ( $window , $onEachSide ) : array
Get the slider of URLs when too close to the beginning of the window.
Parameters
- $window int
- $onEachSide int
protected
getSliderTooCloseToEnding ( $window , $onEachSide ) : array
Get the slider of URLs when too close to the ending of the window.
Parameters
- $window int
- $onEachSide int
protected
getFullSlider ( $onEachSide ) : array
Get the slider of URLs when a full slider can be made.
Parameters
- $onEachSide int
public
getAdjacentUrlRange ( $onEachSide ) : array
Get the page range for the current page window.
Parameters
- $onEachSide int
public
getStart ( ) : array
Get the starting URLs of a pagination slider.
public
getFinish ( ) : array
Get the ending URLs of a pagination slider.
public
hasPages ( ) : bool
Determine if the underlying paginator being presented has pages to show.
protected
currentPage ( ) : int
Get the current page from the paginator.
protected
lastPage ( ) : int
Get the last page from the paginator.