Line 51... |
Line 51... |
51 |
|
51 |
|
52 |
public function getBaseflorCatminat($depart, $limite) {
|
52 |
public function getBaseflorCatminat($depart, $limite) {
|
53 |
$baseflorCatminat = array();
|
53 |
$baseflorCatminat = array();
|
54 |
$this->informations->setProjet('baseflor');
|
54 |
$this->informations->setProjet('baseflor');
|
55 |
$this->informations->setBdnt($this->conteneur->getParametre('referentiel'));
|
55 |
$this->informations->setBdnt($this->conteneur->getParametre('referentiel'));
|
56 |
$this->informations->setNum_nom($this->conteneur->getParametre('num_nom'));
|
56 |
$this->informations->setNum_nom($this->nomCourant->getNnr());
|
57 |
$this->informations->setDepart($depart);
|
57 |
$this->informations->setDepart($depart);
|
58 |
$this->informations->setLimite($limite);
|
58 |
$this->informations->setLimite($limite);
|
59 |
$informations = $this->informations->getInformationsRelationCatminat();
|
59 |
$informations = $this->informations->getInformationsRelationCatminat();
|
60 |
if($informations != ""){
|
60 |
if($informations != ""){
|
61 |
$baseflorCatminat['catminat'] = $informations['resultat'][0]['catminat_code'];
|
61 |
$baseflorCatminat['catminat'] = $informations['resultat'][0]['catminat_code'];
|
62 |
$baseflorCatminat['lien-liste-fancy'] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_taxons',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$baseflorCatminat['catminat']);
|
62 |
$baseflorCatminat['lien-liste-fancy'] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_taxons',$this->conteneur->getParametre('referentiel'),$this->nomCourant->getNnr(),$baseflorCatminat['catminat']);
|
63 |
}else {
|
63 |
}else {
|
64 |
$baseflorCatminat['aucune'] = 'Aucunes données';
|
64 |
$baseflorCatminat['aucune'] = 'Aucunes données';
|
65 |
}
|
65 |
}
|
66 |
return $baseflorCatminat;
|
66 |
return $baseflorCatminat;
|
Line 79... |
Line 79... |
79 |
$baseveg['syntaxons-sup'] = $syntaxonsSup['resultat'];
|
79 |
$baseveg['syntaxons-sup'] = $syntaxonsSup['resultat'];
|
80 |
$syntaxonsCourant = $this->syntaxons->getSyntaxonsCatminat();
|
80 |
$syntaxonsCourant = $this->syntaxons->getSyntaxonsCatminat();
|
81 |
$baseveg['syntaxon-courant'] = $syntaxonsCourant['resultat'];
|
81 |
$baseveg['syntaxon-courant'] = $syntaxonsCourant['resultat'];
|
82 |
foreach ($baseveg['syntaxons-sup'] as $cle => $valeurs) {
|
82 |
foreach ($baseveg['syntaxons-sup'] as $cle => $valeurs) {
|
83 |
$catminat_sup = str_replace('/','-',$valeurs['code_catminat']);
|
83 |
$catminat_sup = str_replace('/','-',$valeurs['code_catminat']);
|
84 |
$baseveg['synonymes']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup);
|
84 |
$baseveg['synonymes']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->nomCourant->getNnr(),$catminat_sup);
|
85 |
$baseveg['ref']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup);
|
85 |
$baseveg['ref']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->nomCourant->getNnr(),$catminat_sup);
|
86 |
$baseveg['taxons']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_taxons_sup',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup);
|
86 |
$baseveg['taxons']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_taxons_sup',$this->conteneur->getParametre('referentiel'),$this->nomCourant->getNnr(),$catminat_sup);
|
87 |
}
|
87 |
}
|
88 |
$baseveg['synonymes']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat);
|
88 |
$baseveg['synonymes']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->nomCourant->getNnr(),$catminat);
|
89 |
$baseveg['ref']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat);
|
89 |
$baseveg['ref']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->nomCourant->getNnr(),$catminat);
|
90 |
$this->meta->setProjet('baseveg');
|
90 |
$this->meta->setProjet('baseveg');
|
91 |
$meta = $this->meta->getMetaDonnees();
|
91 |
$meta = $this->meta->getMetaDonnees();
|
92 |
$citation = $meta[0]['citation'];
|
92 |
$citation = $meta[0]['citation'];
|
93 |
$baseveg['meta']['citation'] = $citation;
|
93 |
$baseveg['meta']['citation'] = $citation;
|
94 |
$baseveg['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseveg');
|
94 |
$baseveg['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseveg');
|
Line 134... |
Line 134... |
134 |
|
134 |
|
135 |
private function getBaseflorExport() {
|
135 |
private function getBaseflorExport() {
|
136 |
$baseflor = array();
|
136 |
$baseflor = array();
|
137 |
$this->informations ->setProjet('baseflor');
|
137 |
$this->informations ->setProjet('baseflor');
|
138 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
138 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
139 |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
|
139 |
$this->informations ->setNum_nom($this->nomCourant->getNnr());
|
140 |
$informations = $this->informations->getInformationsEcologie();
|
140 |
$informations = $this->informations->getInformationsEcologie();
|
141 |
if(is_array($informations)){
|
141 |
if(is_array($informations)){
|
142 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
142 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
143 |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
|
143 |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
|
Line 155... |
Line 155... |
155 |
return $baseflor;
|
155 |
return $baseflor;
|
156 |
}
|
156 |
}
|
Line 157... |
Line 157... |
157 |
|
157 |
|
158 |
private function getBaseflor($inclure_legende = true) {
|
158 |
private function getBaseflor($inclure_legende = true) {
|
159 |
if (Config::get($this->referentiel.'.baseEcologie') != "") {
|
159 |
if (Config::get($this->referentiel.'.baseEcologie') != "") {
|
160 |
$num_nom = $this->nomCourant->getNns();
|
160 |
$num_nom = $this->nomCourant->getNnr();
|
161 |
$referentiel = $this->conteneur->getParametre('referentiel');
|
161 |
$referentiel = $this->conteneur->getParametre('referentiel');
|
162 |
$cache = $this->obtenirCache('baseflor/graphique/'.$referentiel.'_'.$num_nom);
|
162 |
$cache = $this->obtenirCache('baseflor/graphique/'.$referentiel.'_'.$num_nom);
|
163 |
if($cache != null) {
|
163 |
if($cache != null) {
|
164 |
$baseflor = $cache;
|
164 |
$baseflor = $cache;
|
Line 167... |
Line 167... |
167 |
$baseflor['legende'] = $graphique ;
|
167 |
$baseflor['legende'] = $graphique ;
|
168 |
} else {
|
168 |
} else {
|
169 |
$baseflor = array();
|
169 |
$baseflor = array();
|
170 |
$this->informations ->setProjet('baseflor');
|
170 |
$this->informations ->setProjet('baseflor');
|
171 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
171 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
172 |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
|
172 |
$this->informations ->setNum_nom($this->nomCourant->getNnr());
|
173 |
$informations = $this->informations->getInformationsEcologie();
|
173 |
$informations = $this->informations->getInformationsEcologie();
|
174 |
if(is_array($informations)){
|
174 |
if(is_array($informations)){
|
175 |
if (isset($informations['graphique_climat'])) {
|
175 |
if (isset($informations['graphique_climat'])) {
|
176 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
176 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
177 |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
|
177 |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
|