コード例 #1
0
 /**
  * Constructor for starting an export
  *
  * @param string
  * @param string
  * @access public
  * @since 10/31/05
  * @static
  */
 static function withCompression($compression, $class = 'XMLRepositoryExporter')
 {
     return parent::withCompression($compression, $class);
 }
コード例 #2
0
ファイル: export.act.php プロジェクト: adamfranco/concerto
 /**
  * Save our results. Tearing down and unsetting the Wizard is handled by
  * in {@link runWizard()} and does not need to be implemented here.
  * 
  * @param string $cacheName
  * @return boolean TRUE if save was successful and tear-down/cleanup of the
  *		Wizard should ensue.
  * @access public
  * @since 4/28/05
  */
 function saveWizard($cacheName)
 {
     $wizard = $this->getWizard($cacheName);
     $properties = $wizard->getAllValues();
     // instantiate new exporter
     $exporter = XMLExporter::withCompression($properties['compression']);
     // export all of concerto to this location
     $dir = $exporter->exportAll();
     $this->_archiveFile = $exporter->compressWithStatus();
     $this->_archiveFileKey = str_replace('.', '', basename($this->_archiveFile, $properties['compression']));
     // 		printpre($this->_archiveFile);
     // For security, only files listed in the following array will be allowed
     // to be downloaded.
     if (!isset($_SESSION['EXPORTED_FILES'])) {
         $_SESSION['EXPORTED_FILES'] = array();
     }
     $_SESSION['EXPORTED_FILES'][$this->_archiveFileKey] = array('file' => $this->_archiveFile, 'name' => basename($properties['filepath'] . $properties['compression']), 'mime' => 'application/x-gzip');
     return TRUE;
 }
コード例 #3
0
 /**
  * Constructor for starting an export
  *
  * @param string
  * @param string
  * @access public
  * @since 10/31/05
  * @static
  */
 static function withCompression($compression, $class = 'XMLAssetExporter')
 {
     return parent::withCompression($compression, $class);
 }