Kernel::System::ReferenceData - ReferenceData lib
Contains reference data. For now, this is limited to just a list of ISO country codes.
Don't use the constructor directly, use the ObjectManager instead:
my $ReferenceDataObject = $Kernel::OM->Get('Kernel::System::ReferenceData');
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. );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.