changed git call from https to git readonly
[atutor.git] / mods / phpdoc / PHPDoc / xmlexporter / PhpdocXMLModuleExporter.php
1 <?php\r
2 /**\r
3 * Exports the data of a module as an xml document\r
4 *\r
5 * @author               Ulf Wendel <ulf.wendel@phpdoc.de>\r
6 * @version      1.0\r
7 */\r
8 class PhpdocXMLModuleExporter extends PhpdocXMLDocumentExporter {\r
9         \r
10         /**\r
11         * Module container attributes\r
12         * @var  array   $moduleAttributes\r
13         */\r
14         var $moduleAttributes = array(\r
15                                                                                                                                 "name"          => "CDATA",\r
16                                                                                                                                 "group"         => "CDATA",\r
17                                                                                                                                 "undoc"         => "Boolean",\r
18                                                                                                                                 "access"        => "CDATA",\r
19                                                                                                                                 "package"       => "CDATA"\r
20                                                                                                                         );\r
21 \r
22         var $fileprefix = "module_";\r
23         \r
24         function PhpdocXMLModuleExporter() {\r
25                 $this->PhpdocXMLExporter();     \r
26         } // end constructor\r
27         \r
28         function create() {\r
29                 \r
30                 $attribs = $this->getAttributes($this->result, $this->moduleAttributes);                                                                                \r
31                 $this->xmlwriter->startElement("module", "", $attribs);\r
32                 \r
33                 $this->filenameXML($this->result["filename"]);\r
34                 \r
35                 $this->docXML($this->result);   \r
36                 \r
37                 if (isset($this->result["functions"]))\r
38                         $this->functionsXML($this->result["functions"]);\r
39                         \r
40                 if (isset($this->result["uses"]))\r
41                         $this->usesXML($this->result["uses"]);\r
42                         \r
43                 if (isset($this->result["consts"]))\r
44                         $this->constsXML($this->result["consts"]);\r
45                 \r
46                 $this->xmlwriter->endElement("module", true);\r
47                 \r
48         } // end func create\r
49         \r
50 } // end class PhpdocXMLModuleExporter\r
51 ?>