프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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 | ||
리턴 | string | null | The administrative area type, or null if the administrative area field isn't used. |
public getCountryCode ( ) : string | ||
리턴 | string | The two-letter country code. |
public getDependentLocalityType ( ) : string | null | ||
리턴 | 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 | ||
리턴 | string | null | The local format string, if defined. |
public getLocalityType ( ) : string | null | ||
리턴 | string | null | The locality type, or null if the locality field isn't used. |
public getPostalCodePattern ( ) : string | null | ||
리턴 | string | null | The postal code pattern. |
public getPostalCodePrefix ( ) : string | null | ||
리턴 | string | null | The postal code prefix. |
public getPostalCodeType ( ) : string | null | ||
리턴 | string | null | The postal code type, or null if the postal code field isn't used. |
public getRequiredFields ( ) : array | ||
리턴 | array | An array of address fields. |
public getSubdivisionDepth ( ) : integer | ||
리턴 | 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 | ||
리턴 | array | An array of address fields. |
public getUsedFields ( ) : array | ||
리턴 | array | An array of address fields. |
public getUsedSubdivisionFields ( ) : array | ||
리턴 | array | An array of address fields. |
protected string $administrativeAreaType | ||
리턴 | string |
protected string $dependentLocalityType | ||
리턴 | string |
protected array $groupedFields | ||
리턴 | array |
protected string $postalCodePattern | ||
리턴 | string |
protected string $uppercaseFields | ||
리턴 | string |