Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1130 Rev 1165
Line 123... Line 123...
123
 
123
 
124
		return $donnees;
124
		return $donnees;
Line 125... Line 125...
125
	}
125
	}
-
 
126
	
-
 
127
	private function getChorodepMiniature() {
-
 
128
		$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
-
 
129
		$url = null;
126
	
130
		if ($projetRepartition != "") {
127
	private function getChorodepMiniature() {
131
			$this->cartes->setProjet($projetRepartition);
128
		$this->cartes->setProjet('chorodep');
132
			$this->cartes->setProjet('chorodep');
129
		$this->cartes->setLargeur('190x178');
133
			$this->cartes->setLargeur('190x178');
130
		//TODO: démochir ce code
134
			//TODO: démochir ce code
131
		// Chargement des nn des synonymes pour obtenir une carte plus complète
135
			// Chargement des nn des synonymes pour obtenir une carte plus complète
132
		$noms = $this->conteneur->getApiNoms();
136
			$noms = $this->conteneur->getApiNoms();
133
		$syns = $noms->getSynonymes($this->nomCourant->getNnr());
137
			$syns = $noms->getSynonymes($this->nomCourant->getNnr());
134
		$nns_syns = array_keys($syns['resultat']);
138
			$nns_syns = array_keys($syns['resultat']);
135
		$nns_syns[] = $this->nomCourant->getNnr();
139
			$nns_syns[] = $this->nomCourant->getNnr();
136
		$id = 'nn:'.implode(',', $nns_syns);
140
			$id = 'nn:'.implode(',', $nns_syns);
-
 
141
			$this->cartes->setId($id);
-
 
142
			$url =  $this->cartes->getUrlPng();
137
		$this->cartes->setId($id);
143
		}
Line 138... Line 144...
138
		return $this->cartes->getUrlPng();
144
		return $url;
-
 
145
	}
-
 
146
	
-
 
147
	private function getMoissonnageMiniature() {
139
	}
148
		$projetMoissonnage = Config::get($this->referentiel.'.baseMoissonnage');
140
	
149
		$url = null;
141
	private function getMoissonnageMiniature() {
150
		if ($projetRepartition != "") {
142
		$this->cartes->setProjet('moissonnage');
151
			$this->cartes->setProjet('moissonnage');
143
		$this->cartes->setLargeur('190');
152
			$this->cartes->setLargeur('190');
-
 
153
			$this->cartes->setInfoReferentiel($this->referentiel);
-
 
154
			$this->cartes->setInfoNom($this->nomCourant->getNt());
144
		$this->cartes->setInfoReferentiel($this->referentiel);
155
			$url = $this->cartes->getUrlMapPng();
145
		$this->cartes->setInfoNom($this->nomCourant->getNt());
156
		}
146
		return $this->cartes->getUrlMapPng();
157
		return $url;
147
	}
158
	}