public function TripalWebServiceCollection::initPager

3.x TripalWebServiceCollection.inc public TripalWebServiceCollection::initPager($totalItems, $itemsPerPage, $page)

Initializes the pager.

Parameters

$totalItems: The total number of items available.

$itemsPerPage: The maximum number of items per page.

$path: The path

File

tripal_ws/includes/TripalWebServiceCollection.inc, line 79

Class

TripalWebServiceCollection

Code

public function initPager($totalItems, $itemsPerPage, $page) {
  $this->doPaging = TRUE;
  $this->totalItems = $totalItems;
  $this->itemsPerPage = $itemsPerPage;
  $this->page = $page;
}