From dc7099aa5a61a42e14047548e4dfe9e7b6cc8699 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 14 Jul 2011 14:40:57 -0400 Subject: [PATCH] ArrayWrapper::fetchAll() shortcut --- lib/arraywrapper.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/arraywrapper.php b/lib/arraywrapper.php index f9d3c3cf94..30cb6cfdc7 100644 --- a/lib/arraywrapper.php +++ b/lib/arraywrapper.php @@ -48,6 +48,16 @@ class ArrayWrapper } } + function fetchAll($k= false, $v = false, $method = false) + { + if ($k !== false || $v !== false || $method !== false) + { + $item =& $this->_items[$this->_i]; + return $item->fetchAll($k, $v, $method); + } + return $this->_items; + } + function __set($name, $value) { $item =& $this->_items[$this->_i]; -- 2.39.5