Line 141... |
Line 141... |
141 |
public function verifierParamChamps($param, $val) {
|
141 |
public function verifierParamChamps($param, $val) {
|
142 |
$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
|
142 |
$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
|
143 |
$champs_demandes = explode(',', $val);
|
143 |
$champs_demandes = explode(',', $val);
|
144 |
$champs_verifies = array();
|
144 |
$champs_verifies = array();
|
145 |
$champs_api = array_flip($this->champs_api);
|
145 |
$champs_api = array_flip($this->champs_api);
|
146 |
$champs_supp = array('nom_retenu_complet'=>'num_nom_retenu', 'basionyme_complet'=>'num_basionyme');
|
146 |
$champs_supp = array('nom_retenu_complet'=>'nom_ret_complet', 'basionyme_complet'=>'num_basionyme');
|
147 |
$champs_api = array_merge($champs_api, $champs_supp);
|
147 |
$champs_api = array_merge($champs_api, $champs_supp);
|
148 |
foreach ($champs_demandes as $champ) {
|
148 |
foreach ($champs_demandes as $champ) {
|
149 |
if (array_key_exists($champ, $champs_api)) {
|
149 |
if (array_key_exists($champ, $champs_api)) {
|
150 |
$champs_verifies[] = $champs_api[$champ];
|
150 |
$champs_verifies[] = $champs_api[$champ];
|
151 |
}
|
151 |
}
|