1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- /*
- * This file is part of the Sonata Project package.
- *
- * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Sonata\AdminBundle\Datagrid;
- /**
- * Interface PagerInterface.
- *
- * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
- */
- interface PagerInterface
- {
- /**
- * Initialize the Pager.
- */
- public function init();
- /**
- * Returns the maximum number of results per page.
- *
- * @return int
- */
- public function getMaxPerPage();
- /**
- * Sets the maximum number of results per page.
- *
- * @param int $max
- */
- public function setMaxPerPage($max);
- /**
- * Sets the current page.
- *
- * @param int $page
- */
- public function setPage($page);
- /**
- * Set query.
- *
- * @param ProxyQueryInterface $query
- */
- public function setQuery($query);
- /**
- * Returns an array of results on the given page.
- *
- * @return array
- */
- public function getResults();
- /**
- * Sets the maximum number of page numbers.
- *
- * @param int $maxPageLinks
- */
- public function setMaxPageLinks($maxPageLinks);
- /**
- * Returns the maximum number of page numbers.
- *
- * @return int
- */
- public function getMaxPageLinks();
- }
|