_file = $file; } return $this; } public function getFile() { return $this->_file; } public function getGenerator() { if (is_null($this->_generator)) { $this->_generator = new Mage_Xml_Generator(); } return $this->_generator; } /** * @param array $content */ public function save($content) { $xmlContent = $this->getGenerator() ->arrayToXml($content) ->save($this->getFile()); return $this; } }