PHP Class Cake\Localized\Validation\JpValidation

Inheritance: extends LocalizedValidation
Afficher le fichier Open project: cakephp/localized Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

katakana() public static méthode

Checks katakana ァ-ヶー
public static katakana ( string $check, boolean $allowSpace = true ) : boolean
$check string The value to check.
$allowSpace boolean Allow double-byte space.
Résultat boolean Success.

personId() public static méthode

Checks a country specific identification number.
public static personId ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.

phone() public static méthode

Checks a phone number for Japan.
public static phone ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.

postal() public static méthode

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

zenkaku() public static méthode

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