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 ) : void | Create a new Bootstrap presenter instance. | |
hasPages ( ) : boolean | Determine if the underlying paginator being presented has pages to show. | |
render ( ) : string | Convert the URL window into Bootstrap 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 | null $rel = null ) : 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 $text = '»' ) : string | Get the next page pagination element. | |
getPreviousButton ( string $text = '«' ) : 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 ) : void | ||
$paginator | Illuminate\Contracts\Pagination\Paginator | |
$window | Illuminate\Pagination\UrlWindow | |
return | void |
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 $text = '»' ) : string | ||
$text | string | |
return | string |
protected getPreviousButton ( string $text = '«' ) : string | ||
$text | string | |
return | string |
protected Paginator,Illuminate\Contracts\Pagination $paginator | ||
return | Illuminate\Contracts\Pagination\Paginator |