Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 238 | Rev 291 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 238 Rev 272
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * Classe mère du module Liste.
4
 * Classe mère du module Liste.
5
 *
5
 *
6
 * @category	PHP 5.2
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
7
 * @package		eflore-consultation
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
10
 * @copyright	2011 Tela-Botanica
10
 * @copyright	2011 Tela-Botanica
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Illustrations extends aControleur {
15
class Illustrations extends aControleur {
16
	private $imagesCel = null;
16
	private $imagesCel = null;
17
	
17
	
18
	public function __construct(Images $images = null) {
18
	public function __construct(Images $images = null) {
19
		$this->imagesCel = (is_null($images)) ? new Images('cel') : $images;
19
		$this->imagesCel = (is_null($images)) ? new Images('cel') : $images;
20
	}
20
	}
21
	
21
	
22
	public function obtenirDonnees($num_nom) {
22
	public function obtenirDonnees($num_nom) {
23
		$urls = $this->imagesCel->getUrlsImagesParIdsNoms(array($num_nom));
23
		$urls = $this->imagesCel->getUrlsImagesParIdsNoms(array($num_nom));
24
		return $urls['bdtfx.'.$num_nom];
24
		$donnees['img'] = $urls['bdtfx.'.$num_nom];
-
 
25
		return $donnees;
25
	}
26
	}
26
}
27
}
27
?>
28
?>