Subversion Repositories eFlore/Applications.del

Rev

Rev 1881 | Rev 1917 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1881 Rev 1887
Line 78... Line 78...
78
		}
78
		}
79
		return $resultat;
79
		return $resultat;
80
	}
80
	}
Line 81... Line 81...
81
 
81
 
82
	private function getIdImages() {
82
	private function getIdImages() {
83
		$requete = 'SELECT SQL_CALC_FOUND_ROWS id_image '.
83
		$requete = 'SELECT SQL_CALC_FOUND_ROWS DISTINCT di.id_image '.
84
			'FROM del_image AS di '.
84
			'FROM del_image AS di '.
85
			$this->sql->getJoin().
85
			$this->sql->getJoin().
86
			'WHERE '.$this->sql->getWhere().
86
			'WHERE '.$this->sql->getWhere().
87
			$this->sql->getGroupBy().
87
			$this->sql->getGroupBy().
88
			$this->sql->getOrderBy().
88
			$this->sql->getOrderBy().
89
			$this->sql->getLimit().
89
			$this->sql->getLimit().
-
 
90
			' -- '.__FILE__.':'.__LINE__;
90
			' -- '.__FILE__.':'.__LINE__;
91
		// TODO : si le DISCTINCT dans la requête pose des pb de perf, supprimer les doublons d'id à l'aide de PHP
91
		//Debug::printr($requete);
92
		//Debug::printr($requete);
92
		$resultats = $this->bdd->recupererTous($requete);
93
		$resultats = $this->bdd->recupererTous($requete);
93
		$idImgs = array();
94
		$idImgs = array();
94
		if ($resultats !== false ) {
95
		if ($resultats !== false ) {