PHP Class Landish\Pagination\Pagination

Inheritance: extends PaginationHTML, implements Illuminate\Contracts\Pagination\Presenter, use trait Illuminate\Pagination\UrlWindowPresenterTrait
Afficher le fichier Open project: landish/pagination Class Usage Examples

Protected Properties

Свойство Type Description
$paginator Illuminate\Contracts\Pagination\Paginator The paginator implementation.
$window array The URL window data structure.

Méthodes publiques

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éthodes protégées

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.

Method Details

__construct() public méthode

Create a new Pagination presenter instance.
public __construct ( Illuminate\Contracts\Pagination\Paginator $paginator, Illuminate\Pagination\UrlWindow $window = null )
$paginator Illuminate\Contracts\Pagination\Paginator
$window Illuminate\Pagination\UrlWindow

currentPage() protected méthode

Get the current page from the paginator.
protected currentPage ( ) : integer
Résultat integer

getActivePageWrapper() protected méthode

Get HTML wrapper for active text.
protected getActivePageWrapper ( string $text ) : string
$text string
Résultat string

getAvailablePageWrapper() protected méthode

Get HTML wrapper for an available page link.
protected getAvailablePageWrapper ( string $url, integer $page ) : string
$url string
$page integer
Résultat string

getDisabledTextWrapper() protected méthode

Get HTML wrapper for disabled text.
protected getDisabledTextWrapper ( string $text ) : string
$text string
Résultat string

getDots() protected méthode

Get a pagination "dot" element.
protected getDots ( ) : string
Résultat string

getNextButton() protected méthode

Get the next page pagination element.
protected getNextButton ( ) : string
Résultat string

getPreviousButton() protected méthode

Get the previous page pagination element.
protected getPreviousButton ( ) : string
Résultat string

hasPages() public méthode

Determine if the underlying paginator being presented has pages to show.
public hasPages ( ) : boolean
Résultat boolean

lastPage() protected méthode

Get the last page from the paginator.
protected lastPage ( ) : integer
Résultat integer

render() public méthode

Convert the URL window into Pagination HTML.
public render ( ) : string
Résultat string

Property Details

$paginator protected_oe property

The paginator implementation.
protected Paginator,Illuminate\Contracts\Pagination $paginator
Résultat Illuminate\Contracts\Pagination\Paginator

$window protected_oe property

The URL window data structure.
protected array $window
Résultat array