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

Class: Validate_NL

Source Location: /Validate_NL-0.5.2/Validate/NL.php

Class Overview


Data validation class for the Netherlands


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Dave Mertens

Methods


Inherited Variables

Inherited Methods


Class Details

[line 50]
Data validation class for the Netherlands

This class provides methods to validate:

  • Social insurance number (aka SIN)
  • Bank account number
  • Telephone number
  • Postal code



[ Top ]


Method Detail

bankAccountNumber   [line 134]

bool bankAccountNumber( string $number)

Bankaccount validation check (based on 11proef)
  • Return: true is bankaccount number 'seems' correct

Parameters:

string   $number     Dutch bankaccount number

[ Top ]

phoneNumber   [line 79]

bool phoneNumber( string $number, [int $type = PHONENUMBER_TYPE_ANY])

Validate a phonenumber
  • Return: true if (phone) number is correct

Parameters:

string   $number     Dutch phonenumber (can be in international format (eg +31 or 0031)
int   $type     Type of phonenumber to check

[ Top ]

postalCode   [line 61]

bool postalCode( string $postcode, [bool $strong = false])

Validate a NL postcode
  • Return: true if postcode is ok, false otherwise

Parameters:

string   $postcode     NL postcode to validate
bool   $strong     optional; strong checks (e.g. against a list of postcodes) (not implanted)

[ Top ]

ssn   [line 122]

bool ssn( string $ssn)

Social Security Number check (very simple, just a 9 digit number..) In Dutch SoFi (Sociaal Fiscaal) nummer
  • Return: true if SSN number is correct

Parameters:

string   $ssn     Dutch social security number

[ Top ]


Documentation generated on Mon, 23 Mar 2009 01:00:02 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.