Kohana_Twig::get PHP Method

get() public method

Local variables will be returned before global variables.
public get ( $key, $default = NULL ) : mixed
return mixed
    public function &get($key, $default = NULL)
    {
        if (isset($this->_data[$key])) {
            return $this->_data[$key];
        } elseif (isset(Twig::$_global_data[$key])) {
            return Twig::$_global_data[$key];
        } else {
            return $default;
        }
    }