Beispiel #1
0
 public function __construct(Engine_Package_Manager $manager, Engine_Package_Manifest $targetPackage, $currentPackage = null, $options = null)
 {
     $this->_manager = $manager;
     if (is_array($currentPackage)) {
         $options = $currentPackage;
     }
     if (!$currentPackage instanceof Engine_Package_Manifest) {
         $currentPackage = null;
     }
     if (is_array($options)) {
         $this->setOptions($options);
     }
     $this->_setPackages($targetPackage, $currentPackage);
     if (null === $this->_destinationPath) {
         /* if( null !== $this->_currentPackage ) {
              $this->_destinationPath = $this->_currentPackage->getSourcePath();
            } else */
         if (defined('APPLICATION_PATH')) {
             $this->_destinationPath = APPLICATION_PATH;
         }
     }
     if (null === $this->_sourcePath) {
         $this->_sourcePath = $this->_targetPackage->getSourcePath();
     }
 }