lithium\template\view\adapter\File::offsetExists()
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
booleanReturns true
if the value is set, otherwise false
.
Source
public function offsetExists($offset) {
return array_key_exists($offset, $this->_data);
}