Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1806 Rev 1809
Line 107... Line 107...
107
		foreach ($chemins as $chemin) {
107
		foreach ($chemins as $chemin) {
108
			if (file_exists($chemin)) {
108
			if (file_exists($chemin)) {
109
				require_once $chemin;
109
				require_once $chemin;
110
				$service = new $classe($this->conteneur);
110
				$service = new $classe($this->conteneur);
111
				if ($this->methode == 'consulter') {
111
				if ($this->methode == 'consulter') {
112
					$retour = $service->consulter($this->parametres);
112
					$retour = $service->consulter();
113
				} else {
113
				} else {
114
					$message = "Le sous-service '{$this->sousServiceNom}' du service '{$this->serviceNom}' ".
114
					$message = "Le sous-service '{$this->sousServiceNom}' du service '{$this->serviceNom}' ".
115
						"ne possède pas de méthode '{$this->methode}' !";
115
						"ne possède pas de méthode '{$this->methode}' !";
116
					$code = RestServeur::HTTP_NON_IMPLEMENTE;
116
					$code = RestServeur::HTTP_NON_IMPLEMENTE;
117
					throw new Exception($message, $code);
117
					throw new Exception($message, $code);