PHP Class Cake\Localized\Validation\PlValidation

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

Public Methods

Method Description
personId ( string $check ) : boolean Checks a social security number (NIP) for Poland.
pesel ( string $check ) : boolean Checks PESEL Universal Electronic System for Registration of the Population in Poland
phone ( string $check ) : boolean Checks a phone number.
postal ( string $check ) : boolean Checks a postal code for Poland.
regon ( string $check ) : boolean Checks REGON National Business Registry Number in Poland

Method Details

personId() public static method

Checks a social security number (NIP) for Poland.
public static personId ( string $check ) : boolean
$check string Value to check
return boolean Success.

pesel() public static method

Checks PESEL Universal Electronic System for Registration of the Population in Poland
public static pesel ( string $check ) : boolean
$check string Value to check
return boolean Success.

phone() public static method

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

postal() public static method

Checks a postal code for Poland.
public static postal ( string $check ) : boolean
$check string Value to check
return boolean Success.

regon() public static method

Checks REGON National Business Registry Number in Poland
public static regon ( string $check ) : boolean
$check string Value to check
return boolean Success.