SimpleBootstrapFourPresenter

class SimpleBootstrapFourPresenter extends BootstrapFourPresenter (View source)

Traits

BootstrapFourNextPreviousButtonRendererTrait
UrlWindowPresenterTrait

Properties

protected Paginator $paginator The paginator implementation. from BootstrapFourPresenter
protected array $window The URL window data structure. from BootstrapFourPresenter

Methods

string getPreviousButton(string $text = '«')

Get the previous page pagination element.

from BootstrapFourNextPreviousButtonRendererTrait
string getNextButton(string $text = '»')

Get the next page pagination element.

from BootstrapFourNextPreviousButtonRendererTrait
string getLinks()

Render the actual link slider.

from UrlWindowPresenterTrait
string getUrlLinks(array $urls)

Get the links for the URLs in the given array.

from UrlWindowPresenterTrait
string getPageLinkWrapper(string $url, int $page, string|null $rel = null)

Get HTML wrapper for a page link.

from UrlWindowPresenterTrait
void __construct(Paginator $paginator)

Create a simple Bootstrap 4 presenter.

bool hasPages()

Determine if the underlying paginator being presented has pages to show.

Htmlable|string render()

Convert the URL window into Bootstrap HTML.

string getAvailablePageWrapper(string $url, int $page, string|null $rel = null)

Get HTML wrapper for an available page link.

from BootstrapFourPresenter
string getDisabledTextWrapper(string $text)

Get HTML wrapper for disabled text.

from BootstrapFourPresenter
string getActivePageWrapper(string $text)

Get HTML wrapper for active text.

from BootstrapFourPresenter
string getDots()

Get a pagination "dot" element.

from BootstrapFourPresenter
int currentPage()

Get the current page from the paginator.

from BootstrapFourPresenter
int lastPage()

Get the last page from the paginator.

from BootstrapFourPresenter

Details

string getPreviousButton(string $text = '«')

Get the previous page pagination element.

Parameters

string $text

Return Value

string

string getNextButton(string $text = '»')

Get the next page pagination element.

Parameters

string $text

Return Value

string

Render the actual link slider.

Return Value

string

Get the links for the URLs in the given array.

Parameters

array $urls

Return Value

string

Get HTML wrapper for a page link.

Parameters

string $url
int $page
string|null $rel

Return Value

string

void __construct(Paginator $paginator)

Create a simple Bootstrap 4 presenter.

Parameters

Paginator $paginator

Return Value

void

bool hasPages()

Determine if the underlying paginator being presented has pages to show.

Return Value

bool

Htmlable|string render()

Convert the URL window into Bootstrap HTML.

Return Value

Htmlable|string

protected string getAvailablePageWrapper(string $url, int $page, string|null $rel = null)

Get HTML wrapper for an available page link.

Parameters

string $url
int $page
string|null $rel

Return Value

string

protected string getDisabledTextWrapper(string $text)

Get HTML wrapper for disabled text.

Parameters

string $text

Return Value

string

protected string getActivePageWrapper(string $text)

Get HTML wrapper for active text.

Parameters

string $text

Return Value

string

protected string getDots()

Get a pagination "dot" element.

Return Value

string

protected int currentPage()

Get the current page from the paginator.

Return Value

int

protected int lastPage()

Get the last page from the paginator.

Return Value

int

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Pagination/SimpleBootstrapFourPresenter.html