Subversion Repositories eFlore/Applications.del

Rev

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

Rev 841 Rev 985
Line 98... Line 98...
98
		return $retour;
98
		return $retour;
99
	}
99
	}
Line 100... Line 100...
100
	
100
	
101
	private function avoirRessourceIdentifiant($num) {
101
	private function avoirRessourceIdentifiant($num) {
102
		$presenceId = false;
102
		$presenceId = false;
103
			if (is_numeric($this->ressources[$num])) {
103
		if (is_numeric($this->ressources[$num])) {
104
				$presenceId = true;
104
			$presenceId = true;
105
			} else {
105
		} else {
106
				$message = "Le service demandé '$service' nécessite d'avoir un identifiant d'image valide";
106
			$message = "Le service demandé '$service' nécessite d'avoir un identifiant d'image valide";
107
				$code = RestServeur::HTTP_CODE_RESSOURCE_INTROUVABLE;
107
			$code = RestServeur::HTTP_CODE_RESSOURCE_INTROUVABLE;
108
				throw new Exception($message, $code);
108
			throw new Exception($message, $code);
109
			}
109
		}
110
		return $presenceId;
110
		return $presenceId;
111
	}
111
	}
112
	/*------------------------------------------------------------------------------------------------------------------
112
	/*------------------------------------------------------------------------------------------------------------------
113
										CONFIGURATION DU PROJET
113
										CONFIGURATION DU PROJET
Line 146... Line 146...
146
				} else {
146
				} else {
147
					if (isset($this->ressources[1])) {
147
					if (isset($this->ressources[1])) {
148
						$presenceRessourceService = $this->avoirRessourceSousService();
148
						$presenceRessourceService = $this->avoirRessourceSousService();
149
					}
149
					}
150
				} 
150
				} 
151
			} 
151
			}
152
		} else {
152
		} else {
-
 
153
			if (isset($this->parametres['retour.format']) && $this->parametres['retour.format'] == 'widget') {
-
 
154
				$this->methode = 'consulter';
153
			$presenceRessourceService = true;
155
				$presenceRessourceService = true;
-
 
156
				$this->serviceNom = 'liste-observations-widget';
-
 
157
			} else {
-
 
158
				$presenceRessourceService = true;
154
			$this->serviceNom = 'liste-observations';
159
				$this->serviceNom = 'liste-observations';
-
 
160
			}
155
		}
161
		}
156
		return $presenceRessourceService;
162
		return $presenceRessourceService;
157
	}
163
	}
Line 158... Line 164...
158
	
164