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@

Copyright:

  • 2010 Jesús Espino

Methods


Inherited Variables

Inherited Methods


Class Details

[line 57]
Data validation class for Spain

This class provides methods to validate:

  • Spanish DNI number ("El documento de la identificación nacional")



[ 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)

Validate Spanish DNI number ("El documento de la identificación nacional")

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 Wed, 04 Apr 2012 20:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.