protected function _identifierList($options)
    {
        if (empty($options)) {
            $options = [
                'Africa' => DateTimeZone::AFRICA,
                'America' => DateTimeZone::AMERICA,
                'Antarctica' => DateTimeZone::ANTARCTICA,
                'Arctic' => DateTimeZone::ARCTIC,
                'Asia' => DateTimeZone::ASIA,
                'Atlantic' => DateTimeZone::ATLANTIC,
                'Australia' => DateTimeZone::AUSTRALIA,
                'Europe' => DateTimeZone::EUROPE,
                'Indian' => DateTimeZone::INDIAN,
                'Pacific' => DateTimeZone::PACIFIC,
                'UTC' => DateTimeZone::UTC,
            ];
        }

        $identifiers = [];
        foreach ($options as $name => $region) {
            $list = DateTimeZone::listIdentifiers($region);
            $identifiers[$name] = array_combine($list, $list);
        }

        if (count($identifiers) === 1) {
            $identifiers = current($identifiers);
        }

        return $identifiers;
    }
protected function _identifierList($options)
    {
        if (empty($options)) {
            $options = [
                'Africa' => DateTimeZone::AFRICA,
                'America' => DateTimeZone::AMERICA,
                'Antarctica' => DateTimeZone::ANTARCTICA,
                'Arctic' => DateTimeZone::ARCTIC,
                'Asia' => DateTimeZone::ASIA,
                'Atlantic' => DateTimeZone::ATLANTIC,
                'Australia' => DateTimeZone::AUSTRALIA,
                'Europe' => DateTimeZone::EUROPE,
                'Indian' => DateTimeZone::INDIAN,
                'Pacific' => DateTimeZone::PACIFIC,
                'UTC' => DateTimeZone::UTC,
            ];
        }

        $identifiers = [];
        foreach ($options as $name => $region) {
            $list = DateTimeZone::listIdentifiers($region);
            $identifiers[$name] = array_combine($list, $list);
        }

        if (count($identifiers) === 1) {
            $identifiers = current($identifiers);
        }

        return $identifiers;
    }
protected function _identifierList ( $ options ) { if ( empty ( $ options ) ) { $ options = [ 'Africa' => DateTimeZone :: AFRICA , 'America' => DateTimeZone :: AMERICA , 'Antarctica' => DateTimeZone :: ANTARCTICA , 'Arctic' => DateTimeZone :: ARCTIC , 'Asia' => DateTimeZone :: ASIA , 'Atlantic' => DateTimeZone :: ATLANTIC , 'Australia' => DateTimeZone :: AUSTRALIA , 'Europe' => DateTimeZone :: EUROPE , 'Indian' => DateTimeZone :: INDIAN , 'Pacific' => DateTimeZone :: PACIFIC , 'UTC' => DateTimeZone :: UTC , ] ; } $ identifiers = [ ] ; foreach ( $ options as $ name => $ region ) { $ list = DateTimeZone :: listIdentifiers ( $ region ) ; $ identifiers [ $ name ] = array_combine ( $ list , $ list ) ; } if ( count ( $ identifiers ) === 1 ) { $ identifiers = current ( $ identifiers ) ; } return $ identifiers ; }
Converts list of regions to identifiers list.

@param array $options List of regions

@return array
Converts list of regions to identifiers list .