// Multishop interface reworked

This commit is contained in:
rMalie
2012-05-09 15:05:39 +00:00
parent 5d5f919195
commit 522d7cc950
61 changed files with 6043 additions and 391 deletions
+13
View File
@@ -346,6 +346,19 @@ class CollectionCore implements Iterator, ArrayAccess, Countable
return $this;
}
/**
* Retrieve the first result
*
* @return ObjectModel
*/
public function getFirst()
{
$this->getAll();
if (!count($this))
return false;
return $this[0];
}
/**
* Get results array
*