Example #1
0
 public function getTax(Shopware_StoreApi_Models_Auth $authModel)
 {
     if (!$authModel instanceof Shopware_StoreApi_Models_Auth) {
         throw new Enlight_Exception('The parameter authModel is not an instance of the class Shopware_StoreApi_Models_Auth');
     }
     return $this->gateway->getTax($authModel->getShopwareId(), $authModel->getToken());
 }
Example #2
0
 public function isTokenValid(Shopware_StoreApi_Models_Auth $authModel)
 {
     if (!$authModel instanceof Shopware_StoreApi_Models_Auth) {
         return false;
     }
     $array = $this->gateway->isTokenValid($authModel->getShopwareId(), $authModel->getToken());
     if ($array['authorized'] == true) {
         return true;
     } else {
         return false;
     }
 }