protected function loadFileSetting($name, Gpf_Io_File $file) { try { $this->cache[$name] = $this->file->getSetting($name, $file); } catch (Gpf_Settings_UnknownSettingException $e) { $this->cache[$name] = $this->defines->getDefaultValue($name); } }
public function execute() { $accountSettings = new Gpf_File_Settings(Gpf_Db_Account::DEFAULT_ACCOUNT_ID); $globalSettings = new Gpf_File_Settings(); $globalSettings->getAll(); $settingName = Gpf_Settings_Gpf::BENCHMARK_ACTIVE; if ($accountSettings->hasSetting($settingName)) { $globalSettings->setSetting($settingName, $accountSettings->getSetting($settingName)); $accountSettings->removeSetting($settingName); } }
private function changeToGlobalSetting($settingName) { if ($this->accountSettings->hasSetting($settingName)) { $this->globalSettings->setSetting($settingName, $this->accountSettings->getSetting($settingName)); $this->accountSettings->removeSetting($settingName); } }