PHP Class Cake\Localized\Validation\EsValidation

Inheritance: extends LocalizedValidation
Mostrar archivo Open project: cakephp/localized Class Usage Examples

Protected Properties

Property Type Description
$CODES string The list of allowed personId codes. Sorted as wee need them.

Public Methods

Method 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 method

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

nie() public static method

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

nif() public static method

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

postal() public static method

Checks a postal code for Spain.
public static postal ( string $check ) : boolean
$check string The value to check.
return 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
return string