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

Class: Validate_AT

Source Location: /Validate_AT-0.5.2/Validate/AT.php

Class Overview


Data validation class for Austria


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2006 Byron Adams

Methods


Inherited Variables

Inherited Methods


Class Details

[line 48]
Data validation class for Austria

This class provides methods to validate:

  • Social insurance number (Sozialversicherungsnummer)
  • Postal code (Postleitzahl)
  • Regional code (Regionaler Code)



[ Top ]


Method Detail

postalCode   [line 63]

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

Validate postcode ("Postleitzahl")
  • Return: true if postcode is ok, false otherwise
  • Access: public

Parameters:

string   $postcode   —  postcode to validate
bool   $strong   —  optional; strong checks against a list of postcodes
string   $dataDir   —  optional; name of directory datafile can be found in. set during install process but may be overridden.

[ Top ]

region   [line 125]

bool region( string $region)

Validates Austrian Regional Code ("Regionaler Code")

The validation is based on FIPS 10-4 region codes. http://en.wikipedia.org/wiki/FIPS_10-4

  • Return: true if regional code is ok, false otherwise
  • Link: AU:_Austria
  • Access: public

Parameters:

string   $region   —  regional code to validate

[ Top ]

ssn   [line 97]

bool ssn( string $ssn)

Validate SSN ("Sozialversicherungsnummer")
  • Return: true if SVN is ok, false otherwise
  • Access: public

Parameters:

string   $ssn   —  the SSN/SVN number to validate

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:34:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.