Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 321 → Rev 351

/trunk/modules/fiche/formateurs/Bibliographie.php
14,6 → 14,12
*/
class Bibliographie extends aControleur {
private $apiBiblioBota;
private $conteneur;
private $nomCourant;
private $meta;
private $appUrls;
public function __construct(Conteneur $conteneur) {
$this->conteneur = $conteneur;
$this->nomCourant = $this->conteneur->getNomCourant();
22,17 → 28,23
}
public function obtenirDonnees() {
$flores = $this->nomCourant->getNomRetenu()->get('flores');
$flores = $this->nomCourant->getNomRetenu()->get('flores');
$flores = explode(',', $flores);
 
$donnees['flores']['liste_flores'] = $this->remplacerCorrespondancesFlores($flores);
$this->meta->setProjet('bdtfx');
$meta = $this->meta->getMetaDonnees();
$titreMeta = $meta[0]['titre'];
$donnees['flores']['meta']['titre'] = $titreMeta;
$donnees['flores']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('bdtfx');
$this->meta->setProjet('bdtfx');
//Obtention des données issues de biblio_bota
$this->apiBiblioBota = $this->conteneur->getApiBiblioBota();
$this->apiBiblioBota->setProjet('bibliobota');
$references = $this->apiBiblioBota->getReferences($this->conteneur->getParametre('nom'));
$donnees['bibliobota']['references'] = $references['resultats'];
return $donnees;
}