Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 501 | Rev 904 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 501 Rev 550
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * Affiche un pop-up avec les infos d'une illustration.
4
 * Affiche un pop-up avec les infos d'une illustration.
5
 *
5
 *
6
 * @category	php 5.2
6
 * @category	php 5.2
7
 * @package		eFlore-consultation
7
 * @package		eFlore-consultation
8
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
8
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
10
 * @copyright	Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org)
10
 * @copyright	Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org)
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
 
15
 
16
class PopupIllustrations extends aControleur {
16
class PopupIllustrations extends aControleur {
17
	private $conteneur = null;
17
	private $conteneur = null;
18
	private $id_image = '';
18
	private $id_image = '';
19
 
-
 
-
 
19
	private $images = null;
-
 
20
	private $appUrls = null;
20
 
21
 
21
	public function initialiser() {
22
	public function initialiser() {
22
		$this->capturerParametres();
23
		$this->capturerParametres();
23
		$this->conteneur = new Conteneur();
24
		$this->conteneur = new Conteneur();
24
		$this->images = $this->conteneur->getApiImages();
25
		$this->images = $this->conteneur->getApiImages();
-
 
26
		$this->appUrls = $this->conteneur->getAppUrls();
25
	}
27
	}
26
 
28
 
27
	private function capturerParametres() {
29
	private function capturerParametres() {
28
		if (isset($_GET['id'])) {
30
		if (isset($_GET['id'])) {
29
			$this->id_image = $_GET['id'];
31
			$this->id_image = $_GET['id'];
30
		}
32
		}
31
	}
33
	}
32
 
34
 
33
	public function executerActionParDefaut() {
35
	public function executerActionParDefaut() {
34
		$this->executerFiche();
36
		$this->executerFiche();
35
	}
37
	}
36
 
38
 
37
	public function executerFiche(){
39
	public function executerFiche(){
38
		$infos = array();
40
		$infos = array();
39
		$this->images->setProjet('cel');
41
		$this->images->setProjet('cel');
40
		$images = $this->images->getInfosImageParIdImage($this->id_image);
42
		$img = $this->images->getInfosImageParIdImage($this->id_image);
41
		Debug::printr($images);
43
		Debug::printr($img);
42
		$infos['id'] = $this->id_image;
44
		$infos['id'] = $this->id_image;
43
		$infos['image'] = $images;
45
		$infos['image'] = $img;
-
 
46
		$infos['urlContact'] = $this->appUrls->obtenirUrlPopUpContact($img['auteur.id'], $this->id_image);
44
 
47
 
45
		$this->setSortie(self::RENDU_CORPS, $this->getVue('popup_fiche_illustrations', $infos));
48
		$this->setSortie(self::RENDU_CORPS, $this->getVue('popup_fiche_illustrations', $infos));
46
	}
49
	}
47
 
50
 
48
}
51
}
49
?>
52
?>