added get and set magic methods.
This commit is contained in:
parent
471b7aaa81
commit
86bbb5f187
|
@ -353,6 +353,22 @@ public function offsetUnset($offset)
|
|||
unset($this->data[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Method for handling dynamic data access.
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
return $this[$key];
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Method for handling the dynamic setting of data.
|
||||
*/
|
||||
public function __set($key, $value)
|
||||
{
|
||||
$this[$key] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the evaluated string content of the view.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue