PHP Class Cake\Localized\Validation\UaValidation

Inheritance: extends LocalizedValidation
Show file Open project: cakephp/localized Class Usage Examples

Public Methods

Method 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 method

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

passport() public static method

Checks passport number from 1992 until 2016.
public static passport ( string $check ) : boolean
$check string The value to check
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 phone number for Ukraine
public static phone ( string $check ) : boolean
$check string The value to check.
return boolean Success.

postal() public static method

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