コード例 #1
0
 /**
  * Return records from the document, paging is included
  *
  * @param string $documentName
  * @param int $pageNumber
  * @param int $pageSize
  * @return array
  */
 public function getRecords($documentName, $pageNumber, $pageSize = null)
 {
     $pageSize = $pageSize ?: $this->getPageSize($documentName);
     return $this->adapter->loadPage($this->addDocumentPrefix($documentName), $pageNumber, $pageSize);
 }