Beispiel #1
0
 /**
  * Build archive for current format
  */
 protected function _buildArchive()
 {
     // compress as Tar archive
     parent::_buildArchive();
     if ($this->_options['inmemory']) {
         $this->_setArchiveData(gzencode($this->_archive, $this->_options['level']));
     } else {
         $this->_setArchiveData(stream_get_contents($this->_archive));
     }
 }
Beispiel #2
0
 /**
  * Build archive for current format
  */
 protected function _buildArchive()
 {
     // compress as Tar archive
     parent::_buildArchive();
     $this->_archive = bzcompress($this->_archive, $this->_options['level']);
 }