Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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