4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 13:16:37 +00:00
AzuraCast/app/library/DF/Paginator/Doctrine.php
2014-02-21 03:25:10 -06:00

12 lines
301 B
PHP
Executable File

<?php
namespace DF\Paginator;
class Doctrine extends \Zend_Paginator
{
public function __construct($query, $page = 1, $limit = 10)
{
parent::__construct(new Adapter\DoctrineQuery($query));
$this->setItemCountPerPage($limit);
$this->setCurrentPageNumber($page);
}
}