コード例 #1
0
ファイル: Base.class.php プロジェクト: AmineCherrai/rostanvo
 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);
     }
 }
コード例 #2
0
	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);
		}		
	}
コード例 #3
0
 private function changeToGlobalSetting($settingName) {
 	if ($this->accountSettings->hasSetting($settingName)) {
 		$this->globalSettings->setSetting($settingName, $this->accountSettings->getSetting($settingName)); 
 		$this->accountSettings->removeSetting($settingName); 		
 	}
 }