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

Class: Validate_PL

Source Location: /Validate_PL-0.5.2/Validate/PL.php

Class Overview


Data validation class for Poland


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Piotr Klaban

Methods


Inherited Variables

Inherited Methods


Class Details

[line 47]
Data validation class for Poland

This class provides methods to validate:

  • NIP (Polish tax identification number)
  • Bank account number
  • PESEL (Polish human identification number)
  • REGON (Polish statistical national economy register)



[ Top ]


Method Detail

bankBranch   [line 82]

bool bankBranch( string $number)

Validates bank number (Polish banks)

Parameters:

string   $number     8-digit number to validate

[ Top ]

nip   [line 59]

bool nip( string $nip)

Validates NIP (Polish tax identification number)

Sprawdza NIP (Numer Identyfikacji Podatkowej) http://chemeng.p.lodz.pl/zylla/ut/nip-rego.html


Parameters:

string   $nip     9-digit number to validate

[ Top ]

pesel   [line 112]

bool pesel( string $pesel, array &$birth)

Validates PESEL (Polish human identification number)

Sprawdza PESEL (Powszechny Elektroniczny System Ewidencji Ludnoci) http://www.mswia.gov.pl/crp_pesel.html NOTE: some people can have the same PESEL, and some can have PESEL with wrong numbers in place of birth date.


Parameters:

string   $pesel     11-digit number to validate
array   &$birth     reference to array - returns birth date and sex (either 'female' or 'male' string) extracted from pesel

[ Top ]

region   [line 185]

bool region( string $regon)

Validates REGON (Polish statistical national economy register)

Sprawdza REGON (Rejestr Gospodarki Narodowej) http://chemeng.p.lodz.pl/zylla/ut/nip-rego.html


Parameters:

string   $regon     9- or 14- digit number to validate

[ Top ]

regon   [line 170]

bool regon( string $regon)

Validates REGON (Polish statistical national economy register)

Sprawdza REGON (Rejestr Gospodarki Narodowej) http://chemeng.p.lodz.pl/zylla/ut/nip-rego.html


Parameters:

string   $regon     9- or 14- digit number to validate

[ Top ]


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