diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-12 11:51:43 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-12 11:53:46 -0400 |
commit | 853b6d38b362e3a905195d9ff850c9a884d412bd (patch) | |
tree | 6f9edfaf2132b0bf0a7aaf84987e02e505557c4c /lib/arraywrapper.php | |
parent | 3243612e7636b095cbcea1ceaaba00f964b1d097 (diff) |
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.
Diffstat (limited to 'lib/arraywrapper.php')
-rw-r--r-- | lib/arraywrapper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/arraywrapper.php b/lib/arraywrapper.php index a8a12b3bb..47ae057dc 100644 --- a/lib/arraywrapper.php +++ b/lib/arraywrapper.php @@ -25,12 +25,14 @@ class ArrayWrapper { var $_items = null; var $_count = 0; + var $N = 0; var $_i = -1; function __construct($items) { $this->_items = $items; $this->_count = count($this->_items); + $this->N = $this->_count; } function fetch() @@ -76,4 +78,4 @@ class ArrayWrapper $item =& $this->_items[$this->_i]; return call_user_func_array(array($item, $name), $args); } -}
\ No newline at end of file +} |