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

Class: Validate_SE

Source Location: /Validate_SE-0.1.1/Validate/SE.php

Class Overview

Data validation class for Sweden



  • Release: 0.1.1


Inherited Variables

Inherited Methods

Class Details

[line 37]
Data validation class for Sweden

This class provides methods to validate:

  • Postal code

[ Top ]

Method Detail

county   [line 67]

mixed county( string $name, [bool $return = false])

Validate a Swedish county.

  • Return:

    True if county exists, or county name if $return is true.

  • Access: public


string   $name   —  County to validate
bool   $return   —  If true, return name of county as string

[ Top ]

postalCode   [line 50]

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

Validate a Swedish postcode.
  • Return:

    true if postcode is ok, false otherwise

  • Access: public


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

[ Top ]

Documentation generated on Wed, 09 Dec 2015 22:59:39 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.