lithium\template\view\Renderer::__get PHP Method

__get() public method

Returns a helper object or context value by name.
public __get ( string $property ) : mixed
$property string The name of the helper or context value to return.
return mixed
    public function __get($property)
    {
        $context = $this->_context;
        $helpers = $this->_helpers;
        $filter = function ($self, $params, $chain) use($context, $helpers) {
            $property = $params['property'];
            foreach (array('context', 'helpers') as $key) {
                if (isset(${$key}[$property])) {
                    return ${$key}[$property];
                }
            }
            return $self->helper($property);
        };
        return $this->_filter(__METHOD__, compact('property'), $filter);
    }