protected function getConstNameToIds($prefix)
    {
        if (!isset(self::$constNameToIds[$prefix])) {
            foreach ($this->getConsts($prefix) as $const) {
                self::$constNameToIds[$prefix][$const['name']] = $const['id'];
            }
        }

        return self::$constNameToIds[$prefix];
    }
protected function getConstNameToIds($prefix)
    {
        if (!isset(self::$constNameToIds[$prefix])) {
            foreach ($this->getConsts($prefix) as $const) {
                self::$constNameToIds[$prefix][$const['name']] = $const['id'];
            }
        }

        return self::$constNameToIds[$prefix];
    }
protected function getConstNameToIds ( $ prefix ) { if ( ! isset ( self :: $ constNameToIds [ $ prefix ] ) ) { foreach ( $ this -> getConsts ( $ prefix ) as $ const ) { self :: $ constNameToIds [ $ prefix ] [ $ const [ 'name' ] ] = $ const [ 'id' ] ; } } return self :: $ constNameToIds [ $ prefix ] ; }
Returns the name to id map

@param string $prefix
@return array
Returns the name to id map