Detailed Description
SEPA (Single Euro Payments Area) validation class 
Definition at line 7 of file oxsepaibanvalidator.php.
Member Function Documentation
  
  
      
        
          | oxSepaIBANValidator::_getLengthForCountry  | 
          ( | 
            | 
          $sIBAN | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxSepaIBANValidator::_isAlgorithmValid  | 
          ( | 
            | 
          $sIBAN | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Checks if IBAN is valid according to checksum algorithm 
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
Definition at line 122 of file oxsepaibanvalidator.php.
 
 
  
  
      
        
          | oxSepaIBANValidator::_isCodeLengthKeyValid  | 
          ( | 
            | 
          $sCountryAbbr | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxSepaIBANValidator::_isCodeLengthValueValid  | 
          ( | 
            | 
          $iLength | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Checks if value is numeric and does not contain whitespaces
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
Definition at line 265 of file oxsepaibanvalidator.php.
 
 
  
  
      
        
          | oxSepaIBANValidator::_isEachCodeLengthValid  | 
          ( | 
            | 
          $aCodeLengths | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxSepaIBANValidator::_isIBANChecksumValid  | 
          ( | 
            | 
          $sIBAN | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Interpret the string as a decimal integer and compute the remainder of that number on division by 97. 
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
Definition at line 200 of file oxsepaibanvalidator.php.
 
 
  
  
      
        
          | oxSepaIBANValidator::_isLengthValid  | 
          ( | 
            | 
          $sIBAN | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Check if the total IBAN length is correct as per country. If not, the IBAN is invalid. 
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
Definition at line 90 of file oxsepaibanvalidator.php.
 
 
  
  
      
        
          | oxSepaIBANValidator::_isNotEmptyArray  | 
          ( | 
            | 
          $aCodeLengths | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxSepaIBANValidator::_moveInitialCharactersToEnd  | 
          ( | 
            | 
          $sIBAN | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Move the four initial characters to the end of the string. 
- Parameters
 - 
  
  
 
- Returns
 - string 
 
Definition at line 137 of file oxsepaibanvalidator.php.
 
 
  
  
      
        
          | oxSepaIBANValidator::_replaceLettersToNumbers  | 
          ( | 
            | 
          $sIBAN | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Replace each letter in the string with two digits, thereby expanding the string, where A = 10, B = 11, ..., Z = 35. 
- Parameters
 - 
  
  
 
- Returns
 - string 
 
Definition at line 154 of file oxsepaibanvalidator.php.
 
 
      
        
          | oxSepaIBANValidator::getCodeLengths  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | oxSepaIBANValidator::isValid  | 
          ( | 
            | 
          $sIBAN | ) | 
           | 
        
      
 
International bank account number validation
An IBAN is validated by converting it into an integer and performing a basic mod-97 operation (as described in ISO 7064) on it. If the IBAN is valid, the remainder equals 1.
- Parameters
 - 
  
    | string | $sIBAN | code to check | 
  
   
- Returns
 - bool 
 
Definition at line 23 of file oxsepaibanvalidator.php.
 
 
      
        
          | oxSepaIBANValidator::isValidCodeLengths  | 
          ( | 
            | 
          $aCodeLengths | ) | 
           | 
        
      
 
 
      
        
          | oxSepaIBANValidator::setCodeLengths  | 
          ( | 
            | 
          $aCodeLengths | ) | 
           | 
        
      
 
 
Member Data Documentation
  
  
      
        
          | oxSepaIBANValidator::$_aCodeLengths = array() | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | const oxSepaIBANValidator::IBAN_ALGORITHM_MOD_VALUE = 97 | 
        
      
 
 
The documentation for this class was generated from the following file: