Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 364 → Rev 365

/trunk/services/bibliotheque/ReponseHttp.php
6,6 → 6,24
 
public function __construct() {
$this->resultatService = new ResultatService();
if ( !function_exists('json_decode') ){
require_once (dirname(__FILE__).'/JSON.php');
function json_decode($content, $assoc=false){
if ( $assoc ){
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
} else {
$json = new Services_JSON;
}
return $json->decode($content);
}
}
if ( !function_exists('json_encode') ){
function json_encode($content){
$json = new Services_JSON;
return $json->encode($content);
}
}
}
 
public function setResultatService($resultat) {