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

Class: Validate_PL

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

Class Overview


Data validation class for Poland


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 46]
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 http://www.republika.pl/stepa/cyfra2.htm


Parameters:

string   $nip   —  9-digit number to validate

[ Top ]

pesel   [line 112]

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

Validates PESEL (Polish human identification number)


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
   &$birth   — 

[ Top ]

regon   [line 167]

bool regon( $regon, string $nip)

Validates REGON (Polish statistical national economy register)

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


Parameters:

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

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:37:08 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.