Show
Ignore:
Timestamp:
06/20/08 12:46:38 (5 months ago)
Author:
llaumgui
Message:

Ajout de json_decode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ez_publish/myutils/trunk/autoloads/myutils_operators.php

    r185 r186  
    4343                                                                        'gmdate', 
    4444                                                                        'is_debug_enabled', 
     45                                                                        'json_decode', 
    4546                                                                        'path_to_path_array', 
    4647                                                                        'redirect', 
     
    7374                                                'is_debug_enabled'                              => array( ), 
    7475 
     76                                                'json_decode'                                   => array( 
     77                                                                'json'                  => array(       'type' => 'string',     'required' => true, 'default' => '' ), 
     78                                                                'assoc'                 => array(       'type' => 'bool',       'required' => false, 'default' => true ) 
     79                                                                                                        ),                                               
     80                                                                                                         
    7581                                                'path_to_path_array'                    => array( 
    7682                                                                'path'                  => array( 'type'        => 'array', 'required' => true, 'default' => ''  ), 
     
    115121                        break; 
    116122                         
     123                case 'json_decode': 
     124                                $operatorValue = json_decode( $namedParameters['json'], $namedParameters['assoc'] ); 
     125                                break; 
     126                         
    117127                case 'path_to_path_array': 
    118128                        $operatorValue = myUtilsFunctions::path2PathArray( $namedParameters['path'] );