Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 263 Rev 269
Line 13... Line 13...
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;
Line 17... Line 17...
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');
Line -... Line 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;
21
	}
31
	}
22
	
32
	
23
	public function getUrlDataSvg() {
33
	public function getUrlDataSvg() {
Line 24... Line 34...
24
		return $this->serviceChorodep->getUrlDataSvg();
34
		return $this->serviceChorodep->getUrlDataSvg();