Line 21... |
Line 21... |
21 |
|
21 |
|
22 |
const DS = DIRECTORY_SEPARATOR;
|
22 |
const DS = DIRECTORY_SEPARATOR;
|
23 |
const SERVICE_DEFAUT = 'export';
|
23 |
const SERVICE_DEFAUT = 'export';
|
24 |
private $export_url = null;
|
24 |
private $export_url = null;
|
- |
|
25 |
private $eflore_url_tpl = null;
|
- |
|
26 |
/** Si spécifié, on ajoute une barre de navigation inter-applications */
|
Line 25... |
Line 27... |
25 |
private $eflore_url_tpl = null;
|
27 |
private $bar;
|
26 |
|
28 |
|
27 |
/**
|
29 |
/**
|
28 |
* Méthode appelée par défaut pour charger ce widget.
|
30 |
* Méthode appelée par défaut pour charger ce widget.
|
Line 32... |
Line 34... |
32 |
extract($this->parametres);
|
34 |
extract($this->parametres);
|
Line 33... |
Line 35... |
33 |
|
35 |
|
34 |
if (!isset($mode)) {
|
36 |
if (!isset($mode)) {
|
35 |
$mode = self::SERVICE_DEFAUT;
|
37 |
$mode = self::SERVICE_DEFAUT;
|
- |
|
38 |
}
|
Line 36... |
Line 39... |
36 |
}
|
39 |
$this->bar = (isset($bar)) ? $bar : false;
|
37 |
|
40 |
|
38 |
$methode = $this->traiterNomMethodeExecuter($mode);
|
41 |
$methode = $this->traiterNomMethodeExecuter($mode);
|
39 |
if (method_exists($this, $methode)) {
|
42 |
if (method_exists($this, $methode)) {
|
Line 45... |
Line 48... |
45 |
if (is_null($retour)) {
|
48 |
if (is_null($retour)) {
|
46 |
$contenu = 'Un problème est survenu : '.print_r($this->messages, true);
|
49 |
$contenu = 'Un problème est survenu : '.print_r($this->messages, true);
|
47 |
} else {
|
50 |
} else {
|
48 |
$urlWsCommune = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'LocationSearch');
|
51 |
$urlWsCommune = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'LocationSearch');
|
49 |
$retour['donnees']['url_ws_autocompletion_commune'] = $urlWsCommune;
|
52 |
$retour['donnees']['url_ws_autocompletion_commune'] = $urlWsCommune;
|
- |
|
53 |
|
50 |
$urlWsNomSci = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'NameSearch');
|
54 |
$urlWsNomSci = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'NameSearch');
|
51 |
$retour['donnees']['url_ws_autocompletion_nom_sci'] = $urlWsNomSci;
|
55 |
$retour['donnees']['url_ws_autocompletion_nom_sci'] = $urlWsNomSci;
|
- |
|
56 |
|
52 |
$retour['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
|
57 |
$retour['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
|
53 |
$retour['donnees']['url_export'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelWidgetExport');
|
58 |
$retour['donnees']['url_export'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelWidgetExport');
|
- |
|
59 |
$retour['donnees']['url_script_navigation'] = sprintf($this->config['chemins']['baseURLRessources'], 'tb/reseau/navigation.js');
|
- |
|
60 |
|
- |
|
61 |
$retour['donnees']['bar'] = $this->bar;
|
- |
|
62 |
|
54 |
$squelette = dirname(__FILE__).self::DS.'squelettes'.self::DS.$retour['squelette'].'.tpl.html';
|
63 |
$squelette = dirname(__FILE__).self::DS.'squelettes'.self::DS.$retour['squelette'].'.tpl.html';
|
55 |
$contenu = $this->traiterSquelettePhp($squelette, $retour['donnees']);
|
64 |
$contenu = $this->traiterSquelettePhp($squelette, $retour['donnees']);
|
56 |
}
|
65 |
}
|
Line 57... |
Line 66... |
57 |
|
66 |
|