Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1935 Rev 1978
Line 35... Line 35...
35
		$this->idProposition = $ressources[1];
35
		$this->idProposition = $ressources[1];
36
		$this->idValidateurObs = $this->validateurEstPresent($parametres) ? $parametres['validateur.id'] : $parametres['auteur.id'] ;
36
		$this->idValidateurObs = $this->validateurEstPresent($parametres) ? $parametres['validateur.id'] : $parametres['auteur.id'] ;
37
		$retourCel = $this->modifierObservationParDetermination();
37
		$retourCel = $this->modifierObservationParDetermination();
Line 38... Line 38...
38
 
38
 
39
		if (preg_match('/^(OK|Not Modified)$/i', $retourCel) == false) {
39
		if (preg_match('/^(OK|Not Modified)$/i', $retourCel) == false) {
40
			$msg = "Erreur: le web service du CEL a retourné : $e";
40
			$msg = "Erreur: le web service du CEL a retourné : $retourCel";
41
			$code = RestServeur::HTTP_CODE_ERREUR;
41
			$code = RestServeur::HTTP_CODE_ERREUR;
42
			throw new Exception($msg, $code);
42
			throw new Exception($msg, $code);
43
		}
43
		}
44
		return 'OK';
44
		return 'OK';