setOptions($options); } } /** * Set options via a Zend_Config instance * * @param Zend_Config $config * @return Zend_Config_Writer */ public function setConfig(Zend_Config $config) { $this->_config = $config; return $this; } /** * Set options via an array * * @param array $options * @return Zend_Config_Writer */ public function setOptions(array $options) { foreach ($options as $key => $value) { if (in_array(strtolower($key), $this->_skipOptions)) { continue; } $method = 'set' . ucfirst($key); if (method_exists($this, $method)) { $this->$method($value); } } return $this; } /** * Write a Zend_Config object to it's target * * @return void */ abstract public function write(); }