Пример #1
0
 /**
  * Creates a package archive and saves it to specified path
  * Package is compatible with the previous version of magento Connect Manager
  *
  * @param string $path
  * @return Mage_Connect_Package
  */
 protected function _savePackageV1x($path)
 {
     $fileName = $this->getReleaseFilename();
     $writer = new Mage_Connect_Package_Writer($this->getContents(), $path . $fileName);
     $writer->composePackageV1x($this->getContentsV1x())->addPackageXml($this->_getPackageXmlV1x())->archivePackage();
     return $this;
 }