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: Array.php 16215 2009-06-21 19:36:07Z thomas $
|
||||
* @version $Id: Array.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -34,21 +34,21 @@ class Zend_Paginator_Adapter_Array implements Zend_Paginator_Adapter_Interface
|
||||
{
|
||||
/**
|
||||
* Array
|
||||
*
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_array = null;
|
||||
|
||||
|
||||
/**
|
||||
* Item count
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
protected $_count = null;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
*
|
||||
* @param array $array Array to paginate
|
||||
*/
|
||||
public function __construct(array $array)
|
||||
|
@ -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: DbTableSelect.php 16215 2009-06-21 19:36:07Z thomas $
|
||||
* @version $Id: DbTableSelect.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -42,7 +42,7 @@ class Zend_Paginator_Adapter_DbTableSelect extends Zend_Paginator_Adapter_DbSele
|
||||
public function getItems($offset, $itemCountPerPage)
|
||||
{
|
||||
$this->_select->limit($itemCountPerPage, $offset);
|
||||
|
||||
|
||||
return $this->_select->getTable()->fetchAll($this->_select);
|
||||
}
|
||||
}
|
@ -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: Interface.php 16215 2009-06-21 19:36:07Z thomas $
|
||||
* @version $Id: Interface.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -35,7 +35,7 @@ interface Zend_Paginator_Adapter_Interface extends Countable
|
||||
* @return integer
|
||||
*/
|
||||
//public function count();
|
||||
|
||||
|
||||
/**
|
||||
* Returns an collection of items for a page.
|
||||
*
|
||||
|
@ -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: Iterator.php 16215 2009-06-21 19:36:07Z thomas $
|
||||
* @version $Id: Iterator.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -34,11 +34,11 @@ class Zend_Paginator_Adapter_Iterator implements Zend_Paginator_Adapter_Interfac
|
||||
{
|
||||
/**
|
||||
* Iterator which implements Countable
|
||||
*
|
||||
*
|
||||
* @var Iterator
|
||||
*/
|
||||
protected $_iterator = null;
|
||||
|
||||
|
||||
/**
|
||||
* Item count
|
||||
*
|
||||
@ -48,7 +48,7 @@ class Zend_Paginator_Adapter_Iterator implements Zend_Paginator_Adapter_Interfac
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
*
|
||||
* @param Iterator $iterator Iterator to paginate
|
||||
* @throws Zend_Paginator_Exception
|
||||
*/
|
||||
@ -59,7 +59,7 @@ class Zend_Paginator_Adapter_Iterator implements Zend_Paginator_Adapter_Interfac
|
||||
* @see Zend_Paginator_Exception
|
||||
*/
|
||||
require_once 'Zend/Paginator/Exception.php';
|
||||
|
||||
|
||||
throw new Zend_Paginator_Exception('Iterator must implement Countable');
|
||||
}
|
||||
|
||||
|
@ -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: Null.php 16215 2009-06-21 19:36:07Z thomas $
|
||||
* @version $Id: Null.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -38,10 +38,10 @@ class Zend_Paginator_Adapter_Null implements Zend_Paginator_Adapter_Interface
|
||||
* @var integer
|
||||
*/
|
||||
protected $_count = null;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
*
|
||||
* @param array $count Total item count
|
||||
*/
|
||||
public function __construct($count = 0)
|
||||
|
Reference in New Issue
Block a user