From: Evan Prodromou Date: Thu, 14 Jul 2011 18:40:57 +0000 (-0400) Subject: ArrayWrapper::fetchAll() shortcut X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc7099aa5a61a42e14047548e4dfe9e7b6cc8699;p=quix0rs-gnu-social.git ArrayWrapper::fetchAll() shortcut --- 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];