Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 762 Rev 765
Line 231... Line 231...
231
		try {
231
		try {
232
			$val = $this->getBdd()->recuperer(sprintf(
232
			$val = $this->getBdd()->recuperer(sprintf(
233
				"SELECT a.nom FROM baseflor_ontologies a LEFT JOIN baseflor_ontologies b ON a.id = b.id LEFT JOIN baseflor_ontologies c ON b.classe_id = c.id WHERE".
233
				"SELECT a.nom FROM baseflor_ontologies a LEFT JOIN baseflor_ontologies b ON a.id = b.id LEFT JOIN baseflor_ontologies c ON b.classe_id = c.id WHERE".
234
				" b.code = BINARY '%s' AND c.code = BINARY '%s' LIMIT 0, 100",
234
				" b.code = BINARY '%s' AND c.code = BINARY '%s' LIMIT 0, 100",
235
				$valeur,
235
				$valeur,
236
				$this->champs_ontologiques[$chps_sans]));
236
				$this->champs_ontologiques[$chps_sans]),
-
 
237
											  Bdd::MODE_OBJET);
237
			$this->resultat_json[$champs.'.libelle'] = $val['nom'];
238
			$this->resultat_json[$champs.'.libelle'] = $val->nom;
238
			$this->resultat_json[$champs.'.code'] = $valeur;
239
			$this->resultat_json[$champs.'.code'] = $valeur;
239
			$this->resultat_json[$champs.'.href'] = $url;
240
			$this->resultat_json[$champs.'.href'] = $url;
240
		} catch (Exception $e) {
241
		} catch (Exception $e) {
241
			$this->resultat_json[$champs.'.libelle'] = '';
242
			$this->resultat_json[$champs.'.libelle'] = '';
242
			$this->resultat_json[$champs.'.code'] = '';
243
			$this->resultat_json[$champs.'.code'] = '';