lithium\template\view\adapter\File::offsetGet()

public method

Gets the offset, or null in the template data.

Part of ArrayAccess.

$file['bar'];
$file->offsetGet('bar');

Parameters

  • string $offset

    Key / variable name to check.

Returns

mixed

Source

	#[ReturnTypeWillChange]
	public function offsetGet($offset) {
		return isset($this->_data[$offset]) ? $this->_data[$offset] : null;
	}