23,6 → 23,7 |
$this->wikini = $this->conteneur->getApiWikini(); |
$this->appUrls = $this->conteneur->getAppUrls(); |
$this->graphique = $this->conteneur->getApiGraphiques(); |
$this->syntaxons = $this->conteneur->getApiSyntaxons(); |
|
parent::__construct(); |
} |
31,10 → 32,13 |
$donnees = array(); |
$donnees['wikini'] = $this->getWikini(); |
$donnees['baseflor'] = $this->getBaseflor(); |
$donnees['baseveg'] = $this->getBaseveg(); |
$donnees['urls'] = $this->appUrls; |
return $donnees; |
} |
|
public function obtenirDonneesEXport() { |
//TO DO : rajouter baseveg ici et dans le squelette pdf |
public function obtenirDonneesExport() { |
$donnees = array(); |
$donnees['wikini'] = $this->getWikini(); |
$donnees['baseflor'] = $this->getBaseflorExport(); |
41,6 → 45,49 |
return $donnees; |
} |
|
public function getBaseflorCatminat($depart, $limite) { |
$baseflorCatminat = array(); |
$this->informations ->setProjet('baseflor'); |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel')); |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom')); |
$this->informations ->setDepart($depart); |
$this->informations ->setLimite($limite); |
$informations = $this->informations->getInformationsRelationCatminat(); |
if($informations != ""){ |
$baseflorCatminat['liste'] = $informations['resultat']; |
$baseflorCatminat['catminat'] = $informations['resultat'][0]['catminat_code']; |
$baseflorCatminat['lien_liste_fancy'] = $this->appUrls->obtenirUrlListeFancyBox('catminat',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom')); |
}else { |
$baseflorCatminat['aucune'] = 'Aucunes données'; |
} |
return $baseflorCatminat; |
} |
|
private function getBaseveg() { |
$baseveg = array(); |
$baseflor = $this->getBaseflorCatminat(0,5); |
$baseveg['baseflor'] = $baseflor; |
if (isset($baseflor['catminat'])) { |
$this->syntaxons->setProjet('baseveg'); |
$catminat = str_replace('/','-',$baseflor['catminat']); |
$this->syntaxons->setCatminat($catminat); |
$syntaxonsSup = $this->syntaxons->getSyntaxonsSuperieurs(); |
$baseveg['syntaxons-sup'] = $syntaxonsSup['resultat']; |
$syntaxonsCourant = $this->syntaxons->getSyntaxonsCatminat(); |
$baseveg['syntaxon-courant'] = $syntaxonsCourant['resultat']; |
$this->meta->setProjet('baseveg'); |
$meta = $this->meta->getMetaDonnees(); |
$citation = $meta[0]['citation']; |
$baseveg['meta']['citation'] = $citation; |
$baseveg['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseveg'); |
}else { |
$baseveg['aucune'] = 'Aucunes données'; |
} |
return $baseveg; |
} |
|
|
|
private function getWikini() { |
$wikini = array(); |
$wikini['titre'] = 'Wikini'; |