lithium\data\entity\Document::offsetGet PHP Метод

offsetGet() публичный Метод

Allows document fields to be accessed as array keys, i.e. $document['_id'].
public offsetGet ( mixed $offset ) : mixed
$offset mixed String or integer indicating the offset or index of a document in a set, or the name of a field in an individual document.
Результат mixed Returns either a sub-object in the document, or a scalar field value.
    public function offsetGet($offset)
    {
        return $this->__get($offset);
    }