Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 91 Rev 104
Line 11... Line 11...
11
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
11
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
12
* @version 1.0
12
* @version 1.0
13
* @copyright 1999-2011 Tela Botanica (accueil@tela-botanica.org)
13
* @copyright 1999-2011 Tela Botanica (accueil@tela-botanica.org)
14
*/
14
*/
Line -... Line 15...
-
 
15
 
15
 
16
 
Line 16... Line 17...
16
abstract class CommunNomsTaxons extends Commun {
17
abstract class CommunNomsTaxons extends Commun {
17
 
18
 
18
	/** Tableau de correspondance entre les noms des champs et les codes de l'ontologie.*/
19
	/** Tableau de correspondance entre les noms des champs et les codes de l'ontologie.*/
Line 301... Line 302...
301
	// Fonction de formatage pour les services /#id/
302
	// Fonction de formatage pour les services /#id/
Line 302... Line 303...
302
 
303
 
303
	public function formaterId($resultat) {
304
	public function formaterId($resultat) {
304
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
305
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
-
 
306
		$this->resultat_req = $resultat;
305
		$this->resultat_req = $resultat;
307
		
306
		foreach ($resultat as $cle => $valeur) {
308
		foreach ($resultat as $cle => $valeur) {
307
			if ($valeur != '') {
309
			if ($valeur != '') {
308
				$this->afficherDonnees($cle, $valeur);
310
				$this->afficherDonnees($cle, $valeur);
309
			}
311
			}
-
 
312
		}
-
 
313
		if (isset($this->parametres['retour.champs']) && $this->format_reponse == 'noms/id') {
-
 
314
			$retour = $this->table_retour;
-
 
315
			$this->table_retour = array();
-
 
316
			$champs = explode(',', $this->parametres['retour.champs']);
-
 
317
			$this->ajouterChampsPersonnalises($champs, $retour);
310
		}
318
		}
311
		unset($this->table_retour['href']);
319
		unset($this->table_retour['href']);
312
		return $this->table_retour;
320
		return $this->table_retour;
Line 313... Line 321...
313
	}
321
	}