Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function paginateObject(PaginableInterface $object)
 {
     $this->setCount($object->count());
     $object->setPaginator($this);
     $object->offset($this->getOffset());
     $object->limit($this->getLimit());
     return $object;
 }
 /**
  * {@inheritdoc}
  */
 public function paginate(PaginableInterface $paginable)
 {
     $this->setCount($paginable->count());
     $paginable->offset($this->getOffset());
     $paginable->limit($this->getLimit());
     return $paginable;
 }