class UrlWindow (View source)

Methods

void
__construct( LengthAwarePaginator $paginator)

Create a new URL window instance.

static  array
make( LengthAwarePaginator $paginator, int $onEachSide = 3)

Create a new URL window instance.

array
get( int $onEachSide = 3)

Get the window of URLs to be shown.

array
getAdjacentUrlRange( int $onEachSide)

Get the page range for the current page window.

array
getStart()

Get the starting URLs of a pagination slider.

array
getFinish()

Get the ending URLs of a pagination slider.

bool
hasPages()

Determine if the underlying paginator being presented has pages to show.

Details

at line line 22
void __construct( LengthAwarePaginator $paginator)

Create a new URL window instance.

Parameters

LengthAwarePaginator $paginator

Return Value

void

at line line 34
static array make( LengthAwarePaginator $paginator, int $onEachSide = 3)

Create a new URL window instance.

Parameters

LengthAwarePaginator $paginator
int $onEachSide

Return Value

array

at line line 45
array get( int $onEachSide = 3)

Get the window of URLs to be shown.

Parameters

int $onEachSide

Return Value

array

at line line 162
array getAdjacentUrlRange( int $onEachSide)

Get the page range for the current page window.

Parameters

int $onEachSide

Return Value

array

at line line 175
array getStart()

Get the starting URLs of a pagination slider.

Return Value

array

at line line 185
array getFinish()

Get the ending URLs of a pagination slider.

Return Value

array

at line line 198
bool hasPages()

Determine if the underlying paginator being presented has pages to show.

Return Value

bool