Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 31 Rev 34
Line 67... Line 67...
67
		$url = $this->url_jrest.self::SERVICE_ESPECE.'/'.self::METHODE_INFOS_ESPECE.'/'.$id_espece;
67
		$url = $this->url_jrest.self::SERVICE_ESPECE.'/'.self::METHODE_INFOS_ESPECE.'/'.$id_espece;
68
        $json = $this->envoyerRequeteConsultation($url);
68
        $json = $this->envoyerRequeteConsultation($url);
69
        $donnees = json_decode($json, true);
69
        $donnees = json_decode($json, true);
70
        return $donnees;
70
        return $donnees;
71
	}
71
	}
-
 
72
	
-
 
73
	public function ajouterEspeceDansStation($valeurs_espece_station_verifiees) {
-
 
74
		
-
 
75
		$donnees = $valeurs_espece_station_verifiees;
-
 
76
		$donnees['id_participant'] = AppControleur::getIdUtilisateur();
-
 
77
		
-
 
78
        $url = $this->url_jrest.self::SERVICE_ESPECE."/";
-
 
79
        
-
 
80
        $json = $this->envoyerRequeteAjout($url, $donnees);
-
 
81
        
-
 
82
        $donnees = json_decode($json, true);
-
 
83
        
-
 
84
		if (true) {
-
 
85
             //TODO: verifier ajout   
-
 
86
        }
-
 
87
		
-
 
88
		return true;
-
 
89
	}
72
}
90
}
73
?> 
91
?> 
74
92