4,7 → 4,8 |
* |
* @category PHP |
* @package jrest |
* @author david <david@tela-botania.org> |
* @author David Delon <david@tela-botania.org> |
* @author Aurélien Peronnet <aurelien@tela-botania.org> |
* @copyright 2010 Tela-Botanica |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @version SVN: <svn_id> |
21,10 → 22,9 |
|
public function RechercheInfosTaxon($config) { |
|
parent::__construct($config); |
|
parent::__construct($config); |
// Connection à la base de données spécifique eflore |
$this->bdd = $this->connecterPDO($this->config, 'database'); |
$this->bdd = $this->connecterPDO($this->config, 'eflore'); |
} |
|
public function rechercherGenreEspeceSurPrefixe($genre = null, $espece = null) { |
72,17 → 72,16 |
} |
} |
|
if($requete_recherche != '') { |
if ($requete_recherche != '') { |
$resultat_recherche = $this->requeter($requete_recherche); |
|
if (is_array($resultat_recherche)) { |
foreach($resultat_recherche as $ligne) { |
foreach ($resultat_recherche as $ligne) { |
$liste_genre_espece[] = array($this->formaterNom($ligne), |
$ligne['en_id_nom'], |
$ligne['esn_ce_statut'] |
); |
} |
|
} |
} |
|
97,7 → 96,7 |
$value=array('Nom_Retenu'=>"",'Num_Nom_Retenu'=>"0",'Num_Taxon'=>"0",'Famille'=>""); |
|
if (is_array($resultat_infos_complementaires)) { |
foreach($resultat_infos_complementaires as $row) { |
foreach ($resultat_infos_complementaires as $row) { |
$fam=$this->rechercherFamille($row['esn_id_taxon']); |
while (($fam['en_ce_rang']!='fin') && ($fam['en_ce_rang'] !=120)) { |
$fam=$this->rechercherFamille($fam['etr_id_taxon_2']); |
165,7 → 164,7 |
|
$value = array(); |
|
if($nom_saisi != null && $nom_saisi != "") { |
if ($nom_saisi != null && $nom_saisi != "") { |
|
$requete_infos_comp_sur_nom = 'SELECT * FROM '.$this->config['cel_db']['bdd_eflore'].'.eflore_nom_intitule '. |
'WHERE eni_id_categorie_format = 3 AND '. |
188,7 → 187,7 |
|
public function rechercherFamille($taxon) { |
|
$row=array(); |
$row = array(); |
|
$requete_famille = "SELECT DISTINCT en_ce_rang, etr_id_taxon_2, en_id_nom, en_nom_supra_generique ". |
" FROM eflore_taxon_relation, ". |
229,7 → 228,7 |
$res_num_nom = $this->requeter($requete_num_tax); |
|
$nt = null; |
if(is_array($res_num_nom) && count($res_num_nom) > 0) { |
if (is_array($res_num_nom) && count($res_num_nom) > 0) { |
$nt=$res_num_nom[0]['esn_id_taxon']; |
} |
|