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']); |