page() public méthode

Sets offset using page number, more calls rewrite old values.
public page ( $page, $itemsPerPage, &$numOfPages = NULL ) : self
Résultat self
Exemple #1
0
 /**
  * Sets offset using page number, more calls rewrite old values.
  * @param int $page
  * @param int $itemsPerPage
  * @param int $numOfPages
  *
  * @return self
  */
 public function page($page, $itemsPerPage, &$numOfPages = NULL)
 {
     if (func_num_args() > 2) {
         $this->selection->page($page, $itemsPerPage, $numOfPages);
     } else {
         $this->selection->page($page, $itemsPerPage);
     }
     return $this;
 }