PHP Class Cake\Localized\Validation\EsValidation

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

Protected Properties

Свойство Type Description
$CODES string The list of allowed personId codes. Sorted as wee need them.

Méthodes publiques

Méthode Description
dni ( string $check ) : boolean Only checks the DNI type personId.
nie ( string $check ) : boolean Only checks the NIE type personId.
nif ( string $check ) : boolean Only checks the NIF type personId.
personId ( string $check ) : boolean Checks a country specific identification number.
phone ( string $check ) : boolean Checks a phone number for Spain.
postal ( string $check ) : boolean Checks a postal code for Spain.

Method Details

dni() public static méthode

Only checks the DNI type personId.
public static dni ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.

nie() public static méthode

Only checks the NIE type personId.
public static nie ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.

nif() public static méthode

Only checks the NIF type personId.
public static nif ( string $check ) : boolean
$check string The value to check.
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 Spain.
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 Spain.
public static postal ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.

Property Details

$CODES protected_oe static_oe property

The list of allowed personId codes. Sorted as wee need them.
protected static string $CODES
Résultat string