Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 357 | Rev 533 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 357 Rev 363
Line 90... Line 90...
90
	public function verifierParamChamps($param, $val) {
90
	public function verifierParamChamps($param, $val) {
91
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
91
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
92
		$champs_demandes = explode(',', $val);
92
		$champs_demandes = explode(',', $val);
93
		$champs_verifies = array();
93
		$champs_verifies = array();
94
		$champs_api = array_flip($this->champs_api);
94
		$champs_api = array_flip($this->champs_api); 
-
 
95
		$champs_supp = array('nom_retenu_complet'=>'num_nom_retenu', 'basionyme_complet'=>'basionyme');
-
 
96
		$champs_api = array_merge($champs_api, $champs_supp);
95
		foreach ($champs_demandes as $champ) {
97
		foreach ($champs_demandes as $champ) {
96
			if (array_key_exists($champ, $champs_api)) {
98
			if (array_key_exists($champ, $champs_api)) {
97
				$champs_verifies[] = $champs_api[$champ];
99
				$champs_verifies[] = $champs_api[$champ];
98
			}
100
			}
99
		}
101
		}