Horde_Template::_parse PHP Method

_parse() protected method

Parses all variables/tags in the template.
protected _parse ( )
    protected function _parse()
    {
        // Escape XML instructions.
        $this->_template = preg_replace('/\\?>|<\\?/', '<?php echo \'$0\' ?>', $this->_template);
        // Parse gettext tags, if the option is enabled.
        if ($this->getOption('gettext')) {
            $this->_parseGettext();
        }
        // Process ifs.
        $this->_parseIf();
        // Process loops and arrays.
        $this->_parseLoop();
        // Process base scalar tags.  Needs to be after _parseLoop() as we
        // rely on _foreachMap().
        $this->_parseTags();
        // Finally, process any associative array scalar tags.
        $this->_parseAssociativeTags();
    }