lithium\data\Collection::current()
Overrides
lithium\util\Collection::current()
Returns the currently pointed to record in the set.
Returns
object|booleanAn instance of Record
or false
if there is no current valid one.
Source
public function current() {
if (!$this->_started) {
$this->rewind();
}
if (!$this->_valid) {
return false;
}
return current($this->_data);
}