Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 898 Rev 947
Line 62... Line 62...
62
		return $images;
62
		return $images;
63
	}
63
	}
Line 64... Line 64...
64
 
64
 
65
	public function getInfosImageParIdImage($id_image) {
65
	public function getInfosImageParIdImage($id_image) {
66
		$tpl = Config::get('imagesPopupTpl');
66
		$tpl = Config::get('imagesPopupTpl');
67
		$url = $this->formaterUrl($tpl, array('id' => $id_image));
67
		$url = $this->formaterUrl($tpl, array('id' => $id_image, 'referentiel' => Registre::get('parametres.referentiel')));
68
		return $this->chargerDonnees($url);
68
		return $this->chargerDonnees($url);
Line 69... Line 69...
69
	}
69
	}
70
	
70
	
Line 95... Line 95...
95
		return $images;
95
		return $images;
96
	}
96
	}
Line 97... Line 97...
97
	
97
	
98
	private function getUrlImagesParIdsNoms($idsNoms) {
98
	private function getUrlImagesParIdsNoms($idsNoms) {
99
		$tpl = Config::get('imagesResultatsDeterminationTpl');
99
		$tpl = Config::get('imagesResultatsDeterminationTpl');
100
		$params = array('idsNoms' => implode(',', $idsNoms));
100
		$params = array('idsNoms' => implode(',', $idsNoms), 'referentiel' => Registre::get('parametres.referentiel'));
101
		$url = $this->formaterUrl($tpl, $params);
101
		$url = $this->formaterUrl($tpl, $params);
102
		return $url;
102
		return $url;
Line 103... Line 103...
103
	}
103
	}
104
 
104
 
105
	public function getUrlPremiereImageParIdsNoms($idsNoms) {
105
	public function getUrlPremiereImageParIdsNoms($idsNoms) {
106
		$tpl = Config::get('imagesPremiereTpl');
106
		$tpl = Config::get('imagesPremiereTpl');
107
		$params = array('idsNoms' => implode(',', $idsNoms));
107
		$params = array('idsNoms' => implode(',', $idsNoms), 'referentiel' => Registre::get('parametres.referentiel'));
108
		$url = $this->formaterUrl($tpl, $params);
108
		$url = $this->formaterUrl($tpl, $params);
109
		$donnees = $this->chargerDonnees($url);
109
		$donnees = $this->chargerDonnees($url);
110
		$images = (isset($donnees['resultats'])) ? $donnees['resultats'] : array();
110
		$images = (isset($donnees['resultats'])) ? $donnees['resultats'] : array();
Line 111... Line 111...
111
		return $images;
111
		return $images;
112
	}
112
	}
113
	
113
	
114
	private function getUrlImages() {
114
	private function getUrlImages() {
115
		$tpl = Config::get('imagesTpl');
115
		$tpl = Config::get('imagesTpl');
116
		$params = array('projet' => $this->getProjet(), 'limite' => $this->limite, 'depart' => $this->depart);
116
		$params = array('projet' => $this->getProjet(), 'limite' => $this->limite, 'depart' => $this->depart, 'referentiel' => Registre::get('parametres.referentiel'));
Line 117... Line 117...
117
		$url = $this->formaterUrl($tpl, $params);
117
		$url = $this->formaterUrl($tpl, $params);
118
		return $url;
118
		return $url;
119
	}
119
	}
120
	
120
	
121
	private function getUrlImagesTaxons($idsTaxons) {
121
	private function getUrlImagesTaxons($idsTaxons) {
122
		$tpl = Config::get('imagesTaxonsTpl');
122
		$tpl = Config::get('imagesTaxonsTpl');
123
		$params = array('projet' => $this->getProjet(),'nntaxon'=> $idsTaxons);
123
		$params = array('projet' => $this->getProjet(),'nntaxon'=> $idsTaxons, 'referentiel' => Registre::get('parametres.referentiel'));
124
		$url = $this->formaterUrl($tpl, $params);
124
		$url = $this->formaterUrl($tpl, $params);
125
		return $url;
125
		return $url;