/** * sets query limits from given values * * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface &$query * @param int $offset * @param int $limit * @return void */ protected function setQueryLimits(QueryInterface &$query, $offset = NULL, $limit = NULL) { if (is_numeric($offset)) { $query->setOffset($offset); } if (is_numeric($limit)) { $query->setLimit($limit); } }
/** * @param int $offset */ public function setOffset($offset) { $this->query->setOffset($offset); }