Skip to content

Commit

Permalink
added United Arab Emirates (AE) (only in IBAN_Registry.txt, missing i…
Browse files Browse the repository at this point in the history
…n the .pdf version)

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@307356 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Hartmut Holzgraefe committed Jan 10, 2011
1 parent d55c3ae commit 2abd15b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Validate/Finance/IBAN.php
Expand Up @@ -80,6 +80,7 @@ function _getCountrycodeCountryname()
if (!isset($_iban_countrycode_countryname)) { if (!isset($_iban_countrycode_countryname)) {
$_iban_countrycode_countryname = array( $_iban_countrycode_countryname = array(
'AD' => 'Andorra', 'AD' => 'Andorra',
'AE' => 'United Arab Emirates',
'AL' => 'Albania', 'AL' => 'Albania',
'AT' => 'Austria', 'AT' => 'Austria',
'BA' => 'Bosnia and Herzegovina', 'BA' => 'Bosnia and Herzegovina',
Expand Down Expand Up @@ -146,6 +147,7 @@ function _getCountrycodeIBANLength()
if (!isset($_iban_countrycode_length)) { if (!isset($_iban_countrycode_length)) {
$_iban_countrycode_length = array( $_iban_countrycode_length = array(
'AD' => 24, 'AD' => 24,
'AE' => 23,
'AL' => 28, 'AL' => 28,
'AT' => 20, 'AT' => 20,
'BA' => 20, 'BA' => 20,
Expand Down Expand Up @@ -214,6 +216,7 @@ function _getCountrycodeBankcode()
$_iban_countrycode_bankcode = array( $_iban_countrycode_bankcode = array(
//AD: first 4 chars bankcode, last 4 chars branch //AD: first 4 chars bankcode, last 4 chars branch
'AD' => array('start' => 4, 'length' => 8), 'AD' => array('start' => 4, 'length' => 8),
'AE' => array('start' => 4, 'length' => 3),
//AL: first 3 chars bankcode, next 4 chars branch, one char checksum //AL: first 3 chars bankcode, next 4 chars branch, one char checksum
'AL' => array('start' => 4, 'length' => 8), 'AL' => array('start' => 4, 'length' => 8),
'AT' => array('start' => 4, 'length' => 5), 'AT' => array('start' => 4, 'length' => 5),
Expand Down Expand Up @@ -301,6 +304,7 @@ function _getCountrycodeBankaccount()
if (!isset($_iban_countrycode_bankaccount)) { if (!isset($_iban_countrycode_bankaccount)) {
$_iban_countrycode_bankaccount = array( $_iban_countrycode_bankaccount = array(
'AD' => array('start' => 12, 'length' => 12), 'AD' => array('start' => 12, 'length' => 12),
'AE' => array('start' => 7, 'length' => 23),
'AL' => array('start' => 12, 'length' => 16), 'AL' => array('start' => 12, 'length' => 16),
'AT' => array('start' => 9, 'length' => 11), 'AT' => array('start' => 9, 'length' => 11),
//BA: followed by 2 chars (checksum) //BA: followed by 2 chars (checksum)
Expand Down Expand Up @@ -383,6 +387,7 @@ function _getCountrycodeRegex()
if (!isset($_iban_countrycode_regex)) { if (!isset($_iban_countrycode_regex)) {
$_iban_countrycode_regex = array( $_iban_countrycode_regex = array(
'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/', 'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/',
'AE' => '/^AE[0-9]{2}[0-9]{3}[0-9]{16}$/',
'AL' => '/^AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}$/', 'AL' => '/^AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}$/',
'AT' => '/^AT[0-9]{2}[0-9]{5}[0-9]{11}$/', 'AT' => '/^AT[0-9]{2}[0-9]{5}[0-9]{11}$/',
'BA' => '/^BA[0-9]{2}[0-9]{6}[0-9]{10}$/', 'BA' => '/^BA[0-9]{2}[0-9]{6}[0-9]{10}$/',
Expand Down

0 comments on commit 2abd15b

Please sign in to comment.