/** * Create the XML archive * * @access private * @return void */ private function _create() { $this->_xml->newXMLDocument(); $this->_xml->addElement('xmlarchive', '', array('generator' => 'IPS_KERNEL', 'created' => time())); $this->_xml->addElement('fileset', 'xmlarchive'); foreach ($this->_fileArray as $f) { $f['content'] = chunk_split(base64_encode($f['content'])); $this->_xml->addElementAsRecord('fileset', 'file', $f); } }
/** * Create the XML archive * * @return @e void */ protected function _create() { $this->_xml->newXMLDocument(); $this->_xml->addElement('xmlarchive', '', (array) $this->_defaultRootValues); $this->_xml->addElement('fileset', 'xmlarchive'); foreach ($this->_fileArray as $f) { $f['content'] = chunk_split(base64_encode($f['content'])); $this->_xml->addElementAsRecord('fileset', 'file', $f); } }