Свойство | Type | Description | |
---|---|---|---|
$paginator | Illuminate\Contracts\Pagination\Paginator | The paginator implementation. | |
$window | array | The URL window data structure. |
Méthode | 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. |
Méthode | 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 | ||
Résultat | integer |
protected getActivePageWrapper ( string $text ) : string | ||
$text | string | |
Résultat | string |
protected getDisabledTextWrapper ( string $text ) : string | ||
$text | string | |
Résultat | string |
protected getNextButton ( ) : string | ||
Résultat | string |
protected getPreviousButton ( ) : string | ||
Résultat | string |
protected Paginator,Illuminate\Contracts\Pagination $paginator | ||
Résultat | Illuminate\Contracts\Pagination\Paginator |