Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1026 Rev 1028
Line 41... Line 41...
41
		$this->donnees['widget']['referentiel'] = $this->referentiel;
41
		$this->donnees['widget']['referentiel'] = $this->referentiel;
42
		return $this->donnees;
42
		return $this->donnees;
43
	}
43
	}
Line 44... Line 44...
44
 
44
 
-
 
45
	public function obtenirDonneesExport() {
45
	public function obtenirDonneesExport() {
46
		$this->getRepartition();
-
 
47
		$donnees['chorodep'] = $this->donnees['repartition'];
-
 
48
		$this->getMoissonnageExport();
-
 
49
		// TODO: renommer l'index "eflore" en moissonnage
46
		$donnees['chorodep'] = $this->getRepartition();
50
		// et renommer dans pdf_export/squelettes/pdf_repartition.tpl.html 
47
		$donnees['eflore'] = $this->getMoissonnageExport();
51
		$donnees['eflore'] = $this->donnees['moissonnage'];
48
		return $donnees;
52
		return $donnees;
Line 49... Line 53...
49
	}
53
	}
50
	
54
	
-
 
55
	private function getRepartition() {
-
 
56
		$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
51
	private function getRepartition() {
57
		// eg: eflore ou chorodep
52
		$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
58
		// cf: bdtfx.ini, bdtxa.ini
53
		if ($projetRepartition != "") {
59
		if ($projetRepartition != "") {
Line 54... Line 60...
54
			$this->cartes->setProjet($projetRepartition);
60
			$this->cartes->setProjet($projetRepartition);
Line 75... Line 81...
75
		}
81
		}
76
	}
82
	}
Line 77... Line 83...
77
	
83
	
78
	private function getMoissonnage() {
84
	private function getMoissonnage() {
79
		$projetMoissonnage = Config::get($this->referentiel.'.baseMoissonnage');
85
		$projetMoissonnage = Config::get($this->referentiel.'.baseMoissonnage');
80
		if ($projetMoissonnage != "") {
86
		if (! $projetMoissonnage) return;
81
			$this->cartes->setProjet('moissonnage');
87
		$this->cartes->setProjet('moissonnage');
82
			$this->cartes->setLargeur('600');
88
		$this->cartes->setLargeur('600');
83
			$this->cartes->setInfoNom($this->nomCourant->getNt());
89
		$this->cartes->setInfoNom($this->nomCourant->getNt());
84
			$this->cartes->setInfoReferentiel($this->referentiel);
90
		$this->cartes->setInfoReferentiel($this->referentiel);
85
			$eflore['mapUrl'] = $this->cartes->getUrlMapSvg();
91
		$eflore['mapUrl'] = $this->cartes->getUrlMapSvg();
86
			$eflore['legende'] = $this->cartes->getLegende();
92
		$eflore['legende'] = $this->cartes->getLegende();
87
			$this->donnees['moissonnage'] = $eflore;
-
 
88
		}
93
		$this->donnees['moissonnage'] = $eflore;
Line 89... Line 94...
89
	}
94
	}
-
 
95
	
-
 
96
	private function getMoissonnageExport() {
90
	
97
		$projetMoissonnage = Config::get($this->referentiel.'.baseMoissonnage');
91
	private function getMoissonnageExport() {
98
		if (! $projetMoissonnage) return;
92
		$this->cartes->setProjet('eflore');
99
		$this->cartes->setProjet($projetMoissonnage);
93
		$this->cartes->setLargeur('min');
100
		$this->cartes->setLargeur('min');
94
		$this->cartes->setInfoNom($this->nomCourant->getNomRetenu());
101
		$this->cartes->setInfoNom($this->nomCourant->getNomRetenu());
95
		$eflore['min'] = $this->cartes->getUrlEflorePng();
102
		$eflore['min'] = $this->cartes->getUrlEflorePng();
96
		$eflore['legende'] = $this->cartes->getLegende();
103
		$eflore['legende'] = $this->cartes->getLegende();
Line 97... Line 104...
97
		return $eflore;
104
		$this->donnees['moissonnage'] = $eflore;
98
	}
105
	}
99
 
106