コード例 #1
0
ファイル: Apikey.php プロジェクト: BrenoHall/magento
 /**
  * @return Mage_Core_Model_Abstract|void
  */
 public function save()
 {
     $api_key = $this->getValue();
     $responseJson = $this->testQuote($api_key);
     if (!isset($responseJson->status)) {
         $helper = Mage::helper('intelipost');
         // Mage::getSingleton('core/session')->addWarning($helper->__('Invalid ApiUrl/ApiKey combination'));
         Mage::throwException($helper->__('Invalid ApiUrl/ApiKey combination'));
     }
     parent::save();
 }
コード例 #2
0
ファイル: Useraccount.php プロジェクト: BrenoHall/magento
 public function save()
 {
     $useraccount = $this->getValue();
     parent::save();
 }
コード例 #3
0
ファイル: Password.php プロジェクト: BrenoHall/magento
 public function save()
 {
     $password = $this->getValue();
     parent::save();
 }
コード例 #4
0
ファイル: Token.php プロジェクト: BrenoHall/magento
 public function save()
 {
     $token = $this->getValue();
     parent::save();
 }
コード例 #5
0
ファイル: Apiurl.php プロジェクト: BrenoHall/magento
 public function save()
 {
     $api_url = $this->getValue();
     parent::save();
 }