Пример #1
0
 /**
  * Creates a package archive and saves it to specified path
  *
  * @param string $path
  * @return Mage_Connect_Package
  */
 protected function _savePackage($path)
 {
     $fileName = $this->getReleaseFilename();
     if (is_null($this->_writer)) {
         $this->_writer = new Mage_Connect_Package_Writer($this->getContents(), $path . $fileName);
     }
     $this->_writer->composePackage()->addPackageXml($this->getPackageXml())->archivePackage();
     return $this;
 }