Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1149 Rev 1158
Line 68... Line 68...
68
		}
68
		}
69
		$corps = $reponseHttp->getCorps();
69
		$corps = $reponseHttp->getCorps();
70
		return $corps;
70
		return $corps;
71
	}
71
	}
Line -... Line 72...
-
 
72
	
-
 
73
	public function supprimer($ressources) {
-
 
74
		$this->methode = 'supprimer';
-
 
75
		$resultat = '';
-
 
76
		$reponseHttp = new ReponseHttp();
-
 
77
		try {
-
 
78
			$this->ressources = $ressources;
-
 
79
			$this->conteneur = new Conteneur();
-
 
80
			$resultat = $this->traiterRessources();
-
 
81
			$reponseHttp->setResultatService($resultat);
-
 
82
		} catch (Exception $e) {
-
 
83
			$reponseHttp->ajouterErreur($e);
-
 
84
			$reponseHttp->emettreLesEntetes();
-
 
85
			echo $reponseHttp->getCorps();
-
 
86
		}
-
 
87
	}
72
	
88
	
Line 73... Line 89...
73
	public function modifier($ressources, $requeteDonnees) {
89
	public function modifier($ressources, $requeteDonnees) {
Line 74... Line 90...
74
		
90
		
Line 171... Line 187...
171
					$retour = $service->consulter($this->ressources, $this->parametres);
187
					$retour = $service->consulter($this->ressources, $this->parametres);
172
				} elseif ($this->methode == 'ajouter') {
188
				} elseif ($this->methode == 'ajouter') {
173
					$retour = $service->ajouter($this->ressources, $this->parametres);
189
					$retour = $service->ajouter($this->ressources, $this->parametres);
174
				} elseif ($this->methode == 'modifier') {
190
				} elseif ($this->methode == 'modifier') {
175
					$retour = $service->modifier($this->ressources, $this->parametres);
191
					$retour = $service->modifier($this->ressources, $this->parametres);
-
 
192
				} elseif ($this->methode == 'supprimer') {
-
 
193
					$retour = $service->supprimer($this->ressources, $this->parametres);
176
				}
194
				}
177
			}
195
			}
178
		}
196
		}
Line 179... Line 197...
179
		
197