Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1209 Rev 1215
Line 23... Line 23...
23
	const DS = DIRECTORY_SEPARATOR;
23
	const DS = DIRECTORY_SEPARATOR;
24
	const PROJET_DEFAUT = 'defaut';
24
	const PROJET_DEFAUT = 'defaut';
25
	const WS_SAISIE = "CelWidgetSaisie";
25
	const WS_SAISIE = "CelWidgetSaisie";
26
	const WS_NOM = "noms";
26
	const WS_NOM = "noms";
27
	const NS_PROJET = "bdtfx";
27
	const NS_PROJET = "bdtfx";
-
 
28
	const NS_PROJET_VERSION = "1.01";
28
	const EFLORE_API_VERSION = "0.1";
29
	const EFLORE_API_VERSION = "0.1";
Line 29... Line 30...
29
 
30
 
30
	private $projet = null;
31
	private $projet = null;
Line 80... Line 81...
80
		$widget['squelette'] = $this->projet;
81
		$widget['squelette'] = $this->projet;
81
		$widget['donnees'] = array();
82
		$widget['donnees'] = array();
82
		$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
83
		$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
83
		$widget['donnees']['url_ws_saisie'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], self::WS_SAISIE);
84
		$widget['donnees']['url_ws_saisie'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], self::WS_SAISIE);
Line -... Line 85...
-
 
85
 
84
 
86
 
85
		if ($this->projet == 'defaut') {
87
		if ($this->projet == 'defaut') {
86
			$urlWsNsTpl = $this->config['chemins']['baseURLServicesEfloreTpl'];
88
			$urlWsNsTpl = $this->config['chemins']['baseURLServicesEfloreTpl'];
87
			$urlWsNs = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, self::NS_PROJET, self::WS_NOM);
89
			$urlWsNs = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, self::NS_PROJET, self::WS_NOM);
-
 
90
			$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs;
-
 
91
			$widget['donnees']['ns_referentiel'] = self::NS_PROJET.':'.self::NS_PROJET_VERSION;
88
			$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs;
92
			$widget['donnees']['ns_version'] = self::NS_PROJET_VERSION;
89
		} else {
93
		} else {
90
			$widget['donnees']['taxons'] = $this->recupererListeTaxon();
94
			$widget['donnees']['taxons'] = $this->recupererListeTaxon();
91
			$widget['donnees']['milieux'] = $this->parserMilieux();
95
			$widget['donnees']['milieux'] = $this->parserMilieux();
92
		}
96
		}