Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 736 Rev 747
Line 12... Line 12...
12
	private $imagesService = null;
12
	private $imagesService = null;
Line 13... Line 13...
13
 
13
 
14
	private $motsASurligner = array();
14
	private $motsASurligner = array();
15
	private $noms = array();
15
	private $noms = array();
-
 
16
	private $infosPourTpl = array();
-
 
17
	
-
 
18
	private $conteneur = null;
Line 16... Line 19...
16
	private $infosPourTpl = array();
19
	private $apiCartes = null;
17
 
20
 
18
	public function __construct(ParametresResultats $parametres, Array $resultats,
21
	public function __construct(ParametresResultats $parametres, Array $resultats,
Line 24... Line 27...
24
		$this->surligneur = (is_null($surligneur)) ? new Surligneur() : $surligneur;
27
		$this->surligneur = (is_null($surligneur)) ? new Surligneur() : $surligneur;
25
		$this->trieur = (is_null($trieur)) ? new Trieur() : $trieur;
28
		$this->trieur = (is_null($trieur)) ? new Trieur() : $trieur;
26
		$this->urls = (is_null($urls)) ? new AppUrls() : $urls;
29
		$this->urls = (is_null($urls)) ? new AppUrls() : $urls;
27
		$this->manipulateurDeChaine = is_null($manipulateurDeChaine) ? new ChaineManipulateur() : $manipulateurDeChaine;
30
		$this->manipulateurDeChaine = is_null($manipulateurDeChaine) ? new ChaineManipulateur() : $manipulateurDeChaine;
28
		$this->imagesService = is_null($imagesService) ? new Images($this->parametres->projetImg) : $imagesService;
31
		$this->imagesService = is_null($imagesService) ? new Images($this->parametres->projetImg) : $imagesService;
29
	
32
		
-
 
33
		$this->conteneur = new Conteneur();
-
 
34
		$this->apiCartes = $this->conteneur->getApiCartes();
30
	}
35
	}
Line 31... Line 36...
31
 
36
 
32
	private function chargerRepartition() {
-
 
33
		$conteneur = new Conteneur();
-
 
34
		$cartesWs = $conteneur->getApiCartes();
37
	private function chargerRepartition() {
35
		$cartesWs->setProjet('chorodep');
38
		$this->apiCartes->setProjet('chorodep');
36
		$cartesWs->setLargeur('108x101');
39
		$this->apiCartes->setLargeur('108x101');
37
		$urls = array();
40
		$urls = array();
38
		foreach ($this->noms as $nom) {
41
		foreach ($this->noms as $nom) {
39
			if (array_key_exists('nom_retenu.code', $nom)) {
42
			if (array_key_exists('nom_retenu.code', $nom)) {
40
				$id = $nom['nom_retenu.code'];
43
				$id = $nom['nom_retenu.code'];
41
				$id = $this->supprimerCodeReftaxAvecNn($id);
44
				$id = $this->supprimerCodeReftaxAvecNn($id);
42
				$cartesWs->setId("nn:$id");
45
				$this->apiCartes->setId("nn:$id");
43
				if (array_key_exists($id, $urls) == false) {
46
				if (array_key_exists($id, $urls) == false) {
44
					$urls[$id] = $cartesWs->getUrlPng();
47
					$urls[$id] = $this->apiCartes->getUrlPng();
45
				}
48
				}
46
			}
49
			}
47
		}
50
		}
48
		$this->infosPourTpl['repartition']['urls'] = $urls;
51
		$this->infosPourTpl['repartition']['urls'] = $urls;