Flow\Template::pushContext PHP Method

pushContext() public method

public pushContext ( &$context, $name )
    public function pushContext(&$context, $name)
    {
        if (!array_key_exists($name, $this->stack)) {
            $this->stack[$name] = array();
        }
        array_push($this->stack[$name], isset($context[$name]) ? $context[$name] : null);
        return $this;
    }