home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / PHP.EXE / pear / PHPDoc / xmlexporter / PhpdocXMLModuleExporter.php < prev    next >
Encoding:
PHP Script  |  2001-02-18  |  1.7 KB  |  51 lines

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