lithium\data\entity\Document::offsetGet()

public method

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

mixed

Returns either a sub-object in the document, or a scalar field value.

Source

	public function offsetGet($offset) {
		return $this->__get($offset);
	}