8 # ----- PUBLIC INTERFACE -------------------------------------------------
93 "Name" => $this->Name,
94 "Version" => $this->Version,
95 "Description" => $this->Description,
96 "Author" => $this->Author,
98 "Email" => $this->
Email,
99 "EnabledByDefault" => $this->EnabledByDefault,
100 "Requires" => $this->Requires,
101 "CfgSetup" => $this->CfgSetup,
102 "CfgPage" => $this->CfgPage,
103 "Instructions" => $this->Instructions,
116 if (func_num_args() > 1)
118 if ($NewValue === NULL)
120 unset($this->Cfg[$SettingName]);
124 $this->Cfg[$SettingName] = $NewValue;
126 if (is_callable($this->CfgSaveCallback))
128 call_user_func_array($this->CfgSaveCallback,
129 array(get_class($this), $this->Cfg));
132 return isset($this->Cfg[$SettingName]) ? $this->Cfg[$SettingName] : NULL;
136 # ----- PROTECTED INTERFACE ----------------------------------------------
181 # ----- PRIVATE INTERFACE ------------------------------------------------
186 private $CfgSaveCallback;
193 final public function SetAllCfg($NewValues)
195 $this->Cfg = $NewValues;
205 final public function SetCfgSaveCallback($Callback)
207 $this->CfgSaveCallback = $Callback;