linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Source for file filemanager.inc.php

Documentation is available at filemanager.inc.php

  1. <?php
  2. /**
  3.  * @package     linea21.externals
  4.  * @subpackage     Filemanager
  5.  */
  6. if !function_exists('json_decode') ) {
  7.  
  8.   function json_decode($content$assoc=false){
  9.     require_once 'JSON.php';
  10.     if $assoc ){
  11.       $json new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
  12.     else {
  13.       $json new Services_JSON;
  14.     }
  15.     return $json->decode($content);
  16.   }
  17.  
  18. }
  19.  
  20. if !function_exists('json_encode') ) {
  21.  
  22.   function json_encode($content{
  23.     require_once 'JSON.php';
  24.     $json new Services_JSON;
  25.     return $json->encode($content);
  26.   }
  27.  
  28. }
  29. ?>

Documentation generated on Fri, 01 Apr 2011 09:30:53 +0200 by phpDocumentor 1.4.1