Property | Type | Description | |
---|---|---|---|
$paginator | Illuminate\Contracts\Pagination\Paginator | The paginator implementation. | |
$window | array | The URL window data structure. |
Method | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Pagination\Paginator $paginator, Illuminate\Pagination\UrlWindow $window = null ) | Create a new Pagination presenter instance. | |
hasPages ( ) : boolean | Determine if the underlying paginator being presented has pages to show. | |
render ( ) : string | Convert the URL window into Pagination HTML. |
Method | Description | |
---|---|---|
currentPage ( ) : integer | Get the current page from the paginator. | |
getActivePageWrapper ( string $text ) : string | Get HTML wrapper for active text. | |
getAvailablePageWrapper ( string $url, integer $page ) : string | Get HTML wrapper for an available page link. | |
getDisabledTextWrapper ( string $text ) : string | Get HTML wrapper for disabled text. | |
getDots ( ) : string | Get a pagination "dot" element. | |
getNextButton ( ) : string | Get the next page pagination element. | |
getPageLinkWrapper ( string $url, integer $page ) : string | Get HTML wrapper for a page link. | |
getPreviousButton ( ) : string | Get the previous page pagination element. | |
lastPage ( ) : integer | Get the last page from the paginator. |
public __construct ( Illuminate\Contracts\Pagination\Paginator $paginator, Illuminate\Pagination\UrlWindow $window = null ) | ||
$paginator | Illuminate\Contracts\Pagination\Paginator | |
$window | Illuminate\Pagination\UrlWindow |
protected currentPage ( ) : integer | ||
return | integer |
protected getActivePageWrapper ( string $text ) : string | ||
$text | string | |
return | string |
protected getDisabledTextWrapper ( string $text ) : string | ||
$text | string | |
return | string |
protected getNextButton ( ) : string | ||
return | string |
protected getPreviousButton ( ) : string | ||
return | string |
protected Paginator,Illuminate\Contracts\Pagination $paginator | ||
return | Illuminate\Contracts\Pagination\Paginator |