class BootstrapPresenter extends Presenter (View source)

Properties

protected Paginator $paginator

The paginator instance being rendered.

from  Presenter
protected int $currentPage

The current page of the paginator.

from  Presenter
protected int $lastPage

The last available page of the paginator.

from  Presenter

Methods

void
__construct(Paginator $paginator)

Create a new Presenter instance.

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

Get HTML wrapper for a page link.

string
getDisabledTextWrapper(string $text)

Get HTML wrapper for disabled text.

string
getActivePageWrapper(string $text)

Get HTML wrapper for active text.

string
render()

Render the Pagination contents.

string
getPageRange(int $start, int $end)

Create a range of pagination links.

string
getPageSlider()

Create a pagination slider link window.

string
getAdjacentRange()

Get the page range for the current page window.

string
getStart()

Create the beginning leader of a pagination slider.

string
getFinish()

Create the ending cap of a pagination slider.

string
getPrevious(string $text = '«')

Get the previous page pagination element.

string
getNext(string $text = '»')

Get the next page pagination element.

string
getDots()

Get a pagination "dot" element.

string
getLink(mixed $page)

Create a pagination slider link.

void
setCurrentPage(int $page)

Set the value of the current page.

void
setLastPage(int $page)

Set the value of the last page.

Details

void __construct(Paginator $paginator)

Create a new Presenter instance.

Parameters

Paginator $paginator

Return Value

void

Get HTML wrapper for a page link.

Parameters

string $url
int $page
string $rel

Return Value

string

string getDisabledTextWrapper(string $text)

Get HTML wrapper for disabled text.

Parameters

string $text

Return Value

string

string getActivePageWrapper(string $text)

Get HTML wrapper for active text.

Parameters

string $text

Return Value

string

string render()

Render the Pagination contents.

Return Value

string

string getPageRange(int $start, int $end)

Create a range of pagination links.

Parameters

int $start
int $end

Return Value

string

protected string getPageSlider()

Create a pagination slider link window.

Return Value

string

string getAdjacentRange()

Get the page range for the current page window.

Return Value

string

string getStart()

Create the beginning leader of a pagination slider.

Return Value

string

string getFinish()

Create the ending cap of a pagination slider.

Return Value

string

string getPrevious(string $text = '«')

Get the previous page pagination element.

Parameters

string $text

Return Value

string

string getNext(string $text = '»')

Get the next page pagination element.

Parameters

string $text

Return Value

string

string getDots()

Get a pagination "dot" element.

Return Value

string

Create a pagination slider link.

Parameters

mixed $page

Return Value

string

void setCurrentPage(int $page)

Set the value of the current page.

Parameters

int $page

Return Value

void

void setLastPage(int $page)

Set the value of the last page.

Parameters

int $page

Return Value

void