示例#1
0
 public function execute() {
     $settingsFile = new Gpf_File_Settings();
     if(!$settingsFile->hasSetting(Pap_Settings::P3P_POLICY_COMPACT)) {
         $settingsFile->setSetting(Pap_Settings::P3P_POLICY_COMPACT, Gpf_Settings::get(Pap_Settings::P3P_POLICY_COMPACT));
     }
     if(!$settingsFile->hasSetting(Pap_Settings::URL_TO_P3P)) {
         $settingsFile->setSetting(Pap_Settings::URL_TO_P3P, Gpf_Settings::get(Pap_Settings::URL_TO_P3P));
     }
 }
示例#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); 		
 	}
 }