src/Nav.php
protected static function _replace(&$target, $path, $options)
    {
        $pathE    = explode('.', $path);
        $path     = array_shift($pathE);
        $fragment = join('.', $pathE);

        if (!empty($pathE)) {
            self::_replace($target[$path], $fragment, $options);
        } else {
            $target[$path] = self::_merge($target[$path], $options);
        }
    }
protected static function _replace(&$target, $path, $options)
    {
        $pathE    = explode('.', $path);
        $path     = array_shift($pathE);
        $fragment = join('.', $pathE);

        if (!empty($pathE)) {
            self::_replace($target[$path], $fragment, $options);
        } else {
            $target[$path] = self::_merge($target[$path], $options);
        }
    }
protected static function _replace ( & $ target , $ path , $ options ) { $ pathE = explode ( '.' , $ path ) ; $ path = array_shift ( $ pathE ) ; $ fragment = join ( '.' , $ pathE ) ; if ( ! empty ( $ pathE ) ) { self :: _replace ( $ target [ $ path ] , $ fragment , $ options ) ; } else { $ target [ $ path ] = self :: _merge ( $ target [ $ path ] , $ options ) ; } }
Replace a menu element.

@param array $target pointer to start of array
@param string $path path to search for in dot separated format
@param array $options data to replace with
@return void
Replace a menu element .