PHP Class Cake\Localized\Validation\DeValidation

Inheritance: extends LocalizedValidation
ファイルを表示 Open project: cakephp/localized Class Usage Examples

Public Methods

Method Description
address1 ( string $check ) : boolean Checks an address (street and number) for Germany.
dob ( string $check ) : boolean Checks date of birth formal format for Germany (dd.mm.yyyy), afterwards checks it is a valid gregorian calendar date.
personId ( string $check ) : boolean Checks a country specific identification number.
phone ( string $check ) : boolean Checks a phone number for Germany.
postal ( string $check ) : boolean Checks a postal code for Germany.

Method Details

address1() public static method

That is what is called "Straße und Hausnummer", the first line of a german formal address block.
public static address1 ( string $check ) : boolean
$check string The value to check.
return boolean Success.

dob() public static method

Checks date of birth formal format for Germany (dd.mm.yyyy), afterwards checks it is a valid gregorian calendar date.
public static dob ( string $check ) : boolean
$check string the date of birth.
return boolean Success.

personId() public static method

Checks a country specific identification number.
public static personId ( string $check ) : boolean
$check string The value to check.
return boolean Success.

phone() public static method

Checks a phone number for Germany.
public static phone ( string $check ) : boolean
$check string The value to check.
return boolean Success.

postal() public static method

Checks a postal code for Germany.
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.