Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1584 → Rev 1585

/trunk/metier/api_0.1/Images.php
104,7 → 104,21
$images = (empty($donnees['resultats']) == false) ? $donnees['resultats'] : array();
return $this->formaterResultatImages($images);
}
public function getInfosImagesParFicheEtSentier($tagFiche, $sentier) {
$tpl = Config::get('smartFloreIllustrationsParSentier');
$url = $this->formaterUrl($tpl, array('tagFiche' => $tagFiche, 'sentier' => $sentier));
$donnees = $this->chargerDonnees($url);
return $donnees['illustrations'] ?? false;
}
 
public function getInfosImageParId($imageId) {
$tpl = Config::get('baseUrlServicesCelTpl');
$urlTpl = sprintf($tpl, 'CelImage').'/image/imgId=%d';
$url = sprintf($urlTpl, $imageId);
return $this->chargerDonnees($url);
}
 
public function getInfosImagesTaxons() {
$pas = 800;
$idsTaxons = explode(',', $this->nntaxon);
303,4 → 317,4
return implode(" > ", $localiteFmt);
}
}
?>
?>