class BootstrapPresenter extends Presenter (View source)

Methods

void
__construct( Paginator $paginator)

Create a new Presenter instance.

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

from Presenter
string
getPageRange( int $start, int $end)

Create a range of pagination links.

from Presenter
string
getAdjacentRange()

Get the page range for the current page window.

from Presenter
string
getStart()

Create the beginning leader of a pagination slider.

from Presenter
string
getFinish()

Create the ending cap of a pagination slider.

from Presenter
string
getPrevious( string $text = '«')

Get the previous page pagination element.

from Presenter
string
getNext( string $text = '»')

Get the next page pagination element.

from Presenter
string
getDots()

Get a pagination "dot" element.

from Presenter
string
getLink( mixed $page)

Create a pagination slider link.

from Presenter
void
setCurrentPage( int $page)

Set the value of the current page.

from Presenter
void
setLastPage( int $page)

Set the value of the last page.

from Presenter

Details

in Presenter at line line 32
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

at line line 26
string getDisabledTextWrapper( string $text)

Get HTML wrapper for disabled text.

Parameters

string $text

Return Value

string

at line line 37
string getActivePageWrapper( string $text)

Get HTML wrapper for active text.

Parameters

string $text

Return Value

string

in Presenter at line line 70
string render()

Render the Pagination contents.

Return Value

string

in Presenter at line line 94
string getPageRange( int $start, int $end)

Create a range of pagination links.

Parameters

int $start
int $end

Return Value

string

in Presenter at line line 163
string getAdjacentRange()

Get the page range for the current page window.

Return Value

string

in Presenter at line line 173
string getStart()

Create the beginning leader of a pagination slider.

Return Value

string

in Presenter at line line 183
string getFinish()

Create the ending cap of a pagination slider.

Return Value

string

in Presenter at line line 196
string getPrevious( string $text = '«')

Get the previous page pagination element.

Parameters

string $text

Return Value

string

in Presenter at line line 217
string getNext( string $text = '»')

Get the next page pagination element.

Parameters

string $text

Return Value

string

in Presenter at line line 237
string getDots()

Get a pagination "dot" element.

Return Value

string

Create a pagination slider link.

Parameters

mixed $page

Return Value

string

in Presenter at line line 261
void setCurrentPage( int $page)

Set the value of the current page.

Parameters

int $page

Return Value

void

in Presenter at line line 272
void setLastPage( int $page)

Set the value of the last page.

Parameters

int $page

Return Value

void