コード例 #1
0
ファイル: mage.php プロジェクト: hirentricore/devmagento
 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;
 }
コード例 #2
0
ファイル: mage.php プロジェクト: jpbender/mage_virtual
 public function getSingleConfig()
 {
     if (!$this->_sconfig) {
         $this->_sconfig = new Mage_Connect_Singleconfig("cache.cfg");
     }
     Mage_Connect_Command::setSconfig($this->_sconfig);
     return $this->_sconfig;
 }
コード例 #3
0
ファイル: Connect.php プロジェクト: jpbender/mage_virtual
 /**
  * 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;
 }
コード例 #4
0
 /**
  * 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;
 }