// Multishop interface reworked
This commit is contained in:
1 parent
7920dea947
commit
d7337c4d4f
61 files changed
+6043
-391
No files matched your search
@@ -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
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user