/** * @param PEAR_Downloader */ function PEAR_Downloader_Package(&$downloader) { $this->_downloader =& $downloader; $this->_config =& $this->_downloader->config; $this->_registry =& $this->_config->getRegistry(); $options = $downloader->getOptions(); if (isset($options['packagingroot'])) { $this->_config->setInstallRoot($options['packagingroot']); $this->_installRegistry =& $this->_config->getRegistry(); $this->_config->setInstallRoot(false); } else { $this->_installRegistry =& $this->_registry; } $this->_valid = $this->_analyzed = false; }