Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 31 Rev 34
Line 13... Line 13...
13
 *
13
 *
14
 */
14
 */
15
class IndividuDao extends Dao {
15
class IndividuDao extends Dao {
Line 16... Line 16...
16
	
16
	
-
 
17
	const SERVICE_INDIVIDU = 'OdsIndividu';
-
 
18
	const METHODE_INDIVIDUS_STATION = 'IndividusPourStation';
Line 17... Line 19...
17
	const SERVICE_INDIVIDU = 'OdsIndividu';
19
	const METHODE_INDIVIDUS_STATION_ESPECE = 'IndividusPourStationPourEspece';
18
	
20
	
19
    /**
21
    /**
20
     * Retourne l'ensemble des informations d'un individu.
22
     * Retourne l'ensemble des informations d'un individu.
21
     *
23
     *
22
     * @param integer l'id d'une station.
24
     * @param integer l'id d'une station.
23
     * @return array un tableau contenant les informations sur les individus de cette station.
25
     * @return array un tableau contenant les informations sur les individus de cette station.
Line 24... Line 26...
24
     */
26
     */
25
    public function getListeIndividusPourStation($id_station) {
27
    public function getListeIndividusPourStation($id_station) {
26
		
28
		
-
 
29
	    $url = $this->url_jrest.self::SERVICE_INDIVIDU.'/'.self::METHODE_INDIVIDUS_STATION.'/'.$id_station;
-
 
30
        $json = $this->envoyerRequeteConsultation($url);
-
 
31
        $donnees = json_decode($json, true);   
-
 
32
        return $donnees;
-
 
33
	}
-
 
34
	
-
 
35
	public function getListeIndividusPourStationPourEspece($id_station, $id_espece) {
-
 
36
		
-
 
37
		$url = $this->url_jrest.self::SERVICE_INDIVIDU.'/'.self::METHODE_INDIVIDUS_STATION_ESPECE.'/'.$id_station.'/'.$id_espece;
27
	    $url = $this->url_jrest.self::SERVICE_INDIVIDU."/*/";
38
        $json = $this->envoyerRequeteConsultation($url);
28
        $json = $this->envoyerRequeteConsultation($url);
39
        $donnees = json_decode($json, true);   
Line 29... Line 40...
29
        $donnees = json_decode($json, true);
40