Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 696 → Rev 697

/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');