Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 263 Rev 269
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 Repartition extends aControleur {
15
class Repartition extends aControleur {
16
	private $serviceChorodep = null;
16
	private $serviceChorodep = null;
17
	
17
	
18
	public function __construct($num_nom, $type = 'nn') {
18
	public function initialiser($num_nom, $type) {
19
		$this->serviceChorodep = new Cartes('chorodep', $num_nom, $type);
19
		$this->serviceChorodep = new Cartes('chorodep', $num_nom, $type);
20
		$this->serviceMetaDonneesChorodep = new MetaDonnees('chorodep');
20
		$this->serviceMetaDonneesChorodep = new MetaDonnees('chorodep');
21
	}
21
	}
-
 
22
	
-
 
23
 
-
 
24
	public function obtenirDonnees($num_nom, $type = 'nn') {
-
 
25
		$this->initialiser($num_nom, $type);
-
 
26
		$donnees['svg'] = $this->getUrlDataSvg();
-
 
27
		$donnees['png'] = $this->getUrlPng();
-
 
28
		$donnees['legende'] = $this->getLegende();
-
 
29
		$donnees['metadonnees'] = $this->getMetaDonnees();
-
 
30
		return $donnees;
-
 
31
	}
22
	
32
	
23
	public function getUrlDataSvg() {
33
	public function getUrlDataSvg() {
24
		return $this->serviceChorodep->getUrlDataSvg();
34
		return $this->serviceChorodep->getUrlDataSvg();
25
	}
35
	}
26
	
36
	
27
	public function getUrlPng() {
37
	public function getUrlPng() {
28
		return $this->serviceChorodep->getUrlPng();
38
		return $this->serviceChorodep->getUrlPng();
29
	}
39
	}
30
	
40
	
31
	public function getLegende () {
41
	public function getLegende () {
32
		return $this->serviceChorodep->getLegende();
42
		return $this->serviceChorodep->getLegende();
33
	}
43
	}
34
	
44
	
35
	public function getMetaDonnees () {
45
	public function getMetaDonnees () {
36
		return $this->serviceMetaDonneesChorodep->getMetaDonnees();
46
		return $this->serviceMetaDonneesChorodep->getMetaDonnees();
37
	}
47
	}
38
}
48
}
39
?>
49
?>