PHP 클래스 Msieprawski\ResourceTable\Presenters\DefaultPresenter

상속: implements Illuminate\Contracts\Pagination\Presenter, use trait Illuminate\Pagination\UrlWindowPresenterTrait
파일 보기 프로젝트 열기: msieprawski/resource-table

보호된 프로퍼티들

프로퍼티 타입 설명
$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