/** * Retrieve object of config * * @return Mage_Connect_Config */ public function config() { if (!$this->_config) { $this->_config = $this->model('connect', true)->connect()->getConfig(); if (!$this->_config->isLoaded()) { $this->session()->addMessage('error', "Settings has not been loaded. Used default settings"); if ($this->_config->getError()) { $this->session()->addMessage('error', $this->_config->getError()); } } } return $this->_config; }