Ejemplo n.º 1
0
 /**
  * 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);
     }
 }
Ejemplo n.º 2
0
 /**
  * @param int $offset
  */
 public function setOffset($offset)
 {
     $this->query->setOffset($offset);
 }