Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 252 Rev 279
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();
16
	private $infosPourTpl = array();
17
 
17
	
18
	public function __construct(ParametresResultats $parametres, Array $resultats,
18
	public function __construct(ParametresResultats $parametres, Array $resultats,
19
		Surligneur $surligneur = null, Trieur $trieur = null, AppUrls $urls = null,
19
		Surligneur $surligneur = null, Trieur $trieur = null, AppUrls $urls = null,
Line 20... Line 20...
20
		ChaineManipulateur $manipulateurDeChaine = null, Images $imagesService = null) {
20
		ChaineManipulateur $manipulateurDeChaine = null, Images $imagesService = null) {
Line 36... Line 36...
36
		return self::TPL_VUE;
36
		return self::TPL_VUE;
37
	}
37
	}
Line 38... Line 38...
38
 
38
 
39
	public function formater() {
39
	public function formater() {
-
 
40
		$this->obtenirUrlsPhotos();
40
		$this->obtenirUrlsPhotos();
41
		$this->chargerRepartition();
41
		$this->extraireInfosNomsPourTplDetermination();
42
		$this->extraireInfosNomsPourTplDetermination();
Line 42... Line 43...
42
	}
43
	}
43
 
44
 
Line 47... Line 48...
47
		$urls = $this->imagesService->getUrlsImagesParIdsNoms($ids);
48
		$urls = $this->imagesService->getUrlsImagesParIdsNoms($ids);
Line 48... Line 49...
48
 
49
 
49
		$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReftaxDesIds($urls);
50
		$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReftaxDesIds($urls);
Line -... Line 51...
-
 
51
	}
-
 
52
 
-
 
53
	private function chargerRepartition() {
-
 
54
		$premierNom = current($this->noms);
-
 
55
		$nomRetenuId = $premierNom['nom_retenu.id'];
-
 
56
		$serviceRepartition = new Cartes('chorodep', $nomRetenuId, 'nn', "108x101");
-
 
57
		$urlPng = $serviceRepartition->getUrlPng();
-
 
58
		$this->infosPourTpl['repartition_vignette'] = $urlPng;	
50
	}
59
	}
51
 
60
	
52
	private function extraireIdDesNoms() {
61
	private function extraireIdDesNoms() {
53
		$ids = array();
62
		$ids = array();
54
		foreach ($this->noms as $id => $nom) {
63
		foreach ($this->noms as $id => $nom) {