/** * Save the new configuration * * This method saves the newly updated configuration. Please note * that at it's basic stage, the config files have a <config> root * node, however after saving using the Zend_Config_Writer_Xml, the * root node becomes <zend-config>. * * Don't worry about it, the parser won't see a difference. * * @throws Zend_Exception * @uses Zend_Config_Writer_Xml * @return bool True of false whether the saving of the file worked or not. */ protected function save() { $helper = new Lupin_Config_Helper_XmlArray(); return $helper->write(array('config' => $this->config, 'filename' => $this->configFile, 'topLevelName' => $this->configName)); }
/** * Save the new configuration * * This method saves the newly updated configuration. Please note * that at it's basic stage, the config files have a <config> root * node, however after saving using the Zend_Config_Writer_Xml, the * root node becomes <zend-config>. * * Don't worry about it, the parser won't see a difference. * * @throws Zend_Exception * @uses Zend_Config_Writer_Xml * @return bool True of false whether the saving of the file worked or not. */ protected function save() { $this->configIsWriteable(); $helper = new Lupin_Config_Helper_XmlArray(); Frapi_Internal::deleteCached('configFile-' . $this->configName); return $helper->write( array( 'config' => $this->config, 'filename' => $this->configFile, 'topLevelName' => $this->configName, ) ); }