Validate_SE
[ 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


Author(s):

Version:

  • Release: 0.1.1

Methods


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.

http://en.wikipedia.org/wiki/Counties_of_Sweden

  • Return:

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

    http://en.wikipedia.org/wiki/Postal_codes_in_Sweden

  • Access: public

Parameters:

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

    http://en.wikipedia.org/wiki/Postal_codes_in_Sweden

  • Access: public

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, 11 Mar 2019 15:48:09 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.