Neos.Neos/Classes/Service/XliffService.php
protected function setArrayDataValue(array &$arrayPointer, $key, $value)
    {
        $keys = explode('.', $key);

        // Extract the last key
        $lastKey = array_pop($keys);

        // Walk/build the array to the specified key
        while ($arrayKey = array_shift($keys)) {
            if (!array_key_exists($arrayKey, $arrayPointer)) {
                $arrayPointer[$arrayKey] = [];
            }
            $arrayPointer = &$arrayPointer[$arrayKey];
        }

        // Set the final key
        $arrayPointer[$lastKey] = $value;
    }
protected function setArrayDataValue(array &$arrayPointer, $key, $value)
    {
        $keys = explode('.', $key);

        // Extract the last key
        $lastKey = array_pop($keys);

        // Walk/build the array to the specified key
        while ($arrayKey = array_shift($keys)) {
            if (!array_key_exists($arrayKey, $arrayPointer)) {
                $arrayPointer[$arrayKey] = [];
            }
            $arrayPointer = &$arrayPointer[$arrayKey];
        }

        // Set the final key
        $arrayPointer[$lastKey] = $value;
    }
protected function setArrayDataValue ( array & $ arrayPointer , $ key , $ value ) { $ keys = explode ( '.' , $ key ) ; // Extract the last key $ lastKey = array_pop ( $ keys ) ; // Walk/build the array to the specified key while ( $ arrayKey = array_shift ( $ keys ) ) { if ( ! array_key_exists ( $ arrayKey , $ arrayPointer ) ) { $ arrayPointer [ $ arrayKey ] = [ ] ; } $ arrayPointer = & $ arrayPointer [ $ arrayKey ] ; } // Set the final key $ arrayPointer [ $ lastKey ] = $ value ; }
Helper method to create the needed json array from a dotted xliff id

@param array $arrayPointer
@param string $key
@param string $value
@return void
Helper method to create the needed json array from a dotted xliff id