Свойство | Type | Description | |
---|---|---|---|
$administrativeAreaType | string | The administrative area type. | |
$countryCode | string | The country code. | |
$dependentLocalityType | string | The dependent locality type. | |
$format | string | The format string. | |
$groupedFields | array | The used fields, grouped by line. | |
$localFormat | string | The local format string. | |
$locale | string | The locale. | |
$localityType | string | The locality type. | |
$postalCodePattern | string | The postal code pattern. | |
$postalCodePrefix | string | The postal code prefix. | |
$postalCodeType | string | The postal code type. | |
$requiredFields | array | The required fields. | |
$subdivisionDepth | integer | The subdivision depth. | |
$uppercaseFields | string | The fields that need to be uppercased. | |
$usedFields | array | The used fields. |
Méthode | Description | |
---|---|---|
__construct ( array $definition ) | Creates a new AddressFormat instance. | |
getAdministrativeAreaType ( ) : string | null | Gets the administrative area type. | |
getCountryCode ( ) : string | Gets the two-letter country code. | |
getDependentLocalityType ( ) : string | null | Gets the dependent locality type. | |
getFormat ( ) : string | Gets the format string. | |
getLocalFormat ( ) : string | null | Gets the local format string. | |
getLocale ( ) : string | null | Gets the locale. | |
getLocalityType ( ) : string | null | Gets the locality type. | |
getPostalCodePattern ( ) : string | null | Gets the postal code pattern. | |
getPostalCodePrefix ( ) : string | null | Gets the postal code prefix. | |
getPostalCodeType ( ) : string | null | Gets the postal code type. | |
getRequiredFields ( ) : array | Gets the list of required fields. | |
getSubdivisionDepth ( ) : integer | Gets the subdivision depth. | |
getUppercaseFields ( ) : array | Gets the list of fields that need to be uppercased. | |
getUsedFields ( ) : array | Gets the list of used fields. | |
getUsedSubdivisionFields ( ) : array | Gets the list of used subdivision fields. |
public __construct ( array $definition ) | ||
$definition | array | The definition array. |
public getAdministrativeAreaType ( ) : string | null | ||
Résultat | string | null | The administrative area type, or null if the administrative area field isn't used. |
public getCountryCode ( ) : string | ||
Résultat | string | The two-letter country code. |
public getDependentLocalityType ( ) : string | null | ||
Résultat | string | null | The dependent locality type, or null if the dependent locality field isn't used. |
%givenName %familyName
%organization
%addressLine1
%addressLine2
%locality %administrativeArea %postalCode
public getLocalFormat ( ) : string | null | ||
Résultat | string | null | The local format string, if defined. |
public getLocalityType ( ) : string | null | ||
Résultat | string | null | The locality type, or null if the locality field isn't used. |
public getPostalCodePattern ( ) : string | null | ||
Résultat | string | null | The postal code pattern. |
public getPostalCodePrefix ( ) : string | null | ||
Résultat | string | null | The postal code prefix. |
public getPostalCodeType ( ) : string | null | ||
Résultat | string | null | The postal code type, or null if the postal code field isn't used. |
public getRequiredFields ( ) : array | ||
Résultat | array | An array of address fields. |
public getSubdivisionDepth ( ) : integer | ||
Résultat | integer | The subdivision depth. Possible values: 0: no subdivisions have been predefined. 1: administrative areas. 2: administrative areas, localities. 3: administrative areas, localities, dependent localities. |
public getUppercaseFields ( ) : array | ||
Résultat | array | An array of address fields. |
public getUsedFields ( ) : array | ||
Résultat | array | An array of address fields. |
public getUsedSubdivisionFields ( ) : array | ||
Résultat | array | An array of address fields. |
protected string $administrativeAreaType | ||
Résultat | string |
protected string $dependentLocalityType | ||
Résultat | string |
protected array $groupedFields | ||
Résultat | array |
protected string $localFormat | ||
Résultat | string |
protected string $localityType | ||
Résultat | string |
protected string $postalCodePattern | ||
Résultat | string |
protected string $postalCodePrefix | ||
Résultat | string |
protected string $postalCodeType | ||
Résultat | string |
protected array $requiredFields | ||
Résultat | array |
protected int $subdivisionDepth | ||
Résultat | integer |
protected string $uppercaseFields | ||
Résultat | string |