Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1621 Rev 1623
Line 44... Line 44...
44
		$this->methode = 'consulter';
44
		$this->methode = 'consulter';
45
		$this->initialiserRessourcesEtParametres($ressources, $parametres);
45
		$this->initialiserRessourcesEtParametres($ressources, $parametres);
46
		return $this->executerService();
46
		return $this->executerService();
47
	}
47
	}
Line -... Line 48...
-
 
48
 
-
 
49
	public function ajouter($ressources, $requeteDonnees) {
-
 
50
		$this->methode = 'ajouter';
-
 
51
		$this->initialiserRessourcesEtParametres($ressources, $requeteDonnees);
-
 
52
		return $this->executerService();
-
 
53
	}
-
 
54
 
-
 
55
	public function modifier($ressources, $requeteDonnees) {
-
 
56
		$this->methode = 'supprimer';
-
 
57
		$this->initialiserRessourcesEtParametres($ressources, $requeteDonnees);
-
 
58
		return $this->executerService();
-
 
59
	}
48
 
60
 
49
	public function supprimer($ressources) {
61
	public function supprimer($ressources) {
50
		$this->methode = 'supprimer';
62
		$this->methode = 'supprimer';
51
		$this->initialiserRessourcesEtParametres($ressources);
63
		$this->initialiserRessourcesEtParametres($ressources);
52
		return $this->executerService();
64
		return $this->executerService();
Line 94... Line 106...
94
	 *
106
	 *
95
	 * URLs possibles DELETE :
107
	 * URLs possibles DELETE :
96
	 * http://localhost/del/services/0.1/images/#id => supprimer une image donnée
108
	 * http://localhost/del/services/0.1/images/#id => supprimer une image donnée
97
	 */
109
	 */
98
	private function analyserRessources() {
110
	private function analyserRessources() {
99
		if ($this->methode == 'consulter') {
111
		if ($this->methode == 'consulter' || $this->methode == 'modifier' || $this->methode == 'ajouter') {
100
			$this->analyserRessoucerConsultation();
112
			$this->analyserRessoucerConsultation();
101
		} else if ($this->methode == 'supprimer') {
113
		} else if ($this->methode == 'supprimer') {
102
			$this->analyserRessoucerSuppression();
114
			$this->analyserRessoucerSuppression();
103
		}
115
		}
104
	}
116
	}