3 * Exports the data of a module as an xml document
\r
5 * @author Ulf Wendel <ulf.wendel@phpdoc.de>
\r
8 class PhpdocXMLModuleExporter extends PhpdocXMLDocumentExporter {
\r
11 * Module container attributes
\r
12 * @var array $moduleAttributes
\r
14 var $moduleAttributes = array(
\r
17 "undoc" => "Boolean",
\r
18 "access" => "CDATA",
\r
19 "package" => "CDATA"
\r
22 var $fileprefix = "module_";
\r
24 function PhpdocXMLModuleExporter() {
\r
25 $this->PhpdocXMLExporter();
\r
26 } // end constructor
\r
30 $attribs = $this->getAttributes($this->result, $this->moduleAttributes);
\r
31 $this->xmlwriter->startElement("module", "", $attribs);
\r
33 $this->filenameXML($this->result["filename"]);
\r
35 $this->docXML($this->result);
\r
37 if (isset($this->result["functions"]))
\r
38 $this->functionsXML($this->result["functions"]);
\r
40 if (isset($this->result["uses"]))
\r
41 $this->usesXML($this->result["uses"]);
\r
43 if (isset($this->result["consts"]))
\r
44 $this->constsXML($this->result["consts"]);
\r
46 $this->xmlwriter->endElement("module", true);
\r
48 } // end func create
\r
50 } // end class PhpdocXMLModuleExporter
\r