]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ArrayWrapper::fetchAll() shortcut
authorEvan Prodromou <evan@status.net>
Thu, 14 Jul 2011 18:40:57 +0000 (14:40 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 14 Jul 2011 18:40:57 +0000 (14:40 -0400)
lib/arraywrapper.php

index f9d3c3cf946313d14b35b2ee4cfca2fd1e59a706..30cb6cfdc79da2647580d89aa32d20f6ff8a6c47 100644 (file)
@@ -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];