Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 53 → Rev 54

/trunk/bibliotheque/dao/MetaDao.php
23,7 → 23,7
* @return mixed un tableau contenant les informations sur les dernières méta-données ou false en cas d'échec.
*/
public function getDerniere($code_projet) {
$url = $this->url."/Derniere/$code_projet";
$url = $this->url_jrest.self::SERVICE."/Derniere/$code_projet";
$json = $this->envoyerRequeteConsultation($url);
$traitements = json_decode($json, true);
37,8 → 37,9
* @return mixed l'id du traitement ou false en cas d'échec.
*/
public function ajouter($metadonnees) {
// Envoie des données et récupération du retour
$json = $this->envoyerRequeteAjout($this->url, $metadonnees);
$url = $this->url_jrest.self::SERVICE;
$json = $this->envoyerRequeteAjout($url, $metadonnees);
$id = json_decode($json, true);
return $id;
}