Country

class \TYPO3\CMS\Core\Country\Country

DTO that keeps the information about a country. Never instantiate directly, use CountryProvider instead.

Table of Contents

Constants

LABEL_FILE  : mixed = 'EXT:core/Resources/Private/Language/Iso/countr...

Properties

$alpha2  : string
$alpha3  : string
$flag  : string
$name  : string
$numeric  : string
$officialName  : string|null

Methods

__construct()  : mixed
__toString()  : string
getAlpha2IsoCode()  : string
getAlpha3IsoCode()  : string
getFlag()  : string
getLocalizedNameLabel()  : string
getLocalizedOfficialNameLabel()  : string
getName()  : string
getNumericRepresentation()  : string
getOfficialName()  : string|null

Constants

LABEL_FILE

protected mixed LABEL_FILE = 'EXT:core/Resources/Private/Language/Iso/countries.xlf'

Properties

$officialName

protected string|null $officialName

Methods

__construct()

public __construct(string $alpha2, string $alpha3, string $name, string $numeric, string $flag, string|null $officialName) : mixed

Parameters

$alpha2 : string
$alpha3 : string
$name : string
$numeric : string
$flag : string
$officialName : string|null

__toString()

public __toString() : string

Return values

string

getAlpha2IsoCode()

public getAlpha2IsoCode() : string

Return values

string

getAlpha3IsoCode()

public getAlpha3IsoCode() : string

Return values

string

getFlag()

public getFlag() : string

Return values

string

getLocalizedNameLabel()

public getLocalizedNameLabel() : string

Return values

string

getLocalizedOfficialNameLabel()

public getLocalizedOfficialNameLabel() : string

Return values

string

getName()

public getName() : string

Return values

string

getNumericRepresentation()

public getNumericRepresentation() : string

Return values

string

getOfficialName()

public getOfficialName() : string|null

Return values

string|null
On this page