コード例 #1
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);
		}		
	}
コード例 #2
0
 private function changeToGlobalSetting($settingName) {
 	if ($this->accountSettings->hasSetting($settingName)) {
 		$this->globalSettings->setSetting($settingName, $this->accountSettings->getSetting($settingName)); 
 		$this->accountSettings->removeSetting($settingName); 		
 	}
 }