SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class LocaleInfoUSA

Locale info for USA; see LocaleInfo

Variables

NameVisibilityDescription
$postcode_name 
$state_list 
$state_name 
$town_name 

Functions

NameVisibilityDescription
validateAddresspublicValidate address fields
validatePostcodepublic (static)Validate a ZIP Code, as a 5-digit number with an optional appended hyphen with 4 additional digits

public validateAddress

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

Validate address fields

public validatePostcode

void LocaleInfoUSA::validatePostcode ( string $code );

Validate a ZIP Code, as a 5-digit number with an optional appended hyphen with 4 additional digits
E.g. 20521 or 20521-9000