Define the member variable N

N is defined in the DB_DataObject class, which this class kind of extends. So to keep a consistent interface for consumers, we need to have N defined here.
This commit is contained in:
Craig Andrews 2009-08-12 11:51:43 -04:00
parent 3243612e76
commit 853b6d38b3
1 changed files with 3 additions and 1 deletions

View File

@ -25,12 +25,14 @@ class ArrayWrapper
{ {
var $_items = null; var $_items = null;
var $_count = 0; var $_count = 0;
var $N = 0;
var $_i = -1; var $_i = -1;
function __construct($items) function __construct($items)
{ {
$this->_items = $items; $this->_items = $items;
$this->_count = count($this->_items); $this->_count = count($this->_items);
$this->N = $this->_count;
} }
function fetch() function fetch()