SimpleBootstrapThreePresenter
class SimpleBootstrapThreePresenter extends BootstrapThreePresenter (View source)
Traits
| BootstrapThreeNextPreviousButtonRendererTrait |
| UrlWindowPresenterTrait |
Properties
| protected Paginator | $paginator | The paginator implementation. | from BootstrapThreePresenter |
| protected array | $window | The URL window data structure. | from BootstrapThreePresenter |
Methods
| string | getPreviousButton(string $text = '«') Get the previous page pagination element. | from BootstrapThreeNextPreviousButtonRendererTrait |
| string | getNextButton(string $text = '»') Get the next page pagination element. | from BootstrapThreeNextPreviousButtonRendererTrait |
| 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 3 presenter. | |
| bool | hasPages() Determine if the underlying paginator being presented has pages to show. | |
| 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 BootstrapThreePresenter |
| string | getDisabledTextWrapper(string $text) Get HTML wrapper for disabled text. | from BootstrapThreePresenter |
| string | getActivePageWrapper(string $text) Get HTML wrapper for active text. | from BootstrapThreePresenter |
| string | getDots() Get a pagination "dot" element. | from BootstrapThreePresenter |
| int | currentPage() Get the current page from the paginator. | from BootstrapThreePresenter |
| int | lastPage() Get the last page from the paginator. | from BootstrapThreePresenter |
Details
string getPreviousButton(string $text = '«')
Get the previous page pagination element.
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.
void __construct(Paginator $paginator)
Create a simple Bootstrap 3 presenter.
bool hasPages()
Determine if the underlying paginator being presented has pages to show.
string render()
Convert the URL window into Bootstrap HTML.
protected string getAvailablePageWrapper(string $url, int $page, string|null $rel = null)
Get HTML wrapper for an available page link.
protected string getDisabledTextWrapper(string $text)
Get HTML wrapper for disabled text.
protected string getActivePageWrapper(string $text)
Get HTML wrapper for active text.
protected string getDots()
Get a pagination "dot" element.
protected int currentPage()
Get the current page from the paginator.
protected int lastPage()
Get the last page from the paginator.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Pagination/SimpleBootstrapThreePresenter.html