database\query::page($page, $limit, $params = array())

Automatically adds pagination to a query

  • $page (int)
  • $limit (int)
    The number of rows, which should be returned for each page
  • $params (array)
    Optional params for the pagination object
  • return (object)
    Collection iterator with attached pagination object