Exemple #1
0
 /**
  * Set data for Settings View
  * @param mixed $session Session object
  * @param Maged_View $view
  * @return null
  */
 public function setSettingsView($session, $view)
 {
     $auth = $this->_getAuth($session);
     if ($auth) {
         $view->set('auth_username', isset($auth[0]) ? $auth[0] : '');
         $view->set('auth_password', isset($auth[1]) ? $auth[1] : '');
     }
     $view->set('channel_protocol_fields', $view->template($this->get('root_channel') . '/auth.phtml'));
 }
Exemple #2
0
 /**
  * Set data for Settings View
  *
  * @param Mage_Connect_Config $config
  * @param Maged_View $view
  * @return null
  */
 public function setInstallView($config, $view)
 {
     $view->set('channel_logo', 'logo');
 }