Subversion Repositories Applications.referentiel

Rev

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

Rev 76 Rev 79
Line 22... Line 22...
22
	 */
22
	 */
23
	public function getTaxon($ref, $id) {
23
	public function getTaxon($ref, $id) {
24
		$url = $this->url_jrest.self::SERVICE."/Taxon/$ref/$id";
24
		$url = $this->url_jrest.self::SERVICE."/Taxon/$ref/$id";
25
		$json = $this->envoyerRequeteConsultation($url);
25
		$json = $this->envoyerRequeteConsultation($url);
26
		$donnees = json_decode($json, true);
26
		$donnees = json_decode($json, true);
27
		return $donnees['taxons'];
27
		return $donnees[0];
28
	}
28
	}
Line -... Line 29...
-
 
29
	
29
	
30
	// Nomanclature
30
	public function getNomenclature($ref, $id) {
31
	public function getNomenclature($ref, $id) {
31
		$url = $this->url_jrest.self::SERVICE."/Nomenclature/$ref/$id";
32
		$url = $this->url_jrest.self::SERVICE."/Nomenclature/$ref/$id";
32
		$json = $this->envoyerRequeteConsultation($url);
33
		$json = $this->envoyerRequeteConsultation($url);
33
		$resultats = json_decode($json, true);
34
		$resultats = json_decode($json, true);
34
		return $resultats[0];
35
		return $resultats[0];
-
 
36
	}
35
	}
37
	
36
	public function getParentsHybride($ref, $id) {
38
	public function getParentsHybride($ref, $id) {
37
		$url = $this->url_jrest.self::SERVICE."/ParentsHybride/$ref/$id";
39
		$url = $this->url_jrest.self::SERVICE."/ParentsHybride/$ref/$id";
38
		$json = $this->envoyerRequeteConsultation($url);
40
		$json = $this->envoyerRequeteConsultation($url);
39
		$parents = json_decode($json, true);
41
		$parents = json_decode($json, true);
40
		return $parents[0];
42
		return $parents[0];
Line -... Line 43...
-
 
43
	}
-
 
44
	
-
 
45
	//Synonymie
-
 
46
	public function getTaxonAffichage($ref, $id) {
-
 
47
		$url = $this->url_jrest.self::SERVICE."/TaxonAffichage/$ref/$id";
-
 
48
		$json = $this->envoyerRequeteConsultation($url);
-
 
49
		$donnees = json_decode($json, true);
-
 
50
		return $donnees[0];
41
	}
51
	}
42
	
52
 
43
}
53
}