Detailed Description
Online VAT id checker class. 
Definition at line 6 of file oxonlinevatidcheck.php.
Constructor & Destructor Documentation
      
        
          | oxOnlineVatIdCheck::__construct  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Member Function Documentation
  
  
      
        
          | oxOnlineVatIdCheck::_checkOnline  | 
          ( | 
            | 
          $oCheckVat | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Checks online if USt.ID number is valid. Returns true on success. On error sets error value.
- Parameters
 - 
  
    | object | $oCheckVat | vat object | 
  
   
- Returns
 - bool 
 
Definition at line 202 of file oxonlinevatidcheck.php.
 
 
  
  
      
        
          | oxOnlineVatIdCheck::_getError  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxOnlineVatIdCheck::_isServiceAvailable  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Checks if VAT check can be performed:
- if SoapClient class exists;
 
- if service returns any output;
 
- if output, returned by service, is valid.
 
- Returns
 - bool 
 
Definition at line 165 of file oxonlinevatidcheck.php.
 
 
  
  
      
        
          | oxOnlineVatIdCheck::_parseError  | 
          ( | 
            | 
          $sErrorMsg | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | oxOnlineVatIdCheck::catchWarning  | 
          ( | 
            | 
          $iErrNo,  | 
        
        
           | 
           | 
            | 
          $sErrStr,  | 
        
        
           | 
           | 
            | 
          $sErrFile,  | 
        
        
           | 
           | 
            | 
          $iErrLine  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Catches soap warning which is usually thrown due to service problems. Return true and allows to continue process
- Parameters
 - 
  
    | int | $iErrNo | error type number  | 
    | string | $sErrStr | error message  | 
    | string | $sErrFile | error file  | 
    | int | $iErrLine | error line | 
  
   
- Returns
 - bool 
 
Definition at line 144 of file oxonlinevatidcheck.php.
 
 
      
        
          | oxOnlineVatIdCheck::checkUid  | 
          ( | 
            | 
          $sCompVatId | ) | 
           | 
        
      
 
Checks if USt.ID number is valid. Returns true on success
- Parameters
 - 
  
    | string | $sCompVatId | vat id that should be checked | 
  
   
- Deprecated:
 - since v5.2 (2014-07-28); use validate method
 
- Exceptions
 - 
  
  
 
- Returns
 - bool 
 
Definition at line 107 of file oxonlinevatidcheck.php.
 
 
      
        
          | oxOnlineVatIdCheck::getWsdlUrl  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | oxOnlineVatIdCheck::isDisabled  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Member Data Documentation
  
  
      
        
          | oxOnlineVatIdCheck::$_aVatCheckCache = array() | 
         
       
   | 
  
staticprotected   | 
  
 
 
  
  
      
        
          | oxOnlineVatIdCheck::$_blServiceIsOn = null | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxOnlineVatIdCheck::$_sWsdl = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl' | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | const oxOnlineVatIdCheck::BUSY_RETRY_CNT = 1 | 
        
      
 
 
      
        
          | const oxOnlineVatIdCheck::BUSY_RETRY_WAITUSEC = 500000 | 
        
      
 
 
The documentation for this class was generated from the following file: