Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1382 → Rev 1383

/trunk/metier/api_0.1/Images.php
84,8 → 84,9
return $this->formaterResultatImages($images);
}
public function getInfosTrancheImagesParIdsNoms($idNom) {
$url = $this->getUrlImagesParIdsNoms($idNom, 10);
public function getInfosTrancheImagesParIdsNoms($idNom, $limite = 12) {
// 12 fait 4 lignes de 3 images donc bien pour l'affichage
$url = $this->getUrlImagesParIdsNoms($idNom, $limite);
$donnees = $this->chargerDonnees($url);
$images = (isset($donnees['resultats'])) ? $donnees['resultats'] : array();
return $this->formaterResultatImages($images);