UrlWindow (Pagination)

UrlWindow

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

void __construct(LengthAwarePaginator $paginator)

Create a new URL window instance.

Parameters

LengthAwarePaginator $paginator

Return Value

void

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

Create a new URL window instance.

Parameters

LengthAwarePaginator $paginator
int $onEachSide

Return Value

array

array get(int $onEachSide = 3)

Get the window of URLs to be shown.

Parameters

int $onEachSide

Return Value

array

array getAdjacentUrlRange(int $onEachSide)

Get the page range for the current page window.

Parameters

int $onEachSide

Return Value

array

array getStart()

Get the starting URLs of a pagination slider.

Return Value

array

array getFinish()

Get the ending URLs of a pagination slider.

Return Value

array

bool hasPages()

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

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Pagination/UrlWindow.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部