Line 3... |
Line 3... |
3 |
class Carto extends WidgetCommun {
|
3 |
class Carto extends WidgetCommun {
|
Line 4... |
Line 4... |
4 |
|
4 |
|
5 |
const SERVICE_CARTO_NOM = 'carto';
|
5 |
const SERVICE_CARTO_NOM = 'carto';
|
Line 6... |
Line 6... |
6 |
const SERVICE_CARTO_ACTION_DEFAUT = 'carto';
|
6 |
const SERVICE_CARTO_ACTION_DEFAUT = 'carto';
|
7 |
|
7 |
|
- |
|
8 |
private $carte = null;
|
- |
|
9 |
private $source = null;
|
- |
|
10 |
private $titre = null;
|
Line -... |
Line 11... |
- |
|
11 |
private $logo = null;
|
8 |
private $carte = null;
|
12 |
private $urlSite = null;
|
9 |
private $source = null;
|
- |
|
10 |
|
13 |
|
11 |
private $numeroTaxon = '*';
|
14 |
private $numeroNomenclatural = '*';
|
- |
|
15 |
private $numeroTaxon = '*';
|
- |
|
16 |
private $referentiel = '*';
|
- |
|
17 |
private $departement = '*';
|
- |
|
18 |
private $auteur = '*';
|
Line 12... |
Line 19... |
12 |
private $auteur = '*';
|
19 |
private $dateDebut = '*';
|
13 |
private $referentiel = '*';
|
20 |
private $dateFin = '*';
|
14 |
private $departement = '*';
|
21 |
private $nbJours = 0;
|
Line 41... |
Line 48... |
41 |
|
48 |
|
42 |
public function extraireParametres() {
|
49 |
public function extraireParametres() {
|
43 |
extract($this->parametres);
|
50 |
extract($this->parametres);
|
44 |
$this->carte = (isset($carte) ? $carte : self::SERVICE_CARTO_ACTION_DEFAUT);
|
51 |
$this->carte = (isset($carte) ? $carte : self::SERVICE_CARTO_ACTION_DEFAUT);
|
- |
|
52 |
$this->source = (isset($source) ? $source : $this->config['carto']['sourceParDefaut']);
|
- |
|
53 |
$this->logo = (isset($logo) ? $logo : null);
|
- |
|
54 |
$this->titre = (isset($titre) ? $titre : null);
|
45 |
$this->source = (isset($source) ? $source : $this->config['carto']['sourceParDefaut']);
|
55 |
$this->urlSite = (isset($url_site) ? $url_site : null);
|
- |
|
56 |
$this->numeroTaxon = (isset($num_taxon) ? $num_taxon : '*');
|
46 |
$this->numeroTaxon = (isset($num_taxon) ? $num_taxon : '*');
|
57 |
$this->numeroNomenclatural = (isset($nn) ? $nn : '*');
|
47 |
$this->departement = (isset($dept) ? $dept : '*');
|
58 |
$this->departement = (isset($dept) ? $dept : '*');
|
48 |
$this->referentiel = (isset($referentiel) ? $referentiel : '*');
|
59 |
$this->referentiel = (isset($referentiel) ? $referentiel : '*');
|
- |
|
60 |
$this->auteur = (isset($auteur) ? $auteur : '*');
|
- |
|
61 |
$this->dateDebut = (isset($date_debut) ? $date_debut : '*');
|
- |
|
62 |
$this->dateFin = (isset($date_fin) ? $date_fin : '*');
|
49 |
$this->auteur = (isset($auteur) ? $auteur : '*');
|
63 |
$this->nbJours = (isset($nb_jours) ? intval($nb_jours) : 0);
|
Line 50... |
Line 64... |
50 |
}
|
64 |
}
|
51 |
|
65 |
|
52 |
/**
|
66 |
/**
|
Line 58... |
Line 72... |
58 |
|
72 |
|
59 |
// Création des infos du widget
|
73 |
// Création des infos du widget
|
60 |
$widget['donnees']['url_serivce_carto'] = $this->contruireUrlServiceCarto();
|
74 |
$widget['donnees']['url_serivce_carto'] = $this->contruireUrlServiceCarto();
|
61 |
$widget['donnees']['url_base'] = $url_base;
|
75 |
$widget['donnees']['url_base'] = $url_base;
|
- |
|
76 |
$widget['donnees']['source'] = $this->source;
|
- |
|
77 |
$widget['donnees']['titre'] = $this->titre;
|
- |
|
78 |
$widget['donnees']['logo'] = $this->logo;
|
- |
|
79 |
$widget['donnees']['url_site'] = $this->urlSite;
|
- |
|
80 |
$widget['donnees']['auteur'] = $this->auteur;
|
62 |
$widget['donnees']['source'] = $this->source;
|
81 |
$widget['donnees']['nn'] = $this->numeroNomenclatural;
|
63 |
$widget['donnees']['num_taxon'] = $this->numeroTaxon;
|
- |
|
64 |
$widget['donnees']['auteur'] = $this->auteur;
|
82 |
$widget['donnees']['num_taxon'] = $this->numeroTaxon;
|
65 |
$widget['donnees']['departement'] = $this->departement;
|
83 |
$widget['donnees']['departement'] = $this->departement;
|
- |
|
84 |
$widget['donnees']['referentiel'] = $this->referentiel;
|
- |
|
85 |
$widget['donnees']['date_debut'] = $this->dateDebut;
|
- |
|
86 |
$widget['donnees']['date_fin'] = $this->dateFin;
|
Line 66... |
Line 87... |
66 |
$widget['donnees']['referentiel'] = $this->referentiel;
|
87 |
$widget['donnees']['nb_jours'] = $this->nbJours;
|
67 |
|
88 |
|
68 |
$widget['donnees']['communeImageUrl'] = $this->config['carto']['communeImageUrl'];
|
89 |
$widget['donnees']['communeImageUrl'] = $this->config['carto']['communeImageUrl'];
|
69 |
$widget['donnees']['pointImageUrl'] = $this->config['carto']['pointImageUrl'];
|
90 |
$widget['donnees']['pointImageUrl'] = $this->config['carto']['pointImageUrl'];
|
70 |
$widget['donnees']['liensVersSources'] = $this->config['carto']['liensVersSources'];
|
91 |
$widget['donnees']['liensVersSources'] = $this->config['carto']['liensVersSources'];
|
71 |
$widget['donnees']['sourcesDispo'] = $this->config['carto']['sourcesDispo'];
|
92 |
$widget['donnees']['listeSources'] = $this->config['carto']['sourcesDispo'];
|
72 |
$widget['donnees']['nomSourcesDispo'] = $this->config['carto']['nomSourcesDispo'];
|
93 |
$widget['donnees']['nomListeSources'] = $this->config['carto']['nomSourcesDispo'];
|
- |
|
94 |
$widget['donnees']['titreLegende'] = $this->config['carto']['titreLegende'];
|
- |
|
95 |
$widget['donnees']['urlLimitesCommunales'] = $this->obtenirUrlsLimitesCommunales();
|
Line 73... |
Line 96... |
73 |
$widget['donnees']['titreLegende'] = $this->config['carto']['titreLegende'];
|
96 |
$widget['donnees']['zoomMaximumMaillage'] = $this->config['carto']['zoomMaximumMaillage'];
|
74 |
$widget['donnees']['urlLimitesCommunales'] = $this->obtenirUrlsLimitesCommunales();
|
97 |
$widget['donnees']['seuilMaillage'] = $this->config['carto']['seuilMaillage'];
|
75 |
|
98 |
|