コード例 #1
0
ファイル: ziper.php プロジェクト: cuongnd/etravelservice
 /**
  * Create the Joomla! manifest.
  *
  * @throws EcrExceptionZiper
  * @return EcrProjectZiper
  */
 private function createManifest()
 {
     $this->logger->log('Starting manifest');
     $manifest = new EcrProjectManifest();
     $this->project->basepath = $this->temp_dir;
     $this->project->creationDate = date('d-M-Y');
     $this->project->isNew = false;
     if (false == $manifest->create($this->project)) {
         throw new EcrExceptionZiper(__METHOD__ . ' - ' . implode("\n", $manifest->getErrors()));
     }
     $this->logger->logFileWrite('manifest.xml', $this->project->basepath . DS . 'manifest.xml', $manifest->formatXML());
     return $this;
 }
コード例 #2
0
ファイル: builder.php プロジェクト: cuongnd/etravelservice
 /**
  * Create the Joomla! manifest.
  *
  * @throws EcrExceptionBuilder
  * @return EcrProjectBuilder
  */
 private function createJoomlaManifest()
 {
     $manifest = new EcrProjectManifest();
     $this->project->isNew = true;
     $this->project->basepath = $this->buildDir;
     $this->project->creationDate = date('d-M-Y');
     if ($manifest->create($this->project)) {
         $this->logger->logFileWrite('', $this->buildDir . DS . 'manifest.xml', $manifest->formatXML());
     } else {
         throw new EcrExceptionBuilder('Error creating manifest file: ' . implode("\n", $manifest->getErrors()));
     }
     return $this;
 }