Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Paginator / ScrollingStyle / All.php
blob7ce226727f33e7cce9aec44b7e8f6cf6a0821968
1 <?php
2 /**
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
8 */
10 namespace Zend\Paginator\ScrollingStyle;
12 use Zend\Paginator\Paginator;
14 /**
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
21 /**
22 * Returns an array of all pages given a page number and range.
24 * @param Paginator $paginator
25 * @param int $pageRange Unused
26 * @return array
28 public function getPages(Paginator $paginator, $pageRange = null)
30 return $paginator->getPagesInRange(1, $paginator->count());