コード例 #1
0
ファイル: Professional.php プロジェクト: Airmal/Magento-Em
 /**
  * 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'));
 }
コード例 #2
0
ファイル: Community.php プロジェクト: quyip8818/Mag
 /**
  * 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');
 }