PHP Class Cake\Localized\Validation\NoValidation

Inheritance: extends LocalizedValidation
Datei anzeigen Open project: cakephp/localized Class Usage Examples

Public Methods

Method Description
dob ( string $check ) : boolean Checks date of birth formal format for Norway (dd.mm.yyyy), afterwards checks if is a valid gregorian calendar date.
personId ( string $check ) : boolean Checks a social security number for Norway.
phone ( string $check ) : boolean Checks a phone number for Norway.
postal ( string $check ) : boolean Checks a postal code for Norway.

Method Details

dob() public static method

Checks date of birth formal format for Norway (dd.mm.yyyy), afterwards checks if 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 social security number for Norway.
public static personId ( string $check ) : boolean
$check string The value to check.
return boolean Success.

phone() public static method

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

postal() public static method

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