Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

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