class Listing

Represents a view of a list of objects.

Methods

__construct(Listable $viewModel, Pagination $pagination)

Constructor

array
metadata()

Returns overriden metadata from the viewModel, if any.

string
pagination()

Render the pagination control.

string
render()

Render the template used by this page.

Details

at line 44
__construct(Listable $viewModel, Pagination $pagination)

Constructor

Parameters

Listable $viewModel Instance of the viewModel required by this route.
Pagination $pagination Instance of the Tuskfish pagination class.

at line 55
array metadata()

Returns overriden metadata from the viewModel, if any.

Return Value

array

at line 65
string pagination()

Render the pagination control.

Return Value

string Pagination control output as HTML.

at line 81
string render()

Render the template used by this page.

Return Value

string Template output as HTML.