Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 291 | Rev 317 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 291 Rev 294
Line 13... Line 13...
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Illustrations extends aControleur {
15
class Illustrations extends aControleur {
Line 16... Line 16...
16
 
16
 
17
	private $conteneur = null;
17
	private $conteneur = null;
18
	private $nomCourrant = null;
18
	private $nomCourant = null;
19
	private $images = null;
19
	private $images = null;
Line 20... Line 20...
20
	private $meta = null;
20
	private $meta = null;
21
 
21
 
22
	public function __construct(Conteneur $conteneur) {
22
	public function __construct(Conteneur $conteneur) {
23
		$this->conteneur = $conteneur;
23
		$this->conteneur = $conteneur;
24
		$this->nomCourrant = $this->conteneur->getNomCourrant();
24
		$this->nomCourant = $this->conteneur->getNomCourant();
25
		$this->images = $this->conteneur->getApiImages();
25
		$this->images = $this->conteneur->getApiImages();
Line 26... Line 26...
26
		$this->appUrls = $this->conteneur->getAppUrls();
26
		$this->appUrls = $this->conteneur->getAppUrls();
Line 34... Line 34...
34
 
34
 
35
	public function getBloc() {
35
	public function getBloc() {
36
		// Trop long, il faut un service spécial...
36
		// Trop long, il faut un service spécial...
37
		/*
37
		/*
38
		$this->images->setProjet('cel');
38
		$this->images->setProjet('cel');
39
		$nns = $this->nomCourrant->getNns();
39
		$nns = $this->nomCourant->getNns();
40
		$urls = $this->images->getUrlsImagesParIdsNoms(array($nns));
40
		$urls = $this->images->getUrlsImagesParIdsNoms(array($nns));
41
		$donnees['imageUrl'] = $urls["bdtfx.$nns"][0];
41
		$donnees['imageUrl'] = $urls["bdtfx.$nns"][0];
42
		*/
42
		*/
43
		return $donnees;
43
		return $donnees;
Line 44... Line 44...
44
	}
44
	}
45
 
45
 
46
	public function getCel() {
46
	public function getCel() {
47
		$cel = array();
47
		$cel = array();
48
		$this->images->setProjet('cel');
48
		$this->images->setProjet('cel');
49
		$nns = $this->nomCourrant->getNns();
49
		$nns = $this->nomCourant->getNns();
Line 50... Line 50...
50
		$urls = $this->images->getUrlsImagesParIdsNoms(array($nns));
50
		$urls = $this->images->getUrlsImagesParIdsNoms(array($nns));
51
		$cel['imagesUrl'] = $urls["bdtfx.$nns"];
51
		$cel['imagesUrl'] = $urls["bdtfx.$nns"];