<?php
 /**
  * @version   $Id$
  * @author    RocketTheme http://www.rockettheme.com
  * @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC
  * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
  */
 
class RokGallery_Site_GalleryPager extends Doctrine_Pager
{
    /** @var RokGallery_Site_GalleryFilter */
    protected $filter;

    /**
     * @param $gallery_id
     * @param int $page
     * @param int $maxPerPage
     * @param string $order_by
     * @param string $order_direction
     */
    public function __construct(RokGallery_Site_GalleryFilter $filter, $page=1, $maxPerPage = 0)
    {
        $this->filter = $filter;
        parent::__construct($this->filter->getQuery(), $page, $maxPerPage);
    }
}
