Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 312 | Rev 420 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 312 Rev 365
Line 4... Line 4...
4
	private $resultatService = null;
4
	private $resultatService = null;
5
	private $erreurs = array();
5
	private $erreurs = array();
Line 6... Line 6...
6
 
6
 
7
	public function __construct() {
7
	public function __construct() {
-
 
8
		$this->resultatService = new ResultatService();
-
 
9
		if ( !function_exists('json_decode') ){
-
 
10
			require_once (dirname(__FILE__).'/JSON.php');
-
 
11
			function json_decode($content, $assoc=false){
-
 
12
				if ( $assoc ){
-
 
13
					$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
-
 
14
				} else {
-
 
15
					$json = new Services_JSON;
-
 
16
				}
-
 
17
				return $json->decode($content);
-
 
18
			}
-
 
19
		}
-
 
20
		
-
 
21
		if ( !function_exists('json_encode') ){
-
 
22
			function json_encode($content){
-
 
23
				$json = new Services_JSON;
-
 
24
				return $json->encode($content);
-
 
25
			}
8
		$this->resultatService = new ResultatService();
26
		}
Line 9... Line 27...
9
	}
27
	}
10
 
28
 
11
	public function setResultatService($resultat) {
29
	public function setResultatService($resultat) {