Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1346 Rev 1465
Line 14... Line 14...
14
 */
14
 */
15
class Repartition extends aControleur {
15
class Repartition extends aControleur {
Line 16... Line 16...
16
 
16
 
17
	private $conteneur = null;
17
	private $conteneur = null;
-
 
18
	private $nomCourant = null;
18
	private $nomCourant = null;
19
	private $noms = null;
19
	private $referentiel = 'bdtfx';
20
	private $referentiel = 'bdtfx';
20
	private $donnees = array();
21
	private $donnees = array();
21
	private $cartes;
22
	private $cartes;
22
	private $meta;
23
	private $meta;
Line 23... Line 24...
23
	private $appUrls;
24
	private $appUrls;
24
 
25
 
-
 
26
	public function __construct(Conteneur $conteneur) {
25
	public function __construct(Conteneur $conteneur) {
27
		$this->conteneur = $conteneur;
26
		$this->conteneur = $conteneur;
28
		$this->noms = $this->conteneur->getApiNoms();
27
		$this->nomCourant = $this->conteneur->getNomCourant();
29
		$this->nomCourant = $this->conteneur->getNomCourant();
28
		$this->referentiel = $this->conteneur->getParametre('referentiel');
30
		$this->referentiel = $this->conteneur->getParametre('referentiel');
29
		$this->cartes = $this->conteneur->getApiCartes();
31
		$this->cartes = $this->conteneur->getApiCartes();
Line 56... Line 58...
56
		// eg: eflore ou chorodep
58
		// eg: eflore ou chorodep
57
		// cf: bdtfx.ini, bdtxa.ini
59
		// cf: bdtfx.ini, bdtxa.ini
58
		if ($projetRepartition != '') {
60
		if ($projetRepartition != '') {
59
			$this->cartes->setProjet($projetRepartition);
61
			$this->cartes->setProjet($projetRepartition);
60
			$this->cartes->setLargeur('630');
62
			$this->cartes->setLargeur('630');
-
 
63
			$synonymes = $this->noms->getSynonymes($this->nomCourant->getNnr());
-
 
64
			$synonymesNn = implode(array_keys($synonymes['resultat']), ',');
61
			$nt = $this->nomCourant->getNt();
65
			$nn = $this->nomCourant->getNnr();
62
			$this->cartes->setId("{$this->referentiel}.nt:$nt");
66
			$this->cartes->setId("{$this->referentiel}.nn:$synonymesNn");
63
			$repartition['svgUrl'] = $this->cartes->getUrlDataSvg();
67
			$repartition['svgUrl'] = $this->cartes->getUrlDataSvg();
64
			$repartition['pngUrl'] = $this->cartes->getUrlPng();
68
			$repartition['pngUrl'] = $this->cartes->getUrlPng();
65
			$repartition['legende'] = $this->cartes->getLegendeId();
69
			$repartition['legende'] = $this->cartes->getLegendeId();
66
			$this->meta->setProjet($projetRepartition);
70
			$this->meta->setProjet($projetRepartition);
67
			$meta = $this->meta->getMetaDonnees();
71
			$meta = $this->meta->getMetaDonnees();