public function doDoctype($called_from_macro = false)
    {
        if ($this->_doctype) {
            $code = '$ctx->setDocType('.$this->str($this->_doctype).','.($called_from_macro?'true':'false').')';
            $this->pushCode($code);
        }
    }
public function doDoctype($called_from_macro = false)
    {
        if ($this->_doctype) {
            $code = '$ctx->setDocType('.$this->str($this->_doctype).','.($called_from_macro?'true':'false').')';
            $this->pushCode($code);
        }
    }
public function doDoctype ( $ called_from_macro = false ) { if ( $ this -> _doctype ) { $ code = '$ctx->setDocType(' . $ this -> str ( $ this -> _doctype ) . ',' . ( $ called_from_macro ? 'true' : 'false' ) . ')' ; $ this -> pushCode ( $ code ) ; } }
Generate code for setting DOCTYPE

@param bool $called_from_macro for error checking: unbuffered output doesn't support that
Generate code for setting DOCTYPE