Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 3 | Rev 236 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 8
Line 65... Line 65...
65
	
65
 
66
	public function traiterParametres($parametres) {
66
	public function traiterParametres($parametres) {
67
		if (isset($parametres) && !empty($parametres)) {
67
		if (isset($parametres) && !empty($parametres)) {
68
			foreach ($parametres as $param => $val) {
68
			foreach ($parametres as $param => $val) {
69
				switch ($param) { 
69
				switch ($param) {
70
					case 'retour_langue' : $this->rechercherLangueDispo($val);	break;
70
					case 'retour.langue' : $this->rechercherLangueDispo($val);	break;
71
					case 'retour_format' : $this->retour_format = $val;			break;
71
					case 'retour.format' : $this->retour_format = $val;			break;
72
					default				 : 
72
					default				 :
73
						$e = 'Erreur dans les paramètres de recherche de votre requête : </br> Le paramètre " '
73
						$e = 'Erreur dans les paramètres de recherche de votre requête : </br> Le paramètre " '
74
							.$param.' " n\'existe pas.';
74
							.$param.' " n\'existe pas.';
75
						$this->renvoyerErreur(RestServeur::HTTP_CODE_MAUVAISE_REQUETE, $e);
75
						$this->renvoyerErreur(RestServeur::HTTP_CODE_MAUVAISE_REQUETE, $e);