 Collaboration diagram for oxSepaIBANValidator:
 Collaboration diagram for oxSepaIBANValidator:| Public Member Functions | |
| isValid ($sIBAN) | |
| isValidCodeLengths ($aCodeLengths) | |
| setCodeLengths ($aCodeLengths) | |
| getCodeLengths () | |
| Public Attributes | |
| const | IBAN_ALGORITHM_MOD_VALUE = 97 | 
| Protected Member Functions | |
| _isLengthValid ($sIBAN) | |
| _getLengthForCountry ($sIBAN) | |
| _isAlgorithmValid ($sIBAN) | |
| _moveInitialCharactersToEnd ($sIBAN) | |
| _replaceLettersToNumbers ($sIBAN) | |
| _isIBANChecksumValid ($sIBAN) | |
| _isNotEmptyArray ($aCodeLengths) | |
| _isEachCodeLengthValid ($aCodeLengths) | |
| _isCodeLengthKeyValid ($sCountryAbbr) | |
| _isCodeLengthValueValid ($iLength) | |
| Protected Attributes | |
| $_aCodeLengths = array() | |
SEPA (Single Euro Payments Area) validation class
Definition at line 7 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator._getLengthForCountry | ( | $ | sIBAN | ) |  [protected] | 
| oxSepaIBANValidator._isAlgorithmValid | ( | $ | sIBAN | ) |  [protected] | 
Checks if IBAN is valid according to checksum algorithm
| $sIBAN | 
Definition at line 122 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator._isCodeLengthKeyValid | ( | $ | sCountryAbbr | ) |  [protected] | 
Checks if country code is valid
| $sCountryAbbr | 
Definition at line 253 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator._isCodeLengthValueValid | ( | $ | iLength | ) |  [protected] | 
Checks if value is numeric and does not contain whitespaces
| $iLength | 
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.
| $sIBAN | 
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.
| $sIBAN | 
Definition at line 90 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator._isNotEmptyArray | ( | $ | aCodeLengths | ) |  [protected] | 
Checks if Code length is non empty array
| $aCodeLengths | 
Definition at line 218 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator._moveInitialCharactersToEnd | ( | $ | sIBAN | ) |  [protected] | 
Move the four initial characters to the end of the string.
| $sIBAN | 
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.
| $sIBAN | 
Definition at line 154 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator.getCodeLengths | ( | ) | 
Get IBAN length by country data
Definition at line 78 of file oxsepaibanvalidator.php.
| 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.
| string | $sIBAN code to check | 
Definition at line 23 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator.isValidCodeLengths | ( | $ | aCodeLengths | ) | 
Validation of IBAN registry
| array | $aCodeLengths | 
Definition at line 42 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator.setCodeLengths | ( | $ | aCodeLengths | ) | 
Set IBAN Registry
| array | $aCodeLengths | 
Definition at line 61 of file oxsepaibanvalidator.php.
| oxSepaIBANValidator.$_aCodeLengths = array()  [protected] | 
Definition at line 11 of file oxsepaibanvalidator.php.
| const oxSepaIBANValidator.IBAN_ALGORITHM_MOD_VALUE = 97 | 
Definition at line 9 of file oxsepaibanvalidator.php.
 1.7.1
 1.7.1