ArrayWrapper::fetchAll() shortcut

This commit is contained in:
Evan Prodromou 2011-07-14 14:40:57 -04:00
parent 18fe1ac524
commit dc7099aa5a

View 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];