// Multishop interface reworked

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15121 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-05-09 15:05:39 +00:00
parent d568269c56
commit ccfef659c9
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
*