All.php 759 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. *
  4. * Cube Framework $Id$ w1lgTxaJ2yEjVFUpQEKCWLIK2ngcCxhiYirqaX2St/0=
  5. *
  6. * @link http://codecu.be/framework
  7. * @copyright Copyright (c) 2014 CodeCube SRL
  8. * @license http://codecu.be/framework/license Commercial License
  9. *
  10. * @version 1.0
  11. */
  12. /**
  13. *
  14. */
  15. namespace Cube\Paginator\ScrollingStyle;
  16. use Cube\Paginator;
  17. class All implements ScrollingStyleInterface
  18. {
  19. /**
  20. *
  21. * returns an array of all pages in the paginator
  22. *
  23. * @param \Cube\Paginator $paginator
  24. * @param integer $pageRange (Optional) Page range
  25. * @return array
  26. */
  27. public function getPages(Paginator $paginator, $pageRange = null)
  28. {
  29. return $paginator->getPagesInRange(1, $paginator->count());
  30. }
  31. }