// Multishop interface reworked
This commit is contained in:
@@ -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