Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 909 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 909 Rev 944
Line 171... Line 171...
171
		if ($this->ressources[1] == 'relations'){
171
		if ($this->ressources[1] == 'relations'){
172
			switch ($this->ressources[2]) {
172
			switch ($this->ressources[2]) {
173
				case 'catminat' :
173
				case 'catminat' :
174
					$this->requete_condition[] = "catminat_code = ( SELECT catminat_code from ".$this->table_version[0]." WHERE "
174
					$this->requete_condition[] = "catminat_code = ( SELECT catminat_code from ".$this->table_version[0]." WHERE "
175
					." num_nomen = ".$id." AND BDNT = '".$ref. "' ) AND num_nomen != ".$id." ";
175
					." num_nomen = ".$id." AND BDNT = '".$ref. "' ) AND num_nomen != ".$id." ";
176
					$this->champs_recherches = " catminat_code, num_nomen, BDNT, idiotaxon ";
176
					$this->champs_recherches = " catminat_code, num_nomen, BDNT, nom_sci ";
177
					break;
177
					break;
178
				default :
178
				default :
179
					$e = 'Erreur dans l\'url de votre requête : </br> Le type de relation " '
179
					$e = 'Erreur dans l\'url de votre requête : </br> Le type de relation " '
180
				.$this->ressources[2].' " n\'existe pas.';
180
				.$this->ressources[2].' " n\'existe pas.';
181
				throw new Exception($e, RestServeur::HTTP_CODE_MAUVAISE_REQUETE);
181
				throw new Exception($e, RestServeur::HTTP_CODE_MAUVAISE_REQUETE);