Punic\Territory::getCountries PHP Метод

getCountries() публичный статический Метод

Return the list of countries in the form of an array with key=ID, value=name.
public static getCountries ( string $locale = '' ) : array
$locale string The locale to use. If empty we'll use the default locale set in \Punic\Data
Результат array
    public static function getCountries($locale = '')
    {
        return static::getList('c', $locale);
    }

Usage Example

Пример #1
0
 protected function loadCountries()
 {
     $countries = \Punic\Territory::getCountries();
     unset($countries['IM'], $countries['JE']);
     $event = new \Symfony\Component\EventDispatcher\GenericEvent();
     $event->setArgument('countries', $countries);
     $event = Events::dispatch('on_get_countries_list', $event);
     $countries = $event->getArgument('countries');
     $this->countries[Localization::activeLocale()] = $countries;
 }
All Usage Examples Of Punic\Territory::getCountries