Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 763 Rev 770
Line 21... Line 21...
21
		$this->informations = $this->conteneur->getApiInformations();
21
		$this->informations = $this->conteneur->getApiInformations();
22
		$this->meta = $this->conteneur->getApiMetaDonnees();
22
		$this->meta = $this->conteneur->getApiMetaDonnees();
23
		$this->wikini = $this->conteneur->getApiWikini();
23
		$this->wikini = $this->conteneur->getApiWikini();
24
		$this->appUrls = $this->conteneur->getAppUrls();
24
		$this->appUrls = $this->conteneur->getAppUrls();
25
		$this->graphique = $this->conteneur->getApiGraphiques();
25
		$this->graphique = $this->conteneur->getApiGraphiques();
-
 
26
		$this->syntaxons = $this->conteneur->getApiSyntaxons();
Line 26... Line 27...
26
		
27
		
27
		parent::__construct();
28
		parent::__construct();
Line 28... Line 29...
28
	}
29
	}
29
	
30
	
30
	public function obtenirDonnees() {
31
	public function obtenirDonnees() {
31
		$donnees = array();
32
		$donnees = array();
-
 
33
		$donnees['wikini'] = $this->getWikini();
-
 
34
		$donnees['baseflor'] = $this->getBaseflor();
32
		$donnees['wikini'] = $this->getWikini();
35
		$donnees['baseveg'] = $this->getBaseveg();
33
		$donnees['baseflor'] = $this->getBaseflor();
36
		$donnees['urls'] = $this->appUrls;
Line -... Line 37...
-
 
37
		return $donnees;
34
		return $donnees;
38
	}
35
	}
39
	
36
	
40
	//TO DO : rajouter baseveg  ici et dans le squelette pdf
37
	public function obtenirDonneesEXport() {
41
	public function obtenirDonneesExport() {
38
		$donnees = array();
42
		$donnees = array();
39
		$donnees['wikini'] = $this->getWikini();
43
		$donnees['wikini'] = $this->getWikini();
Line -... Line 44...
-
 
44
		$donnees['baseflor'] = $this->getBaseflorExport();
-
 
45
		return $donnees;
-
 
46
	}
-
 
47
	
-
 
48
	public function getBaseflorCatminat($depart, $limite) {
-
 
49
		$baseflorCatminat = array();
-
 
50
		$this->informations ->setProjet('baseflor');
-
 
51
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
-
 
52
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
-
 
53
		$this->informations ->setDepart($depart);
-
 
54
		$this->informations ->setLimite($limite);
-
 
55
		$informations = $this->informations->getInformationsRelationCatminat();
-
 
56
		if($informations != ""){
-
 
57
			$baseflorCatminat['liste'] = $informations['resultat'];
-
 
58
			$baseflorCatminat['catminat'] = $informations['resultat'][0]['catminat_code'];
-
 
59
			$baseflorCatminat['lien_liste_fancy'] = $this->appUrls->obtenirUrlListeFancyBox('catminat',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'));
-
 
60
		}else {
-
 
61
			$baseflorCatminat['aucune'] = 'Aucunes données';
-
 
62
		}
-
 
63
		return $baseflorCatminat;
-
 
64
	}
-
 
65
	
-
 
66
	private function getBaseveg() {
-
 
67
		$baseveg = array();
-
 
68
		$baseflor = $this->getBaseflorCatminat(0,5);
-
 
69
		$baseveg['baseflor'] = $baseflor;
-
 
70
		if (isset($baseflor['catminat'])) {
-
 
71
			$this->syntaxons->setProjet('baseveg');
-
 
72
			$catminat = str_replace('/','-',$baseflor['catminat']);
-
 
73
			$this->syntaxons->setCatminat($catminat);
-
 
74
			$syntaxonsSup = $this->syntaxons->getSyntaxonsSuperieurs();
-
 
75
			$baseveg['syntaxons-sup'] = $syntaxonsSup['resultat'];
-
 
76
			$syntaxonsCourant = $this->syntaxons->getSyntaxonsCatminat();
-
 
77
			$baseveg['syntaxon-courant'] = $syntaxonsCourant['resultat'];
-
 
78
			$this->meta->setProjet('baseveg');
-
 
79
			$meta = $this->meta->getMetaDonnees();
-
 
80
			$citation = $meta[0]['citation'];
-
 
81
			$baseveg['meta']['citation'] = $citation;
-
 
82
			$baseveg['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseveg');
-
 
83
		}else {
-
 
84
			$baseveg['aucune'] = 'Aucunes données';
-
 
85
		}
-
 
86
		return $baseveg;
40
		$donnees['baseflor'] = $this->getBaseflorExport();
87
	}
41
		return $donnees;
88
	
42
	}
89
	
43
	
90
	
44
	private function getWikini() {
91
	private function getWikini() {