src/FreeFW/Tools/Icu.php
protected static function parseResourceBundle($p_rb, $p_prefix = '')
    {
        $p_prefix = rtrim($p_prefix, '.');
        $values   = array();
        if ($p_rb instanceof \ResourceBundle) {
            foreach ($p_rb as $k => $v) {
                if (is_object($v)) {
                    $temp   = self::parseResourceBundle($v, ($p_prefix == '' ? '' : $p_prefix . '.') .
                              print_r($k, true) . '.');
                    $values = array_merge($values, $temp);
                } else {
                    $values[$p_prefix . '.' . $k] = $v;
                }
            }
        }
        
        return $values;
    }
protected static function parseResourceBundle($p_rb, $p_prefix = '')
    {
        $p_prefix = rtrim($p_prefix, '.');
        $values   = array();
        if ($p_rb instanceof \ResourceBundle) {
            foreach ($p_rb as $k => $v) {
                if (is_object($v)) {
                    $temp   = self::parseResourceBundle($v, ($p_prefix == '' ? '' : $p_prefix . '.') .
                              print_r($k, true) . '.');
                    $values = array_merge($values, $temp);
                } else {
                    $values[$p_prefix . '.' . $k] = $v;
                }
            }
        }
        
        return $values;
    }
protected static function parseResourceBundle ( $ p_rb , $ p_prefix = '' ) { $ p_prefix = rtrim ( $ p_prefix , '.' ) ; $ values = array ( ) ; if ( $ p_rb instanceof \ ResourceBundle ) { foreach ( $ p_rb as $ k => $ v ) { if ( is_object ( $ v ) ) { $ temp = self :: parseResourceBundle ( $ v , ( $ p_prefix == '' ? '' : $ p_prefix . '.' ) . print_r ( $ k , true ) . '.' ) ; $ values = array_merge ( $ values , $ temp ) ; } else { $ values [ $ p_prefix . '.' . $ k ] = $ v ; } } } return $ values ; }
Parse des ressources

@param mixed  $p_rb
@param string $p_prefix

@return array
Parse des ressources