/** * A private method that writes out the new OpenX settings configuration * file after migrating over the admin account's preferences that have * now been changed into settings. * * @access private * @return boolean True if the config file is successfully written, * otherwise, false. */ function _writeSettings() { $oConfiguration = new OA_Upgrade_Config(); foreach ($this->aConfMap as $section => $aPairs) { foreach ($aPairs as $key => $value) { $value = $this->aConfNew[$section][$key]; $oConfiguration->setValue($section, $key, $value); } } return $oConfiguration->writeConfig(); }