Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 696 → Rev 697

/trunk/modules/fiche/formateurs/Repartition.php
37,6 → 37,12
return $donnees;
}
 
public function obtenirDonneesExport() {
$donnees['chorodep'] = $this->getChorodep();
$donnees['eflore'] = $this->getEfloreExport();
return $donnees;
}
private function getChorodep() {
$this->cartes->setProjet('chorodep');
$this->cartes->setLargeur('630');
61,6 → 67,15
$eflore['legende'] = $this->cartes->getLegende();
return $eflore;
}
private function getEfloreExport() {
$this->cartes->setProjet('eflore');
$this->cartes->setLargeur('min');
$this->cartes->setInfoNom($this->nomCourant->getNomRetenu());
$eflore['min'] = $this->cartes->getUrlEflorePng();
$eflore['legende'] = $this->cartes->getLegende();
return $eflore;
}
 
public function getBloc() {
$donnees['chorodep'] = $this->getChorodepMiniature();
/trunk/modules/fiche/formateurs/Description.php
43,6 → 43,14
$donnees['baseflor'] = $this->getBaseflor();
return $donnees;
}
public function obtenirDonneesExport() {
$donnees = array();
$donnees['coste'] = $this->getCoste();
$donnees['wikini'] = $this->getWikini();
$donnees['baseflor'] = $this->getBaseflor();
return $donnees;
}
 
private function getBaseflor() {
$baseflor = array();
/trunk/modules/fiche/formateurs/Ecologie.php
33,6 → 33,13
return $donnees;
}
public function obtenirDonneesEXport() {
$donnees = array();
$donnees['wikini'] = $this->getWikini();
$donnees['baseflor'] = $this->getBaseflorExport();
return $donnees;
}
private function getWikini() {
$wikini = array();
$wikini['titre'] = 'Wikini';
50,6 → 57,29
return $donnees;
}
private function getBaseflorExport() {
$baseflor = array();
$this->informations ->setProjet('baseflor');
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
$informations = $this->informations->getInformationsEcologie();
if($informations != ""){
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
$this->graphique -> setProjet('baseflor');
$baseflor['legende_eco'] = Config::get('chemin_images').'legende_formes.png';
$this->meta->setProjet('baseflor');
$meta = $this->meta->getMetaDonnees();
$citation = $meta[0]['citation'];
$baseflor['meta']['citation'] = $citation;
}else {
$baseflor['aucune'] = 'Aucunes données';
}
return $baseflor;
}
private function getBaseflor() {
$baseflor = array();
$this->informations ->setProjet('baseflor');
/trunk/modules/fiche/formateurs/Illustrations.php
37,6 → 37,15
$donnees['coste'] = $this->getCoste();
return $donnees;
}
public function obtenirDonneesExport() {
$donnees = array();
$donnees['nt'] = $this->nomCourant->getNt();
$donnees['nomSciRetenu'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html');
$donnees['cel'] = $this->getCelExport();
$donnees['coste'] = $this->getCoste();
return $donnees;
}
 
public function getBloc() {
$donnees = array();
108,7 → 117,29
 
return $photoflora;
}
 
public function getCelExport() {
$cel = array();
$this->images->setProjet('cel');
$nnr = $this->nomCourant->getNnr();
$img = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
if($img) {
$img = array_values($img);
$cel['images']['src'] = $img[0]['binaire.href'];
$cel['images']['nomSci'] = $img[0]['determination.nom_sci'];
$cel['images']['commune'] = $img[0]['station.commune'];
$cel['images']['date'] = $this->formaterDateImg($img[0]['date']);
$cel['images']['auteur'] = $img[0]['auteur.libelle'];
$this->meta->setProjet('cel');
$meta = $this->meta->getMetaDonnees();
$titreMeta = $meta[0]['titre'];
$cel['meta']['titre'] = $titreMeta;
$cel['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('cel');
}
return $cel;
}
 
public function getCel() {
$cel = array();
$this->images->setProjet('cel');