3 * Controls the HTML Renderer objects.
6 class PhpdocHTMLRendererManager extends PhpdocObject {
9 * @var object PhpdocHTMLIndexRenderer
14 * @var object PhpdocHTMLClassRenderer
19 * @var object PhpdocHTMLModuleRenderer
24 * @var object PhpdocHTMLWarningRenderer
29 * Creates all necessary renderer objects
31 * @param string Name of the target directory
32 * @param string Name of the directory with the templates.
33 * @param string Name of the current application
34 * @param string Extension of generated files
36 function PhpdocHTMLRendererManager($target, $template, $application, $extension = ".html") {
38 $this->indexrenderer = new PhpdocHTMLIndexRenderer($target, $template, $application, $extension);
39 $this->indexrenderer->generate();
41 $this->classrenderer = new PhpdocHTMLClassRenderer($target, $template, $application, $extension);
42 $this->modulerenderer = new PhpdocHTMLModuleRenderer($target, $template, $application, $extension);
43 $this->warningrenderer = new PhpdocHTMLWarningRenderer($target, $template, $application, $extension);
48 * Renders the given xml file.
50 * @param string XML file.
51 * @param string Content of the XML file: class, classtree,
52 * module, modulegroup, warnings, indexdata
55 function render($xmlfile, $type) {
57 switch (strtolower($type)) {
60 $this->classrenderer->renderClass($xmlfile);
64 $this->indexrenderer->addClasstree($xmlfile);
68 $this->modulerenderer->renderModule($xmlfile);
72 $this->indexrenderer->addModulegroup($xmlfile);
76 $this->warningrenderer->addWarnings($xmlfile);
84 * Finishes the rendering process.
86 * Finish means here: write the classtree and modulegroup overview to disk.
92 $this->indexrenderer->finishClasstree();
93 $this->indexrenderer->finishModulegroup();
94 $this->warningrenderer->finishWarnings();
98 } // end class PhpdocHTMLRendererManager