PHP Class Cake\Localized\Validation\TrValidation

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

Public Methods

Method Description
personId ( string $check ) : boolean Checks an identity number for Turkey.
phone ( string $check ) : boolean Checks a phone number.
postal ( string $check ) : boolean Checks a postal code for Turkey.
trIdentityNumber ( string $check ) : boolean Checks an identity number for Turkey.

Method Details

personId() public static method

Checks an identity number for Turkey.
public static personId ( string $check ) : boolean
$check string The 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 Turkey.
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.

trIdentityNumber() public static method

Checks an identity number for Turkey.
Deprecation: Use personId() instead.
public static trIdentityNumber ( string $check ) : boolean
$check string The value to check.
return boolean Success.