PHP Class Cake\Localized\Validation\UaValidation

Inheritance: extends LocalizedValidation
Afficher le fichier Open project: cakephp/localized Class Usage Examples

Méthodes publiques

Méthode Description
idCard ( string $check ) : boolean Checks passport ID card. From 2016.
passport ( string $check ) : boolean Checks passport number from 1992 until 2016.
personId ( string $check ) : boolean Checks a country specific identification number.
phone ( string $check ) : boolean Checks phone number for Ukraine
postal ( string $check ) : boolean Checks a postal (zip) code for Ukraine

Method Details

idCard() public static méthode

Checks passport ID card. From 2016.
public static idCard ( string $check ) : boolean
$check string The value to check
Résultat boolean Success.

passport() public static méthode

Checks passport number from 1992 until 2016.
public static passport ( string $check ) : boolean
$check string The value to check
Résultat boolean Success.

personId() public static méthode

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

phone() public static méthode

Checks phone number for Ukraine
public static phone ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.

postal() public static méthode

Checks a postal (zip) code for Ukraine
public static postal ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.