SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class LocaleInfoGBR

Locale info for United Kingdom; see LocaleInfo

Variables

NameVisibilityDescription
$currency_name 
$currency_symbol 
$postcode_name 
$state_list 
$state_name 
$town_name 

Functions

NameVisibilityDescription
validateAddresspublicValidate address fields
validatePostcodepublic (static)Validate a UK postcode

public validateAddress

void $LocaleInfoGBR->validateAddress ( Validator $valid [, bool $required ] );

Validate address fields

public validatePostcode

void LocaleInfoGBR::validatePostcode ( string $code );

Validate a UK postcode

The supported formats are as follows:
AA9A 9AA
A9A 9AA
A9 9AA
A99 9AA
AA9 9AA
AA99 9AA