protected function parseLocalizedEras(CldrModel $model)
    {
        $data = [];
        foreach ($model->getRawArray('dates/calendars/calendar[@type="gregorian"]/eras') as $widthType => $eras) {
            foreach ($eras as $eraNodeString => $eraValue) {
                $eraName = $model->getAttributeValue($eraNodeString, 'type');

                $data[$widthType][$eraName] = $eraValue;
            }
        }

        return $data;
    }
protected function parseLocalizedEras(CldrModel $model)
    {
        $data = [];
        foreach ($model->getRawArray('dates/calendars/calendar[@type="gregorian"]/eras') as $widthType => $eras) {
            foreach ($eras as $eraNodeString => $eraValue) {
                $eraName = $model->getAttributeValue($eraNodeString, 'type');

                $data[$widthType][$eraName] = $eraValue;
            }
        }

        return $data;
    }
protected function parseLocalizedEras ( CldrModel $ model ) { $ data = [ ] ; foreach ( $ model -> getRawArray ( 'dates/calendars/calendar[@type="gregorian"]/eras' ) as $ widthType => $ eras ) { foreach ( $ eras as $ eraNodeString => $ eraValue ) { $ eraName = $ model -> getAttributeValue ( $ eraNodeString , 'type' ) ; $ data [ $ widthType ] [ $ eraName ] = $ eraValue ; } } return $ data ; }
Parses "eras" child of "dates" node and returns it's array representation.

@param CldrModel $model CldrModel to read data from
@return array An array with localized literals for "eras" node
Parses eras child of dates node and returns it s array representation .