PHP Class Cake\Localized\Validation\TwValidation

Inheritance: extends LocalizedValidation
Exibir arquivo Open project: cakephp/localized Class Usage Examples

Public Methods

Method Description
nicn ( string $check ) : boolean Checks national identify card number for Taiwan.
personId ( string $check ) : boolean Checks national identify card number for Taiwan.
phone ( string $check ) : boolean Checks a phone number for Taiwan.
postal ( string $check ) : boolean Checks a postal code for Taiwan.
ubn ( string $check ) : boolean Checks unified business number for Taiwan.

Method Details

nicn() public static method

Checks national identify card number for Taiwan.
Deprecation: Use personId() instead.
public static nicn ( string $check ) : boolean
$check string The value to check.
return boolean Success.

personId() public static method

Checks national identify card number for Taiwan.
public static personId ( string $check ) : boolean
$check string The value to check.
return boolean Success.

phone() public static method

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

postal() public static method

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

ubn() public static method

Checks unified business number for Taiwan.
public static ubn ( string $check ) : boolean
$check string The value to check.
return boolean Success.