import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
* @package Zend_Paginator
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Jumping.php 16215 2009-06-21 19:36:07Z thomas $
|
||||
* @version $Id: Jumping.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -25,10 +25,10 @@
|
||||
require_once 'Zend/Paginator/ScrollingStyle/Interface.php';
|
||||
|
||||
/**
|
||||
* A scrolling style in which the cursor advances to the upper bound
|
||||
* of the page range, the page range "jumps" to the next section, and
|
||||
* A scrolling style in which the cursor advances to the upper bound
|
||||
* of the page range, the page range "jumps" to the next section, and
|
||||
* the cursor moves back to the beginning of the range.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Paginator
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,7 +38,7 @@ class Zend_Paginator_ScrollingStyle_Jumping implements Zend_Paginator_ScrollingS
|
||||
{
|
||||
/**
|
||||
* Returns an array of "local" pages given a page number and range.
|
||||
*
|
||||
*
|
||||
* @param Zend_Paginator $paginator
|
||||
* @param integer $pageRange Unused
|
||||
* @return array
|
||||
@ -47,17 +47,17 @@ class Zend_Paginator_ScrollingStyle_Jumping implements Zend_Paginator_ScrollingS
|
||||
{
|
||||
$pageRange = $paginator->getPageRange();
|
||||
$pageNumber = $paginator->getCurrentPageNumber();
|
||||
|
||||
|
||||
$delta = $pageNumber % $pageRange;
|
||||
|
||||
|
||||
if ($delta == 0) {
|
||||
$delta = $pageRange;
|
||||
}
|
||||
|
||||
$offset = $pageNumber - $delta;
|
||||
$lowerBound = $offset + 1;
|
||||
$lowerBound = $offset + 1;
|
||||
$upperBound = $offset + $pageRange;
|
||||
|
||||
return $paginator->getPagesInRange($lowerBound, $upperBound);
|
||||
|
||||
return $paginator->getPagesInRange($lowerBound, $upperBound);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user