Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 319 → Rev 320

/trunk/modules/fiche/formateurs/Illustrations.php
17,7 → 17,6
private $conteneur = null;
private $nomCourant = null;
private $images = null;
private $meta = null;
 
public function __construct(Conteneur $conteneur) {
$this->conteneur = $conteneur;
24,6 → 23,7
$this->nomCourant = $this->conteneur->getNomCourant();
$this->images = $this->conteneur->getApiImages();
$this->appUrls = $this->conteneur->getAppUrls();
$this->meta = $this->conteneur->getApiMetaDonnees();
}
 
public function obtenirDonnees() {
48,7 → 48,12
$this->images->setProjet('cel');
$nns = $this->nomCourant->getNns();
$images = $this->images->getInfosImagesParIdsNoms(array($nns));
$this->meta->setProjet('cel');
$meta = $this->meta->getMetaDonnees();
$titreMeta = $meta[0]['titre'];
$cel['images'] = $images['resultats'];
$cel['meta']['titre'] = $titreMeta;
$cel['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('cel');
return $cel;
}