BootstrapThreePresenter
class BootstrapThreePresenter implements Presenter (View source)
Traits
Properties
protected Paginator | $paginator | The paginator implementation. | |
protected array | $window | The URL window data structure. |
Methods
Get the previous page pagination element.
Get the next page pagination element.
Get the links for the URLs in the given array.
Get HTML wrapper for a page link.
Create a new Bootstrap presenter instance.
Determine if the underlying paginator being presented has pages to show.
Convert the URL window into Bootstrap HTML.
Get HTML wrapper for an available page link.
Get HTML wrapper for disabled text.
Get HTML wrapper for active text.
Get a pagination "dot" element.
Get the current page from the paginator.
Get the last page from the paginator.
Details
protected string
getPreviousButton(string $text = '«')
Get the previous page pagination element.
protected string
getNextButton(string $text = '»')
Get the next page pagination element.
protected string
getLinks()
Render the actual link slider.
protected string
getUrlLinks(array $urls)
Get the links for the URLs in the given array.
protected string
getPageLinkWrapper(string $url, int $page, string|null $rel = null)
Get HTML wrapper for a page link.
at line 31
void
__construct(Paginator $paginator, UrlWindow $window = null)
Create a new Bootstrap presenter instance.
at line 42
bool
hasPages()
Determine if the underlying paginator being presented has pages to show.
at line 52
string
render()
Convert the URL window into Bootstrap HTML.
at line 75
protected string
getAvailablePageWrapper(string $url, int $page, string|null $rel = null)
Get HTML wrapper for an available page link.
at line 88
protected string
getDisabledTextWrapper(string $text)
Get HTML wrapper for disabled text.
at line 99
protected string
getActivePageWrapper(string $text)
Get HTML wrapper for active text.
at line 109
protected string
getDots()
Get a pagination "dot" element.
at line 119
protected int
currentPage()
Get the current page from the paginator.
at line 129
protected int
lastPage()
Get the last page from the paginator.