Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

ModuleInfoXmlConfigOption.class.php

Go to the documentation of this file.
00001 <?php
00007 include_once("core/modules/moduleinformation/IModuleInfoConfig.class.php");   
00008 
00013 class ModuleInfoXmlConfigOption extends IModuleInfoConfig
00014 {
00015         /* Information */
00016         var $name;
00017         var $screennames;
00018         
00019         /* The constructor. */
00020         function ModuleInfoXmlConfigOption($tree)
00021         {
00022                 $this->tree = $tree;
00023                 $this->_ProcessTree();
00024         }
00025         
00026         function _ProcessTree()
00027         {
00028                 $this->name = $this->tree["attributes"]["name"];
00029 
00030                 if (count($this->tree["children"]) > 0)
00031                 {
00032                         foreach ($this->tree["children"] as $childtree)
00033                         {
00034                                 $lang = $childtree["attributes"]["lang"];
00035                                 if (!$childtree["attributes"]["lang"])
00036                                         $lang = "default";
00037                                         
00038                                 switch($childtree["tag"])
00039                                 {
00040                                         case "screenname":
00041                                                 $this->screennames[$lang] = $childtree["value"];
00042                                                 break;                          
00043                                 }
00044                         }
00045                 }
00046         }               
00047         
00048         function getName()              
00049         {
00050                 return $this->name;
00051         }
00052         function getScreenNames()
00053         {
00054                 return $this->screennames;
00055         }
00056 }       
00057 ?>

Generated on Wed Nov 19 20:29:35 2003 for James by doxygen 1.3.4