lithium\data\entity\Document::offsetGet()
Allows document fields to be accessed as array keys, i.e. $document['_id']
.
Parameters
-
mixed
$offset
String or integer indicating the offset or index of a document in a set, or the name of a field in an individual document.
Returns
mixedReturns either a sub-object in the document, or a scalar field value.
Source
public function offsetGet($offset) {
return $this->__get($offset);
}