Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1491 Rev 1527
Line 93... Line 93...
93
		
93
		
94
		return $nb_obs;
94
		return $nb_obs;
Line 95... Line 95...
95
	}
95
	}
-
 
96
	
-
 
97
	public function formaterPourEnvoiCel($tableau_observations) {
96
	
98
		
97
	public function formaterPourEnvoiCel($tableau_observations) {
99
		$ids = array();
98
		foreach($tableau_observations as &$observation) {
100
		foreach($tableau_observations as &$observation) {
-
 
101
			$observation['ce_zone_geo'] = $this->convertirCodeZoneGeoVersCodeInsee($observation['ce_zone_geo']);
-
 
102
			$ids_mots_cles = $this->getIdsMotsClesObservation($observation['id_observation']);
99
			$observation['ce_zone_geo'] = $this->convertirCodeZoneGeoVersCodeInsee($observation['ce_zone_geo']);
103
			
100
			$ids_mots_cles = $this->getIdsMotsClesObservation($observation['id_observation']);
104
			$ids[] = $observation['id_observation'];
101
			$mots_cles_chaine = '';
105
			$mots_cles_chaine = '';
102
			foreach($ids_mots_cles as $id_mot_cle) {
106
			foreach($ids_mots_cles as $id_mot_cle) {
103
				$mots_cles_chaine .= $id_mot_cle['id_mot_cle_obs'].';';
107
				$mots_cles_chaine .= $id_mot_cle['id_mot_cle_obs'].';';
Line 110... Line 114...
110
					$observation[$champ] = "";
114
					$observation[$champ] = "";
111
				}
115
				}
112
			}
116
			}
113
		}
117
		}
Line -... Line 118...
-
 
118
		
-
 
119
		$gestion_champs_etendus = new GestionChampsEtendus($this->config, 'obs');
-
 
120
		$champs_supp = $gestion_champs_etendus->obtenirChampsEtendusPourElementsMultiples($ids);
-
 
121
		
-
 
122
		foreach($tableau_observations as &$obs) {
-
 
123
			if(isset($champs_supp[$obs['id_observation']])) {
-
 
124
				$obs['obs_etendue'] = $champs_supp[$obs['id_observation']];
-
 
125
			}
-
 
126
		}
114
		
127
		
115
		return $tableau_observations;
128
		return $tableau_observations;
Line 116... Line 129...
116
	}
129
	}
117
	
130