Warning, file /webapps/ocs-webserver/library/Zend/Paginator/ScrollingStyle/All.php was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Paginator
0017  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0018  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0019  * @version    $Id$
0020  */
0021 
0022 /**
0023  * @see Zend_Paginator_ScrollingStyle_Interface
0024  */
0025 // require_once 'Zend/Paginator/ScrollingStyle/Interface.php';
0026 
0027 /**
0028  * A scrolling style that returns every page in the collection.
0029  * Useful when it is necessary to make every page available at
0030  * once--for example, when using a dropdown menu pagination control.
0031  *
0032  * @category   Zend
0033  * @package    Zend_Paginator
0034  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0035  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0036  */
0037 class Zend_Paginator_ScrollingStyle_All implements Zend_Paginator_ScrollingStyle_Interface
0038 {
0039     /**
0040      * Returns an array of all pages given a page number and range.
0041      *
0042      * @param  Zend_Paginator $paginator
0043      * @param  integer $pageRange Unused
0044      * @return array
0045      */
0046     public function getPages(Zend_Paginator $paginator, $pageRange = null)
0047     {
0048         return $paginator->getPagesInRange(1, $paginator->count());
0049     }
0050 }