PHP Class Cake\Localized\Validation\JpValidation

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

Public Methods

Method Description
hiragana ( string $check, boolean $allowSpace = true ) : boolean Checks hiragana ぁ-ゖー
katakana ( string $check, boolean $allowSpace = true ) : boolean Checks katakana ァ-ヶー
personId ( string $check ) : boolean Checks a country specific identification number.
phone ( string $check ) : boolean Checks a phone number for Japan.
postal ( string $check ) : boolean Checks a postal code for Japan.
zenkaku ( string $check ) : boolean Checks zenkaku(double-byte characters)

Method Details

hiragana() public static method

Checks hiragana ぁ-ゖー
public static hiragana ( string $check, boolean $allowSpace = true ) : boolean
$check string The value to check.
$allowSpace boolean Allow double-byte space.
return boolean Success.

katakana() public static method

Checks katakana ァ-ヶー
public static katakana ( string $check, boolean $allowSpace = true ) : boolean
$check string The value to check.
$allowSpace boolean Allow double-byte space.
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 a phone number for Japan.
public static phone ( string $check ) : boolean
$check string The value to check.
return boolean Success.

postal() public static method

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

zenkaku() public static method

Checks zenkaku(double-byte characters)
public static zenkaku ( string $check ) : boolean
$check string The value to check.
return boolean Success.