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

public method

Allows checking to see if a value is set in template data.

Part of ArrayAccess.

isset($file['bar']);
$file->offsetExists('bar');

Parameters

  • string

    $offset Key / variable name to check.

Returns

boolean

Returns true if the value is set, otherwise false.

Source

	public function offsetExists($offset) {
		return array_key_exists($offset, $this->_data);
	}