‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Country\Country Class Reference

Public Member Functions

 __construct (protected string $alpha2, protected string $alpha3, protected string $name, protected string $numeric, protected string $flag, protected ?string $officialName)
 
 getName ()
 
 getLocalizedNameLabel ()
 
 getOfficialName ()
 
 getLocalizedOfficialNameLabel ()
 
 getAlpha2IsoCode ()
 
 getAlpha3IsoCode ()
 
 getNumericRepresentation ()
 
 getFlag ()
 

Protected Attributes

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

Detailed Description

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

Definition at line 24 of file Country.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Country\Country::__construct ( protected string  $alpha2,
protected string  $alpha3,
protected string  $name,
protected string  $numeric,
protected string  $flag,
protected ?string  $officialName 
)

Definition at line 28 of file Country.php.

Member Function Documentation

◆ getAlpha2IsoCode()

TYPO3\CMS\Core\Country\Country::getAlpha2IsoCode ( )

Definition at line 56 of file Country.php.

◆ getAlpha3IsoCode()

TYPO3\CMS\Core\Country\Country::getAlpha3IsoCode ( )

Definition at line 61 of file Country.php.

◆ getFlag()

TYPO3\CMS\Core\Country\Country::getFlag ( )

Definition at line 71 of file Country.php.

◆ getLocalizedNameLabel()

TYPO3\CMS\Core\Country\Country::getLocalizedNameLabel ( )

Definition at line 41 of file Country.php.

◆ getLocalizedOfficialNameLabel()

TYPO3\CMS\Core\Country\Country::getLocalizedOfficialNameLabel ( )

Definition at line 51 of file Country.php.

◆ getName()

TYPO3\CMS\Core\Country\Country::getName ( )

Definition at line 37 of file Country.php.

◆ getNumericRepresentation()

TYPO3\CMS\Core\Country\Country::getNumericRepresentation ( )

Definition at line 66 of file Country.php.

◆ getOfficialName()

TYPO3\CMS\Core\Country\Country::getOfficialName ( )

Definition at line 46 of file Country.php.

Member Data Documentation

◆ LABEL_FILE

const TYPO3\CMS\Core\Country\Country::LABEL_FILE = 'EXT:core/Resources/Private/Language/Iso/countries.xlf'
protected

Definition at line 26 of file Country.php.