Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * This is a test of bug 698356.  Must be parsed with -pp on to test
4
 *
5
 * {@internal internaltest with a {@link echo()}.}} should
6
 * not throw error.
7
 * @package tests
8
 */
9
    /**
10
     * Create the phpdoc.hhp, contents.hhc files needed by MS HTML Help Compiler
11
     * to create a CHM file
12
     *
13
     * The output function generates the table of contents (contents.hhc)
14
     * and file list (phpdoc.hhp) files used to create a .CHM by the
15
     * free MS HTML Help compiler.
16
     * {@internal
17
     * Using {@link $hhp_files}, a list of all separate .html files
18
     * is created in CHM format, and written to phpdoc.hhp.  This list was
19
     * generated by {@link writefile}.
20
     *
21
     * Next, a call to the table of contents:
22
     * finishes things off}}
23
     * @link http://www.microsoft.com/downloads/release.asp?releaseid=33071
24
     * @uses generateTOC() assigns to the toc template variable
25
     */
26
    function bug698356_Output()
27
    {
28
        $templ = &$this->newSmarty();
29
        $file = $this->base_dir . PATH_DELIMITER;
30
        $file = str_replace('\\',PATH_DELIMITER,$file);
31
        $file = str_replace('//',PATH_DELIMITER,$file);
32
        $file = str_replace(PATH_DELIMITER,'\\',$file);
33
        $templ->assign('files',$this->hhp_files);
34
        $this->setTargetDir($this->base_dir);
35
        Converter::writefile('phpdoc.hhp',$templ->fetch('hhp.tpl'));
36
        $templ = &$this->newSmarty();
37
        $templ->assign('toc',$this->generateTOC());
38
        Converter::writefile('contents.hhc',$templ->fetch('contents.hhc.tpl'));
39
        phpDocumentor_out("NOTE: to create the documentation.chm file, you must now run Microsoft Help Workshop on phpdoc.hhp\n");
40
        phpDocumentor_out("To get the free Microsoft Help Workshop, browse to: http://www.microsoft.com/downloads/release.asp?releaseid=33071\n");
41
        flush();
42
    }
43
 
44
?>