Exemplo n.º 1
0
 /**
  * @param string $sourceDocumentName
  * @param \Magento\Framework\DB\Select $select
  * @param int $pageNumber
  * @return array
  */
 protected function getRecords($sourceDocumentName, \Magento\Framework\DB\Select $select, $pageNumber)
 {
     $select->limit($this->source->getPageSize($sourceDocumentName), $pageNumber * $this->source->getPageSize($sourceDocumentName));
     return $this->sourceAdapter->loadDataFromSelect($select);
 }