Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1144 Rev 1252
Line 125... Line 125...
125
 
125
 
126
	/*------------------------------------------------------------------------------------------------------------------
126
	/*------------------------------------------------------------------------------------------------------------------
127
								CONFIGURATION DU SERVICE
127
								CONFIGURATION DU SERVICE
128
	------------------------------------------------------------------------------------------------------------------*/
128
	------------------------------------------------------------------------------------------------------------------*/
129
	private function avoirRessourceService() {
-
 
130
		/*
-
 
131
		* url possibles :
-
 
132
		* http://localhost/del/services/0.1/images/ => toutes les images, appel à la classe ListeImages
-
 
133
		* http://localhost/del/services/0.1/images/#id => une image donnée => non utilisé sur DEL pour l'instant
-
 
134
		* http://localhost/del/services/0.1/images/#id/votes/ => tous les votes d'une image classés par protocole
-
 
135
		* http://localhost/del/services/0.1/images/#id/votes/protocole/#id => tous les votes d'une image et d'un protocole donné
-
 
136
		* http://localhost/del/services/0.1/images/#id/votes/#id => un vote donné pour une image donnée.
-
 
137
		* */
129
	private function avoirRessourceService() {
138
		$presenceRessourceService = false;
130
		$presenceRessourceService = false;
139
		if (isset($this->ressources[0])) {
131
		if (isset($this->ressources[0])) {
140
			if($this->ressources[0] == 'images-determinations-probables') {
132
			if($this->ressources[0] == 'images-determinations-probables') {
141
				$presenceRessourceService = true;
133
				$presenceRessourceService = true;
-
 
134
				$this->serviceNom = 'liste-images-determinations-probables';
-
 
135
			} else if($this->ressources[0] == 'valider-determination') {
-
 
136
				$presenceRessourceService = true;
142
				$this->serviceNom = 'liste-images-determinations-probables';
137
				$this->serviceNom = 'valider-determination';
143
			} else {
138
			} else {
144
				$this->editerMessageErreurRessource();
139
				$this->editerMessageErreurRessource();
145
			}
140
			}
146
		}
141
		}
Line 166... Line 161...
166
		}
161
		}
167
		return $presenceId;
162
		return $presenceId;
168
	}
163
	}
Line 169... Line 164...
169
 
164
 
170
	private function initialiserService() {
-
 
Line 171... Line 165...
171
		//$this->chargerNomDuService();
165
	private function initialiserService() {
172
		
166
		
173
		$classe = $this->obtenirNomClasseService($this->serviceNom);
167
		$classe = $this->obtenirNomClasseService($this->serviceNom);
174
		$chemins = array();
168
		$chemins = array();