Compiler.php
protected function compileDoctype(Node $node)
    {

        $name = $node->name;
        $value = isset($this->options['doctypes'][$name]) ? $this->options['doctypes'][$name] : '<!DOCTYPE '.$name.'>';

        if ($name === 'xml') {

            $this->options['mode'] = self::MODE_XML;

            if ($this->options['echo_xml_doctype'])
                $value = "<?='$value'?>";

        } else if (in_array($name, $this->options['xhtml_modes']))
            $this->options['mode'] = self::MODE_XHTML;
        else
            $this->options['mode'] = self::MODE_HTML;

        return $value;
    }
protected function compileDoctype(Node $node)
    {

        $name = $node->name;
        $value = isset($this->options['doctypes'][$name]) ? $this->options['doctypes'][$name] : '<!DOCTYPE '.$name.'>';

        if ($name === 'xml') {

            $this->options['mode'] = self::MODE_XML;

            if ($this->options['echo_xml_doctype'])
                $value = "<?='$value'?>";

        } else if (in_array($name, $this->options['xhtml_modes']))
            $this->options['mode'] = self::MODE_XHTML;
        else
            $this->options['mode'] = self::MODE_HTML;

        return $value;
    }
protected function compileDoctype ( Node $ node ) { $ name = $ node -> name ; $ value = isset ( $ this -> options [ 'doctypes' ] [ $ name ] ) ? $ this -> options [ 'doctypes' ] [ $ name ] : '<!DOCTYPE ' . $ name . '>' ; if ( $ name === 'xml' ) { $ this -> options [ 'mode' ] = self :: MODE_XML ; if ( $ this -> options [ 'echo_xml_doctype' ] ) $ value = "<?='$value'?>" ; } else if ( in_array ( $ name , $ this -> options [ 'xhtml_modes' ] ) ) $ this -> options [ 'mode' ] = self :: MODE_XHTML ; else $ this -> options [ 'mode' ] = self :: MODE_HTML ; return $ value ; }
Compiles a doctype Node to PHTML.

@param Node $node the doctype-type node

@return string the compiled PHTML
Compiles a doctype Node to PHTML .