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

Class: Validate_DE

Source Location: /Validate_DE-0.5.2/Validate/DE.php

Class Overview


Data validation class for Germany


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Stefan Neufeind

Methods


Inherited Variables

Inherited Methods


Class Details

[line 40]
Data validation class for Germany

This class provides methods to validate:

  • Postal code
  • German bank code



[ Top ]


Method Detail

bankcode   [line 68]

bool bankcode( string $bankcode)

Validate a German bankcode

German bankcodes consist of exactly 8 numbers

  • Return: true if bankcode is ok, false otherwise

Parameters:

string   $bankcode     German bankcode to validate

[ Top ]

postalCode   [line 51]

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

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

Parameters:

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

[ Top ]


Documentation generated on Mon, 21 Sep 2009 00:30:01 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.