Subversion Repositories eFlore/Applications.coel

Rev

Rev 1788 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1788 Rev 1834
Line 6... Line 6...
6
	const SERVICE_CARTO_ACTION_DEFAUT = 'carto';
6
	const SERVICE_CARTO_ACTION_DEFAUT = 'carto';
Line 7... Line 7...
7
	
7
	
8
	private $carte = '';
8
	private $carte = '';
Line -... Line 9...
-
 
9
	private $departement  = '';
Line 9... Line 10...
9
	private $departement  = '';
10
	
10
	
11
	private $clustering = true;
11
	
12
	
12
	/**
13
	/**
Line 37... Line 38...
37
	public function extraireParametres() {
38
	public function extraireParametres() {
38
		extract($this->parametres);
39
		extract($this->parametres);
39
		$this->carte  = (isset($carte) ? $carte : self::SERVICE_CARTO_ACTION_DEFAUT);
40
		$this->carte  = (isset($carte) ? $carte : self::SERVICE_CARTO_ACTION_DEFAUT);
40
		$this->departement =  (isset($dept) ? $dept : '*');
41
		$this->departement =  (isset($dept) ? $dept : '*');
41
		$this->pays =  (isset($pays) ? $pays : '*');
42
		$this->pays =  (isset($pays) ? $pays : '*');
-
 
43
		$this->clustering =  (isset($clustering) ? (bool)$clustering : $this->clustering);
42
	}
44
	}
Line 43... Line 45...
43
	
45
	
44
	/**
46
	/**
45
	 * Carte par défaut
47
	 * Carte par défaut
Line 51... Line 53...
51
		$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
53
		$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
52
		$widget['donnees']['url_web_service'] = sprintf($this->config['chemins']['baseURLServicesTpl'], '');
54
		$widget['donnees']['url_web_service'] = sprintf($this->config['chemins']['baseURLServicesTpl'], '');
53
		$widget['donnees']['url_page_fiche']  = $this->config['carto']["urlPageFiche"];
55
		$widget['donnees']['url_page_fiche']  = $this->config['carto']["urlPageFiche"];
54
		$widget['donnees']['departement'] = $this->departement;
56
		$widget['donnees']['departement'] = $this->departement;
55
		$widget['donnees']['pays'] = $this->pays;
57
		$widget['donnees']['pays'] = $this->pays;
-
 
58
		$widget['donnees']['clustering'] = $this->clustering;
56
		$widget['squelette'] = 'carto';
59
		$widget['squelette'] = 'carto';
57
		return $widget;
60
		return $widget;
58
	}
61
	}
Line 59... Line 62...
59
 
62