PHP Класс Msieprawski\ResourceTable\Presenters\DefaultPresenter

Наследование: implements Illuminate\Contracts\Pagination\Presenter, use trait Illuminate\Pagination\UrlWindowPresenterTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$paginator Illuminate\Contracts\Pagination\Paginator The paginator implementation.
$window array The URL window data structure.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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
Результат void

currentPage() защищенный Метод

Get the current page from the paginator.
protected currentPage ( ) : integer
Результат integer

getActivePageWrapper() защищенный Метод

Get HTML wrapper for active text.
protected getActivePageWrapper ( string $text ) : string
$text string
Результат string

getAvailablePageWrapper() защищенный Метод

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
Результат string

getDisabledTextWrapper() защищенный Метод

Get HTML wrapper for disabled text.
protected getDisabledTextWrapper ( string $text ) : string
$text string
Результат string

getDots() защищенный Метод

Get a pagination "dot" element.
protected getDots ( ) : string
Результат string

getNextButton() защищенный Метод

Get the next page pagination element.
protected getNextButton ( string $text = '»' ) : string
$text string
Результат string

getPreviousButton() защищенный Метод

Get the previous page pagination element.
protected getPreviousButton ( string $text = '«' ) : string
$text string
Результат string

hasPages() публичный Метод

Determine if the underlying paginator being presented has pages to show.
public hasPages ( ) : boolean
Результат boolean

lastPage() защищенный Метод

Get the last page from the paginator.
protected lastPage ( ) : integer
Результат integer

render() публичный Метод

Convert the URL window into Bootstrap HTML.
public render ( ) : string
Результат string

Описание свойств

$paginator защищенное свойство

The paginator implementation.
protected Paginator,Illuminate\Contracts\Pagination $paginator
Результат Illuminate\Contracts\Pagination\Paginator

$window защищенное свойство

The URL window data structure.
protected array $window
Результат array