57,7 → 57,7 |
$this->sql->definirOrdreSqlAppliImg(); |
|
$idImgs = $this->getIdImages(); |
$this->navigation->setTotal($this->getTotal()); |
$this->navigation->setTotal($this->sql->getTotalLignesTrouvees()); |
|
// Ce n'est pas la peine de continuer s'il n'y a pas eu de résultats |
$resultat = new ResultatService(); |
100,11 → 100,6 |
return $idImgs; |
} |
|
private function getTotal() { |
$resultat = $this->bdd->recuperer('SELECT FOUND_ROWS() AS nbre'); |
return intval($resultat['nbre']); |
} |
|
private function getInfosImages($idImgs) { |
$obsChamps = $this->sql->getAliasDesChamps($this->mappings['observations']); |
$imgChamps = $this->sql->getAliasDesChamps($this->mappings['images']); |
136,7 → 131,7 |
'binaire.href' => sprintf($urlImgTpl, $infos['id_image'], $imageFormat), |
'mots_cles_texte' => @$infos['mots_cles_texte_img'], // @, peut avoir été filtré par array_map() ci-dessus |
); |
|
|
unset($infos['id_image'], $infos['mots_cles_texte_img'], $infos['jsonindex']); |
if (!isset($obs_merged[$id])) { |
$obs_merged[$id] = $image; |