PHP Class Cake\Localized\Validation\RuValidation

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

Public Methods

Method Description
address1 ( string $check ) : boolean Checks an adress (street) for Russia.
passport ( string $check ) : boolean Checks passport number
personId ( string $check ) : boolean Checks a country specific identification number.
phone ( string $check ) : boolean Checks phone number for Russia
postal ( string $check ) : boolean Checks a postal code for Russia
snils ( string $check ) : boolean Check SNILS (СНИЛС)
vatin ( string $check ) : boolean VAT identification number (Tax Identification Number, ИНН)

Method Details

address1() public static method

Checks an adress (street) for Russia.
public static address1 ( string $check ) : boolean
$check string The value to check.
return boolean Success.

passport() public static method

Checks passport number
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 Russia
public static phone ( string $check ) : boolean
$check string The value to check.
return boolean Success.

postal() public static method

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

snils() public static method

Check SNILS (СНИЛС)
public static snils ( string $check ) : boolean
$check string The value to check.
return boolean Success.

vatin() public static method

VAT identification number (Tax Identification Number, ИНН)
public static vatin ( string $check ) : boolean
$check string The value to check.
return boolean Success.