setData()
setData(array $data) : \Charcoal\Source\Pagination
Parameters
array | $data | The pagination data (page, num_per_page). |
Returns
\Charcoal\Source\Pagination —Chainable
Pagination Interface.
setData(array $data) : \Charcoal\Source\Pagination
array | $data | The pagination data (page, num_per_page). |
Chainable
setPage(integer $page) : \Charcoal\Source\Pagination
integer | $page | The current page. Starts at 0. |
(Chainable)
setNumPerPage(integer $num) : \Charcoal\Source\Pagination
integer | $num | The number ot item to retrieve per page. |
If the parameter is not numeric or < 0.
(Chainable)