334,12 → 334,14 |
} |
|
protected function ajouterChampsPersonnalises($champs, $reponse_id) { |
$champs_a_libeller = array('nom_retenu', 'rang', 'basionyme', 'hybride', 'hybride.parent_01', |
'hybride.parent_02', 'presence', 'tax_sup', 'statut_origine', 'statut_culture', 'statut_introduction'); |
if (! is_null($champs) && is_array($champs) && count($champs) > 0) { |
foreach ($champs as $champ) { |
if ($this->verifierValiditeChamp($champ)) { |
if (strrpos($champ, '.*') !== false) { |
$this->afficherPointEtoile($champ, $reponse_id); |
} elseif (strrpos($champ, '.') === false) { |
} elseif (in_array($champ, $champs_a_libeller)) { |
$this->table_retour[$champ.'.libelle'] = (isset($reponse_id[$champ])) ? $reponse_id[$champ] : null; |
} else { |
$champ = $this->trouverChampBddCorrespondant($champ); |
656,7 → 658,7 |
} elseif ($this->correspondAUnId($champ) || $champ == 'id') { |
$nom = $this->recupererNomSci($valeur); |
if ($nom != array()) { |
$this->table_retour[$champ] = $nom['nom_sci']; |
$this->table_retour[$champ.'.libelle'] = $nom['nom_sci']; |
$this->table_retour[$champ.'_html'] = $nom['nom_sci_html']; |
$this->table_retour[$champ.'_complet'] = $nom['nom_sci_complet']; |
$this->table_retour[$champ.'_html_complet'] = $nom['nom_sci_complet_html']; |
663,7 → 665,7 |
$this->service_href = $nom['service']; |
} |
} elseif ($this->correspondAUnCode($champ)) { |
$this->table_retour[$champ] = $this->ajouterSignificationCode($champ, $valeur); |
$this->table_retour[$champ.'.libelle'] = $this->ajouterSignificationCode($champ, $valeur); |
} |
} |
|