Пример #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;
 }
Пример #2
0
 /**
  * constructor
  * @access public
  * @param array $files
  * @param mixed $namePackage
  * @return void
  * @author Marius Strajeru <*****@*****.**>
  */
 public function __construct($files, $namePackage = '')
 {
     parent::__construct($files, $namePackage = '');
     $this->_pathPrefix = 'var' . DS . 'modulecreator' . DS;
 }