NAME
Kernel::System::ReferenceData – ReferenceData lib
DESCRIPTION
Contains reference data. For now, this is limited to just a list of ISO country codes.
PUBLIC INTERFACE
new()
Don't use the constructor directly, use the ObjectManager instead:
my $ReferenceDataObject = $Kernel::OM->Get('Kernel::System::ReferenceData');
CountryList()
return a list of countries as a hash reference. The countries are based on ISO 3166-2 and are provided by the Perl module Locale::Code::Country, or optionally from the SysConfig setting ReferenceData::OwnCountryList.
my $CountryList = $ReferenceDataObject->CountryList(
Result => 'CODE', # optional: returns CODE => Country pairs conform ISO 3166-2.
);