public function getSingleConfig() { if (!$this->_sconfig) { $this->_sconfig = new Mage_Connect_Singleconfig($this->getConfig()->magento_root . DS . $this->getConfig()->downloader_path . DS . Mage_Connect_Singleconfig::DEFAULT_SCONFIG_FILENAME); } Mage_Connect_Command::setSconfig($this->_sconfig); return $this->_sconfig; }
public function getSingleConfig() { if (!$this->_sconfig) { $this->_sconfig = new Mage_Connect_Singleconfig("cache.cfg"); } Mage_Connect_Command::setSconfig($this->_sconfig); return $this->_sconfig; }
/** * Retrieve object of single config and set it to Mage_Connect_Command * * @param bool $reload * @return Mage_Connect_Singleconfig */ public function getSingleConfig($reload = false) { if (!$this->_sconfig || $reload) { $this->_sconfig = new Mage_Connect_Singleconfig($this->getConfig()->magento_root . DIRECTORY_SEPARATOR . $this->getConfig()->downloader_path . DIRECTORY_SEPARATOR . Mage_Connect_Singleconfig::DEFAULT_SCONFIG_FILENAME); } Mage_Connect_Command::setSconfig($this->_sconfig); return $this->_sconfig; }
/** * Retrieve object of single config and set it to Mage_Connect_Command * * @param bool $reload * @return Mage_Connect_Singleconfig */ public function getSingleConfig($reload = false) { if (!$this->_sconfig || $reload) { $this->_sconfig = new Mage_Connect_Singleconfig(Mage::getModuleDir('etc', 'Hackathon_MageTrashApp') . DIRECTORY_SEPARATOR . self::DEFAULT_SCONFIG_FILENAME); } Mage_Connect_Command::setSconfig($this->_sconfig); return $this->_sconfig; }