3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Paginator\ScrollingStyle
;
12 use Zend\Paginator\Paginator
;
15 * A scrolling style that returns every page in the collection.
16 * Useful when it is necessary to make every page available at
17 * once--for example, when using a drop-down menu pagination control.
19 class All
implements ScrollingStyleInterface
22 * Returns an array of all pages given a page number and range.
24 * @param Paginator $paginator
25 * @param int $pageRange Unused
28 public function getPages(Paginator
$paginator, $pageRange = null)
30 return $paginator->getPagesInRange(1, $paginator->count());