Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1467 Rev 1585
Line 103... Line 103...
103
		$donnees = $this->chargerDonnees($url);
103
		$donnees = $this->chargerDonnees($url);
104
		$images = (empty($donnees['resultats']) == false) ? $donnees['resultats'] : array();
104
		$images = (empty($donnees['resultats']) == false) ? $donnees['resultats'] : array();
105
		return $this->formaterResultatImages($images);
105
		return $this->formaterResultatImages($images);
106
	}
106
	}
Line -... Line 107...
-
 
107
	
-
 
108
	public function getInfosImagesParFicheEtSentier($tagFiche, $sentier) {
-
 
109
		$tpl = Config::get('smartFloreIllustrationsParSentier');
-
 
110
		$url = $this->formaterUrl($tpl, array('tagFiche' => $tagFiche, 'sentier' => $sentier));
-
 
111
		$donnees = $this->chargerDonnees($url);
-
 
112
		return $donnees['illustrations'] ?? false;
-
 
113
	}
-
 
114
 
-
 
115
	public function getInfosImageParId($imageId) {
-
 
116
		$tpl = Config::get('baseUrlServicesCelTpl');
-
 
117
		$urlTpl = sprintf($tpl, 'CelImage').'/image/imgId=%d';
-
 
118
		$url = sprintf($urlTpl, $imageId);
-
 
119
		return $this->chargerDonnees($url);
-
 
120
	}
107
 
121
 
108
	public function getInfosImagesTaxons() {
122
	public function getInfosImagesTaxons() {
109
		$pas = 800;
123
		$pas = 800;
110
		$idsTaxons = explode(',', $this->nntaxon);
124
		$idsTaxons = explode(',', $this->nntaxon);
111
		if(count($idsTaxons) >= $pas) {
125
		if(count($idsTaxons) >= $pas) {