lithium\data\collection\MultiKeyRecordSet::key()
Overrides
lithium\util\Collection::key()
Returns the currently pointed to record's unique key.
Parameters
-
boolean
$full
If true, returns the complete key.
Returns
mixedSource
public function key($full = false) {
if ($this->_started === false) {
$this->current();
}
if ($this->_valid) {
$key = $this->_index[key($this->_data)];
return (is_array($key) && !$full) ? reset($key) : $key;
}
return null;
}