Subversion Repositories Applications.referentiel

Rev

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

Rev 85 Rev 89
Line 48... Line 48...
48
		$json = $this->envoyerRequeteConsultation($url);
48
		$json = $this->envoyerRequeteConsultation($url);
49
		$donnees = json_decode($json, true);
49
		$donnees = json_decode($json, true);
50
		return $donnees[0];
50
		return $donnees[0];
51
	}
51
	}
Line -... Line 52...
-
 
52
	
-
 
53
	public function getHomonyme($ref, $nom) {
-
 
54
		$url = $this->url_jrest.self::SERVICE."/Homonyme/$ref/$nom";
-
 
55
		$json = $this->envoyerRequeteConsultation($url);
-
 
56
		$donnees = json_decode($json, true);
-
 
57
		return $donnees;
-
 
58
	}
52
	
59
	
53
	//Classification
60
	//Classification
54
	public function getClassification($type, $ref, $id) {
61
	public function getClassification($type, $ref, $id) {
55
		$url = $this->url_jrest.self::SERVICE."/Taxon$type/$ref/$id";
62
		$url = $this->url_jrest.self::SERVICE."/Taxon$type/$ref/$id";
56
		$json = $this->envoyerRequeteConsultation($url);
63
		$json = $this->envoyerRequeteConsultation($url);