mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
12 lines
301 B
PHP
Executable File
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);
|
|
}
|
|
} |