Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 111 Rev 312
Line 51... Line 51...
51
	}
51
	}
Line 52... Line 52...
52
 
52
 
53
	private function transformerReponseCorpsSuivantMime() {
53
	private function transformerReponseCorpsSuivantMime() {
54
		switch ($this->resultatService->mime) {
54
		switch ($this->resultatService->mime) {
-
 
55
			case 'application/json' :
-
 
56
				if (isset($_GET['callback'])) {
-
 
57
					$contenu = $_GET['callback'].'('.json_encode($donnees).');';
55
			case 'application/json' :
58
				} else {
-
 
59
					$contenu = json_encode($this->resultatService->corps);
-
 
60
				}
56
				$this->resultatService->corps = json_encode($this->resultatService->corps);
61
				$this->resultatService->corps = $contenu;
57
				break;
62
				break;
58
		}
63
		}
Line 59... Line 64...
59
	}
64
	}