Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_Iban Class Reference

Inheritance diagram for Zend_Validate_Iban:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 __construct ($locale=null)
 getLocale ()
 setLocale ($locale=null)
 isValid ($value)

Data Fields

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

Protected Attributes

 $_messageTemplates
 $_locale
 $_ibanregex

Detailed Description

Definition at line 35 of file Iban.php.


Constructor & Destructor Documentation

__construct ( locale = null )

Sets validator options

Parameters:
string | Zend_Locale$localeOPTIONAL
Returns:
void

Definition at line 112 of file Iban.php.


Member Function Documentation

getLocale (  )

Returns the locale option

Returns:
string|Zend_Locale|null

Definition at line 124 of file Iban.php.

isValid ( value )

Defined by Zend_Validate_Interface

Returns true if $value is a valid IBAN

Parameters:
string$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 156 of file Iban.php.

setLocale ( locale = null )

Sets the locale option

Parameters:
string | Zend_Locale$locale
Returns:
Zend_Validate_Date provides a fluent interface

Definition at line 135 of file Iban.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::NOTSUPPORTED => "'%value%' does not have IBAN",
        self::FALSEFORMAT  => "'%value%' has a false format",
        self::CHECKFAILED  => "'%value%' has failed the IBAN check"
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 46 of file Iban.php.


The documentation for this class was generated from the following file: