Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 269 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
253 gduche 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
 * Classe mère du module Liste.
5
 *
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
10
 * @copyright	2011 Tela-Botanica
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
13
 * @version		$Id$
14
 */
15
class Repartition extends aControleur {
257 delphine 16
	private $serviceChorodep = null;
253 gduche 17
 
276 gduche 18
	public function __construct($num_nom = null, $type = null, $taille = 630) {
19
		$this->initialiser($num_nom, $type, $taille);
20
	}
21
 
22
	public function initialiser($num_nom, $type, $taille = 630) {
23
		$this->serviceChorodep = new Cartes('chorodep', $num_nom, $type, $taille);
257 delphine 24
		$this->serviceMetaDonneesChorodep = new MetaDonnees('chorodep');
25
	}
253 gduche 26
 
269 delphine 27
	public function obtenirDonnees($num_nom, $type = 'nn') {
28
		$this->initialiser($num_nom, $type);
29
		$donnees['svg'] = $this->getUrlDataSvg();
30
		$donnees['png'] = $this->getUrlPng();
31
		$donnees['legende'] = $this->getLegende();
32
		$donnees['metadonnees'] = $this->getMetaDonnees();
33
		return $donnees;
34
	}
35
 
263 gduche 36
	public function getUrlDataSvg() {
37
		return $this->serviceChorodep->getUrlDataSvg();
253 gduche 38
	}
39
 
263 gduche 40
	public function getUrlPng() {
41
		return $this->serviceChorodep->getUrlPng();
42
	}
43
 
253 gduche 44
	public function getLegende () {
257 delphine 45
		return $this->serviceChorodep->getLegende();
253 gduche 46
	}
257 delphine 47
 
48
	public function getMetaDonnees () {
49
		return $this->serviceMetaDonneesChorodep->getMetaDonnees();
50
	}
253 gduche 51
}
52
?>