Subversion Repositories Sites.obs-saisons.fr

Compare Revisions

Ignore whitespace Rev 210 → Rev 209

/trunk/applications/saisie/bibliotheque/dao/ExportDao.php
File deleted
\ No newline at end of file
/trunk/applications/saisie/bibliotheque/dao/IndividuDao.php
70,36 → 70,14
if (is_numeric($id_individu)) {
$url = $this->url_jrest.self::SERVICE_INDIVIDU."/$id_individu";
$json = $this->envoyerRequeteModif($url, $donnees);
$donnees = json_decode($json, true);
if($donnees_retour['reponse'] == 'OK') {
return true;
}
if (true) {
//TODO: verifier modification
}
}
return false;
return true;
}
public function supprimerIndividu($id_individu) {
$donnees = $valeurs_individu_verifiees;
if (is_numeric($id_individu)) {
$url = $this->url_jrest.self::SERVICE_INDIVIDU."/".AppControleur::getIdUtilisateur()."/".$id_individu;
$json = $this->envoyerRequeteSuppression($url, $donnees);
$donnees = json_decode($json, true);
$donnees_retour = json_decode($json, true);
if($donnees_retour['reponse'] == 'OK') {
return true;
}
}
return false;
}
}
?>
/trunk/applications/saisie/bibliotheque/dao/StationDao.php
71,25 → 71,5
return false;
}
public function supprimerStation($id_station) {
 
$donnees['id_station'] = $id_station;
$donnees['id_participant'] = AppControleur::getIdUtilisateur();
if (is_numeric($id_station)) {
$url = $this->url_jrest.self::SERVICE_STATION."/".AppControleur::getIdUtilisateur()."/".$id_station;
$json = $this->envoyerRequeteSuppression($url, $donnees);
$donnees_retour = json_decode($json, true);
if($donnees_retour['reponse'] == 'OK') {
return true;
}
}
return false;
}
}
?>