Validate_ES
[ class tree: Validate_ES ] [ index: Validate_ES ] [ all elements ]

Class: Validate_ES

Source Location: /Validate_ES-0.6.2/Validate/ES.php

Class Overview


Data validation class for Spain


Author(s):

Version:

  • Release: @package_version@

Methods


Inherited Variables

Inherited Methods


Class Details

[line 57]
Data validation class for Spain

This class provides methods to validate:



[ Top ]


Method Detail

ccc   [line 167]

bool ccc( string $ccc)

Validate Spanish Account Client Code number

In Spain, all Spanish banking accounts are issued with a CCC code.

  • Return: returns true on success false otherwise

Parameters:

string   $ccc   —  CCC to check

[ Top ]

cif   [line 103]

bool cif( string $cif)

Validate Spanish CIF number

In Spain, all Spanish companies are issued with a CIF code.

  • Return: returns true on success false otherwise

Parameters:

string   $cif   —  CIF to check

[ Top ]

dni   [line 74]

bool dni( string $dni)

In Spain, all Spanish citizens are issued with a DNI the numbers are used as identification for almost all purposes.


Parameters:

string   $dni   —  El Documento Nacional de Indentidad a chequear

[ Top ]

postalCode   [line 271]

bool postalCode( string $postcode)

Validate Spanish Postal Code number
  • Return: true if postcode is ok, false otherwise

Parameters:

string   $postcode   —  postcode to validate

[ Top ]

ssn   [line 237]

bool ssn( string $ssn)

Validate Spanish Social Security number

In Spain, all Spanish have a social security number.

  • Return: returns true on success false otherwise

Parameters:

string   $ssn   —  Social security number to check

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.