Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1216 → Rev 1217

/trunk/modules/fiche/formateurs/Repartition.php
36,6 → 36,7
public function obtenirDonnees() {
$this->getRepartition();
$this->getMoissonnage();
$this->getFloreProbable();
$this->donnees['widget']['nt'] = $this->nomCourant->getNt();
$this->donnees['widget']['nn'] = $this->nomCourant->getNnr();
$this->donnees['widget']['referentiel'] = $this->referentiel;
104,7 → 105,21
$eflore['legende'] = $this->cartes->getLegende();
$this->donnees['moissonnage'] = $eflore;
}
private function getFloreProbable() {
$projetFloreProbable = "sophy";//Config::get($this->referentiel.'.floreProbable');
if (! $projetFloreProbable) return;
$this->cartes->setProjet($projetFloreProbable);
 
$this->meta->setProjet($projetFloreProbable);
$this->cartes->setId($this->referentiel.'.nt:'.$this->nomCourant->getNt());
// TODO: url téléchargement de la carte lorsqu'on sera sur que c'est possible
// dans ['carte']['telechargement'] par exemple
$this->donnees['flore_probable'] = array('carte' => array(), 'meta' => array());
$this->donnees['flore_probable']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees($projetFloreProbable);
$this->donnees['flore_probable']['carte']['url'] = $this->cartes->getUrlFloreProbablePng();
}
 
public function getBloc() {
$donnees['chorodep'] = $this->getChorodepMiniature();
$donnees['eflore'] = $this->getMoissonnageMiniature();