Class Zend_Validate_Iban

Description

Validates IBAN Numbers (International Bank Account Numbers)

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Validate/Iban.php (line 35)

Zend_Validate_Abstract
   |
   --Zend_Validate_Iban
Class Constant Summary
 CHECKFAILED = 'ibanCheckFailed'
 FALSEFORMAT = 'ibanFalseFormat'
 NOTSUPPORTED = 'ibanNotSupported'
Variable Summary
Method Summary
 void __construct ([string|Zend_Config|Zend_Locale $locale = null])
 string|Zend_Locale|null getLocale ()
 boolean isValid (string $value)
 Zend_Validate_Date setLocale ([string|Zend_Locale $locale = null])
Variables
array $_ibanregex = array(
'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/',
'AT' => '/^AT[0-9]{2}[0-9]{5}[0-9]{11}$/',
'BA' => '/^BA[0-9]{2}[0-9]{6}[0-9]{10}$/',
'BE' => '/^BE[0-9]{2}[0-9]{3}[0-9]{9}$/',
'BG' => '/^BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}$/',
'CH' => '/^CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}$/',
'CS' => '/^CS[0-9]{2}[0-9]{3}[0-9]{15}$/',
'CY' => '/^CY[0-9]{2}[0-9]{8}[A-Z0-9]{16}$/',
'CZ' => '/^CZ[0-9]{2}[0-9]{4}[0-9]{16}$/',
'DE' => '/^DE[0-9]{2}[0-9]{8}[0-9]{10}$/',
'DK' => '/^DK[0-9]{2}[0-9]{4}[0-9]{10}$/',
'EE' => '/^EE[0-9]{2}[0-9]{4}[0-9]{12}$/',
'ES' => '/^ES[0-9]{2}[0-9]{8}[0-9]{12}$/',
'FR' => '/^FR[0-9]{2}[0-9]{10}[A-Z0-9]{13}$/',
'FI' => '/^FI[0-9]{2}[0-9]{6}[0-9]{8}$/',
'GB' => '/^GB[0-9]{2}[A-Z]{4}[0-9]{14}$/',
'GI' => '/^GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}$/',
'GR' => '/^GR[0-9]{2}[0-9]{7}[A-Z0-9]{16}$/',
'HR' => '/^HR[0-9]{2}[0-9]{7}[0-9]{10}$/',
'HU' => '/^HU[0-9]{2}[0-9]{7}[0-9]{1}[0-9]{15}[0-9]{1}$/',
'IE' => '/^IE[0-9]{2}[A-Z0-9]{4}[0-9]{6}[0-9]{8}$/',
'IS' => '/^IS[0-9]{2}[0-9]{4}[0-9]{18}$/',
'IT' => '/^IT[0-9]{2}[A-Z]{1}[0-9]{10}[A-Z0-9]{12}$/',
'LI' => '/^LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}$/',
'LU' => '/^LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}$/',
'LT' => '/^LT[0-9]{2}[0-9]{5}[0-9]{11}$/',
'LV' => '/^LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}$/',
'MK' => '/^MK[0-9]{2}[A-Z]{3}[A-Z0-9]{10}[0-9]{2}$/',
'MT' => '/^MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}$/',
'NL' => '/^NL[0-9]{2}[A-Z]{4}[0-9]{10}$/',
'NO' => '/^NO[0-9]{2}[0-9]{4}[0-9]{7}$/',
'PL' => '/^PL[0-9]{2}[0-9]{8}[0-9]{16}$/',
'PT' => '/^PT[0-9]{2}[0-9]{8}[0-9]{13}$/',
'RO' => '/^RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}$/',
'SE' => '/^SE[0-9]{2}[0-9]{3}[0-9]{17}$/',
'SI' => '/^SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}$/',
'SK' => '/^SK[0-9]{2}[0-9]{4}[0-9]{16}$/',
'TN' => '/^TN[0-9]{2}[0-9]{5}[0-9]{15}$/',
'TR' => '/^TR[0-9]{2}[0-9]{5}[A-Z0-9]{17}$/'
)
(line 64)

IBAN regexes by region

  • access: protected
string|Zend_Locale|null $_locale (line 57)

Optional locale

  • access: protected
array $_messageTemplates = array(
self::NOTSUPPORTED => "Unknown country within the IBAN '%value%'",
self::FALSEFORMAT => "'%value%' has a false IBAN format",
self::CHECKFAILED => "'%value%' has failed the IBAN check",
)
(line 46)

Validation failure message template definitions

  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates
Validation failure message template definitions

Inherited Variables

Inherited from Zend_Validate_Abstract

Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_messageVariables
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
Methods
Constructor __construct (line 112)

Sets validator options

  • access: public
void __construct ([string|Zend_Config|Zend_Locale $locale = null])
getLocale (line 143)

Returns the locale option

  • access: public
string|Zend_Locale|null getLocale ()
isValid (line 177)

Defined by Zend_Validate_Interface

Returns true if $value is a valid IBAN

  • access: public
boolean isValid (string $value)
  • string $value
setLocale (line 154)

Sets the locale option

  • return: provides a fluent interface
  • access: public
Zend_Validate_Date setLocale ([string|Zend_Locale $locale = null])

Inherited Methods

Inherited From Zend_Validate_Abstract

 Zend_Validate_Abstract::getDefaultTranslator()
 Zend_Validate_Abstract::getErrors()
 Zend_Validate_Abstract::getMessageLength()
 Zend_Validate_Abstract::getMessages()
 Zend_Validate_Abstract::getMessageTemplates()
 Zend_Validate_Abstract::getMessageVariables()
 Zend_Validate_Abstract::getObscureValue()
 Zend_Validate_Abstract::getTranslator()
 Zend_Validate_Abstract::hasDefaultTranslator()
 Zend_Validate_Abstract::hasTranslator()
 Zend_Validate_Abstract::setDefaultTranslator()
 Zend_Validate_Abstract::setDisableTranslator()
 Zend_Validate_Abstract::setMessage()
 Zend_Validate_Abstract::setMessageLength()
 Zend_Validate_Abstract::setMessages()
 Zend_Validate_Abstract::setObscureValue()
 Zend_Validate_Abstract::setTranslator()
 Zend_Validate_Abstract::translatorIsDisabled()
 Zend_Validate_Abstract::_createMessage()
 Zend_Validate_Abstract::_error()
 Zend_Validate_Abstract::_setValue()
 Zend_Validate_Abstract::__get()
Class Constants
CHECKFAILED = 'ibanCheckFailed' (line 39)
FALSEFORMAT = 'ibanFalseFormat' (line 38)
NOTSUPPORTED = 'ibanNotSupported' (line 37)

Documentation generated on Mon, 21 Jun 2010 15:27:54 -0400 by phpDocumentor 1.4.3