00001 <?php
00007 include_once("core/modules/moduleinformation/IModuleInfoConfig.class.php");
00008 include_once("core/modules/moduleinformation/backends/ModuleInfoIncConfigOption.class.php");
00009
00014 class ModuleInfoIncConfig extends IModuleInfoConfig
00015 {
00016
00017 var $options;
00018
00019
00020 var $conf;
00021
00022
00023 function ModuleInfoIncConfig($conf)
00024 {
00025 $this->conf = $conf;
00026 $this->_ProcessOptions();
00027 }
00028
00029 function _ProcessOptions()
00030 {
00031 if (count($this->conf["Options"]) > 0)
00032 {
00033 foreach($this->conf["Options"] as $option)
00034 $this->options[] = new ModuleInfoIncConfigOption($option);
00035 }
00036 }
00037
00038 function GetName()
00039 {
00040 return $this->conf["key"];
00041 }
00042
00043 function GetType()
00044 {
00045 return $this->conf["Type"];
00046 }
00047
00048 function GetLevel()
00049 {
00050 return $this->conf["Level"];
00051 }
00052
00053 function GetScreenNames()
00054 {
00055 return array($this->conf["ScreenName"]);
00056 }
00057
00058 function GetDescriptions()
00059 {
00060 return array($this->conf["Description"]);
00061 }
00062
00063 function HasDefaultValue()
00064 {
00065 return isset($this->conf["InitialValue"]);
00066 }
00067
00068 function GetDefaultValue()
00069 {
00070 return $this->conf["InitialValue"];
00071 }
00072
00073 function GetOptions()
00074 {
00075 return $this->options;
00076 }
00077 }
00078 ?>