protected static function mergeTable($hierarchyTypeId)
 {
     $mcfg = new baseXmlConfig(SYS_KERNEL_PATH . "subsystems/manifest/manifests/MergeContentTable.xml");
     $mcfg->addParam('hierarchy-type-id', $hierarchyTypeId);
     $mf = new manifest($mcfg);
     $manifest->hibernationsCountLeft = -1;
     $mf->setCallback(new jsonManifestCallback());
     $mf->execute();
 }
示例#2
0
 public function execute()
 {
     $v20ab7bf1bf8bec34f6ba8d1261e6e4b9 = $this->getParam('manifest');
     $va4ee36bedf9d7b1bde773dd458368213 = new ManifestConfig($v20ab7bf1bf8bec34f6ba8d1261e6e4b9);
     $va4ee36bedf9d7b1bde773dd458368213->read();
     $vb958eea2a9ba706708c9a2baaeb760b1 = new manifest($va4ee36bedf9d7b1bde773dd458368213);
     if ($this->callback instanceof iManifestCallback) {
         $vb958eea2a9ba706708c9a2baaeb760b1->setCallback($this->callback);
     }
     $vb958eea2a9ba706708c9a2baaeb760b1->execute();
     $this->subManifest = $vb958eea2a9ba706708c9a2baaeb760b1;
 }
示例#3
0
 /**
  * TODO PHPDoc
  * Enter description here ...
  */
 public function restoreSnapshot()
 {
     $buffer = outputBuffer::current();
     $buffer->contentType('text/javascript');
     $buffer->charset('utf-8');
     $buffer->clear();
     $buffer->option('comression', false);
     $location = $this->pre_lang . '/admin/backup/backup_copies/';
     if (defined("CURRENT_VERSION_LINE") && false) {
         if (is_demo()) {
             $err = getLabel('error-disabled-in-demo');
             $buffer->push("alert('{$err}');window.location = '{$location}';");
             $buffer->end();
         }
     }
     /*			if($res = manifest::unhibernate('RestoreSystemBackup')) {
     				echo $res;
     			} else {*/
     $mcfg = new baseXmlConfig(SYS_KERNEL_PATH . "subsystems/manifest/manifests/RestoreSystemBackup.xml");
     $manifest = new manifest($mcfg);
     $manifest->hibernationsCountLeft = -1;
     $manifest->addParam('external-archive-filepath', getRequest('filename'));
     $manifest->setCallback(new jsonManifestCallback());
     $manifest->execute();
     //}
     echo '';
     $buffer->push("\nwindow.location = '{$location}';\n");
     $buffer->end();
     exit;
 }