Drupal investigation

PagedRouteProviderInterface.php 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /*
  3. * This file is part of the Symfony CMF package.
  4. *
  5. * (c) 2011-2015 Symfony CMF
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * This file is part of the Symfony CMF package.
  12. *
  13. * (c) 2011-2014 Symfony CMF
  14. *
  15. * For the full copyright and license information, please view the LICENSE
  16. * file that was distributed with this source code.
  17. */
  18. /*
  19. * This file is part of the Symfony CMF package.
  20. *
  21. * (c) 2011-2015 Symfony CMF
  22. *
  23. * For the full copyright and license information, please view the LICENSE
  24. * file that was distributed with this source code.
  25. */
  26. namespace Symfony\Cmf\Component\Routing;
  27. /**
  28. * Interface for a provider which allows to retrieve a limited amount of routes.
  29. */
  30. interface PagedRouteProviderInterface extends RouteProviderInterface
  31. {
  32. /**
  33. * Find an amount of routes with an offset and possible a limit.
  34. *
  35. * In case you want to iterate over all routes, you want to avoid to load
  36. * all routes at once.
  37. *
  38. * @param int $offset
  39. * The sequence will start with that offset in the list of all routes.
  40. * @param int $length [optional]
  41. * The sequence will have that many routes in it. If no length is
  42. * specified all routes are returned.
  43. *
  44. * @return \Symfony\Component\Routing\Route[]
  45. * Routes keyed by the route name.
  46. */
  47. public function getRoutesPaged($offset, $length = null);
  48. /**
  49. * Determines the total amount of routes.
  50. *
  51. * @return int
  52. */
  53. public function getRoutesCount();
  54. }