PHP Class Msieprawski\ResourceTable\Presenters\DefaultPresenter

Inheritance: implements Illuminate\Contracts\Pagination\Presenter, use trait Illuminate\Pagination\UrlWindowPresenterTrait
Afficher le fichier Open project: msieprawski/resource-table

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 ) : 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.

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 | 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.

Method Details

__construct() public méthode

Create a new Bootstrap presenter instance.
public __construct ( Illuminate\Contracts\Pagination\Paginator $paginator, Illuminate\Pagination\UrlWindow $window = null ) : void
$paginator Illuminate\Contracts\Pagination\Paginator
$window Illuminate\Pagination\UrlWindow
Résultat void

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 | null $rel = null ) : string
$url string
$page integer
$rel string | null
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 $text = '»' ) : string
$text string
Résultat string

getPreviousButton() protected méthode

Get the previous page pagination element.
protected getPreviousButton ( string $text = '«' ) : string
$text 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 Bootstrap 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