API Documentation

Zend/Validate/Iban.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Validate  
Version
$Id: Iban.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Validate_Iban

Package: Zend\Validate

Validates IBAN Numbers (International Bank Account Numbers)

Parent(s)
\Zend_Validate_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  NOTSUPPORTED = 'ibanNotSupported'
Constant  FALSEFORMAT = 'ibanFalseFormat'
Constant  CHECKFAILED = 'ibanCheckFailed'

Properties

Propertyprotectedarray  $_ibanregex= 'array( 'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/''

IBAN regexes by region

Default valuearray( 'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/'Details
Type
array
Propertyprotectedstring|\Zend_Locale|null  $_locale= ''

Optional locale

Details
Type
string\Zend_Localenull
Propertyprotectedarray  $_messageTemplates= 'array( self::NOTSUPPORTED => "Unknown country within the IBAN '%value%'"'

Validation failure message template definitions

Default valuearray( self::NOTSUPPORTED => "Unknown country within the IBAN '%value%'"Details
Type
array

Methods

methodpublic__construct( string|\Zend_Config|\Zend_Locale $locale = null ) : void

Sets validator options

Parameters
Name Type Description
$locale string|\Zend_Config|\Zend_Locale

OPTIONAL

methodpublicgetLocale( ) : string|\Zend_Locale|null

Returns the locale option

Returns
Type Description
string|\Zend_Locale|null
methodpublicisValid( string $value ) : boolean

Defined by Zend_Validate_Interface

Returns true if $value is a valid IBAN

Parameters
Name Type Description
$value string
Returns
Type Description
boolean
methodpublicsetLocale( string|\Zend_Locale $locale = null ) : \Zend_Validate_Date

Sets the locale option

Parameters
Name Type Description
$locale string|\Zend_Locale
Returns
Type Description
\Zend_Validate_Date provides a fluent interface
Documentation was generated by DocBlox 0.15.1.