PageableManagerInterface.php 695 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\CoreBundle\Model;
  11. use Sonata\DatagridBundle\Pager\PagerInterface;
  12. /**
  13. * @author Raphaël Benitte <benitteraphael@gmail.com>
  14. */
  15. interface PageableManagerInterface
  16. {
  17. /**
  18. * @param array $criteria
  19. * @param int $page
  20. * @param int $limit
  21. * @param array $sort
  22. *
  23. * @return PagerInterface
  24. */
  25. public function getPager(array $criteria, $page, $limit = 10, array $sort = array());
  26. }