1593 |
samuel |
1 |
<?php
|
|
|
2 |
/**
|
1881 |
jpm |
3 |
* Le web service plantnet récupère toutes les infos de la vue del_plantnet.
|
|
|
4 |
* Ordonées par date de modification.
|
|
|
5 |
* Les images sont regroupées en observations.
|
|
|
6 |
* Les tags, les votes et les propositions de determinations sont intégrés à l'observation.
|
1593 |
samuel |
7 |
*
|
2222 |
julien |
8 |
* Paramètres: date.debut et date.fin (unixtime en secondes), navigation.limite (10 par défaut), navigation.depart, ordre (DESC par défaut)
|
|
|
9 |
* Ne pas Oublier l'api key dans le header $_SERVER['HTTP_API_KEY']
|
|
|
10 |
*
|
1794 |
jpm |
11 |
* @category DEL
|
|
|
12 |
* @package Services
|
|
|
13 |
* @subpackage Plantnet
|
|
|
14 |
* @version 0.1
|
|
|
15 |
* @author Mathias CHOUET <mathias@tela-botanica.org>
|
|
|
16 |
* @author Samuel DUFOUR-KOWALSKI <samuel.dufour@cirad.fr>
|
|
|
17 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
|
|
18 |
* @author Aurelien PERONNET <aurelien@tela-botanica.org>
|
1990 |
samuel |
19 |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
|
1794 |
jpm |
20 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
|
|
21 |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org>
|
1593 |
samuel |
22 |
*/
|
|
|
23 |
|
|
|
24 |
class Changements {
|
1793 |
jpm |
25 |
|
1593 |
samuel |
26 |
private $conteneur;
|
|
|
27 |
private $navigation;
|
|
|
28 |
private $bdd;
|
1881 |
jpm |
29 |
|
1593 |
samuel |
30 |
private $parametres = array();
|
|
|
31 |
private $ressources = array();
|
2224 |
julien |
32 |
private $ordre_defaut = 'asc';
|
1881 |
jpm |
33 |
private $idsObsImg = array();
|
|
|
34 |
private $infosObsImg = array();
|
1793 |
jpm |
35 |
|
1881 |
jpm |
36 |
|
1593 |
samuel |
37 |
public function __construct(Conteneur $conteneur = null) {
|
1794 |
jpm |
38 |
/* restore_exception_handler(); */
|
|
|
39 |
/* restore_error_handler(); */
|
|
|
40 |
/* ini_set("display_errors", "1"); */
|
1793 |
jpm |
41 |
|
1593 |
samuel |
42 |
$this->conteneur = $conteneur == null ? new Conteneur() : $conteneur;
|
|
|
43 |
$this->navigation = $conteneur->getNavigation();
|
1793 |
jpm |
44 |
$this->bdd = $this->conteneur->getBdd();
|
1593 |
samuel |
45 |
}
|
1793 |
jpm |
46 |
|
1593 |
samuel |
47 |
/**
|
|
|
48 |
* Méthode principale de la classe.
|
1793 |
jpm |
49 |
* Lance la récupération des images dans la base et les place dans un objet ResultatService
|
1593 |
samuel |
50 |
* pour l'afficher.
|
|
|
51 |
* @param array $ressources les ressources situées après l'url de base (ex : http://url/ressource1/ressource2)
|
|
|
52 |
* @param array $parametres les paramètres situés après le ? dans l'url
|
|
|
53 |
* */
|
|
|
54 |
public function consulter($ressources, $parametres) {
|
|
|
55 |
// initialiserRessourcesEtParametres()
|
|
|
56 |
$this->ressources = $ressources;
|
|
|
57 |
$this->parametres = $parametres;
|
1793 |
jpm |
58 |
|
2213 |
arthur |
59 |
if (!isset($parametres['date.debut'])) {
|
2222 |
julien |
60 |
$this->parametres['date.debut'] = '0';
|
1593 |
samuel |
61 |
}
|
1793 |
jpm |
62 |
|
2213 |
arthur |
63 |
if (!isset($parametres['date.fin'])) {
|
2222 |
julien |
64 |
$this->parametres['date.fin'] = time();
|
2213 |
arthur |
65 |
}
|
|
|
66 |
|
2124 |
mathias |
67 |
if (! isset($parametres['ordre'])) {
|
|
|
68 |
$this->parametres['ordre'] = $this->ordre_defaut;
|
|
|
69 |
} else {
|
|
|
70 |
$parametres['ordre'] = strtolower($parametres['ordre']);
|
|
|
71 |
if (! in_array($parametres['ordre'], array('asc', 'desc'))) {
|
|
|
72 |
$this->parametres['ordre'] = $this->ordre_defaut;
|
2123 |
mathias |
73 |
}
|
2122 |
mathias |
74 |
}
|
|
|
75 |
|
1593 |
samuel |
76 |
// Lancement du service
|
1881 |
jpm |
77 |
$this->idsObsImg = $this->getIdsObsImg();
|
|
|
78 |
$infos = array();
|
1593 |
samuel |
79 |
$total = 0;
|
1881 |
jpm |
80 |
if ($this->idsObsImg) {
|
|
|
81 |
$total = $this->getTotal();
|
1593 |
samuel |
82 |
|
1881 |
jpm |
83 |
$this->infosObsImg = $this->recupererInfos();
|
|
|
84 |
$infos = $this->formaterInfos();
|
|
|
85 |
$infos = $this->chargerPropositionPlusProbable($infos);
|
|
|
86 |
$infos = $this->orderArray($infos);
|
1593 |
samuel |
87 |
}
|
|
|
88 |
$this->navigation->setTotal($total);
|
1793 |
jpm |
89 |
|
1593 |
samuel |
90 |
// Mettre en forme le résultat et l'envoyer pour affichage
|
|
|
91 |
$resultat = new ResultatService();
|
1881 |
jpm |
92 |
$resultat->corps = array('entete' => $this->navigation->getEntete(), 'resultats' => $infos);
|
1593 |
samuel |
93 |
return $resultat;
|
|
|
94 |
}
|
1793 |
jpm |
95 |
|
1593 |
samuel |
96 |
/*-------------------------------------------------------------------------------
|
1793 |
jpm |
97 |
CHARGEMENT DES IMAGES
|
1593 |
samuel |
98 |
--------------------------------------------------------------------------------*/
|
1794 |
jpm |
99 |
|
1881 |
jpm |
100 |
private function getIdsObsImg() {
|
2222 |
julien |
101 |
$date_debut = date('Y-m-d H:i:s', $this->parametres['date.debut']);
|
|
|
102 |
$date_fin = date('Y-m-d H:i:s', $this->parametres['date.fin']);
|
2225 |
julien |
103 |
$limite = isset($this->parametres['navigation.limite']) ? intval($this->parametres['navigation.limite']) : 10;
|
1794 |
jpm |
104 |
$depart = intval(@$this->parametres['navigation.depart']);
|
2122 |
mathias |
105 |
$ordre = $this->parametres['ordre'];
|
2222 |
julien |
106 |
$date_debut = "'{$date_debut}'";
|
|
|
107 |
$date_fin = "'{$date_fin}'";
|
|
|
108 |
|
1881 |
jpm |
109 |
$requete =
|
2226 |
julien |
110 |
'SELECT SQL_CALC_FOUND_ROWS p.id_observation, GROUP_CONCAT(DISTINCT p.id_image) as id_image, '.
|
2223 |
julien |
111 |
'iv.moyenne AS moyenne_votes, '.
|
|
|
112 |
'iv.nb_votes AS nb_votes, '.
|
|
|
113 |
'iv.nb_points AS nb_points_votes, '.
|
2222 |
julien |
114 |
'GROUP_CONCAT(DISTINCT it.tag) AS del_image_tags, '.
|
2147 |
killian |
115 |
'modif_date '.
|
1881 |
jpm |
116 |
'FROM del_plantnet AS p '.
|
2147 |
killian |
117 |
' JOIN del_observation_modif_date '.
|
|
|
118 |
' ON (p.id_observation = del_observation_modif_date.id_observation '.
|
2222 |
julien |
119 |
' AND modif_date >= '.$date_debut.' '.
|
|
|
120 |
' AND modif_date <= '.$date_fin.') '.
|
2223 |
julien |
121 |
' LEFT JOIN del_image_stat AS iv '.
|
1881 |
jpm |
122 |
' ON (id_image = iv.ce_image AND iv.ce_protocole = 3) '.
|
|
|
123 |
' LEFT JOIN del_image_tag AS it '.
|
|
|
124 |
' ON (id_image = it.ce_image AND it.actif = 1) '.
|
|
|
125 |
' LEFT JOIN del_commentaire AS c '.
|
2147 |
killian |
126 |
' ON (p.id_observation = c.ce_observation) '.
|
1881 |
jpm |
127 |
' LEFT JOIN del_commentaire_vote AS cv '.
|
|
|
128 |
' ON (c.id_commentaire = cv.ce_proposition) '.
|
2226 |
julien |
129 |
'GROUP BY p.id_observation '.
|
2122 |
mathias |
130 |
'ORDER BY modif_date ' . $ordre . ' '.
|
1881 |
jpm |
131 |
'LIMIT '.$depart.', '.$limite.
|
|
|
132 |
' -- '.__FILE__.':'.__LINE__;
|
|
|
133 |
return $this->bdd->recupererTous($requete);
|
2222 |
julien |
134 |
// On récupère id_obs, id_image, votes, tags, modif_date
|
1794 |
jpm |
135 |
}
|
1593 |
samuel |
136 |
|
1881 |
jpm |
137 |
private function getTotal() {
|
|
|
138 |
$compte = $this->bdd->recuperer('SELECT FOUND_ROWS() AS nbre');
|
|
|
139 |
$total = (int) $compte['nbre'];
|
|
|
140 |
return $total;
|
|
|
141 |
}
|
|
|
142 |
|
1794 |
jpm |
143 |
// recupere les donnée associées (fait en 2 requetes pour optimiser)
|
1881 |
jpm |
144 |
private function recupererInfos() {
|
1794 |
jpm |
145 |
// recuperer les ids
|
1881 |
jpm |
146 |
$idsImg = array();
|
|
|
147 |
foreach ($this->idsObsImg as $ids) {
|
|
|
148 |
$id = $ids['id_image'];
|
|
|
149 |
$idsImg[] = $id;
|
1794 |
jpm |
150 |
}
|
1881 |
jpm |
151 |
$idsImgConcat = implode(',', $idsImg);
|
1643 |
samuel |
152 |
|
1881 |
jpm |
153 |
$requete = 'SELECT '.
|
2223 |
julien |
154 |
'p.id_observation, p.id_plantnet, p.id_image, '.
|
2222 |
julien |
155 |
'cp.plant_net_occurrence_id, ' .
|
|
|
156 |
'p.nom_sel, p.nom_sel_nn, p.nom_ret, p.nom_ret_nn,'.
|
|
|
157 |
'p.nom_referentiel, p.famille, '.
|
2223 |
julien |
158 |
'p.zone_geo, p.latitude, p.longitude,'.
|
2222 |
julien |
159 |
'p.date_observation, p.date_created, p.date_published, '.
|
2223 |
julien |
160 |
'p.type_donnees, p.identiplante_score, p.is_identiplante_validated, p.mots_cles_cel_obs, p.programme, '.
|
2222 |
julien |
161 |
'p.ce_utilisateur, p.courriel_utilisateur, '.
|
2223 |
julien |
162 |
'p.original_name AS nom_image, p.i_date_shot AS date_shot, p.i_date_updated AS image_updated, p.mots_cles_cel_image AS mots_cles_cel_image '.
|
1881 |
jpm |
163 |
'FROM del_plantnet AS p '.
|
2222 |
julien |
164 |
'LEFT JOIN tb_new_cel.pn_tb_pair AS cp ON p.id_observation = cp.occurrence_id '.
|
1881 |
jpm |
165 |
"WHERE id_image IN ($idsImgConcat) ".
|
|
|
166 |
' -- '.__FILE__.':'.__LINE__;
|
1794 |
jpm |
167 |
// recuperer les donnees
|
1881 |
jpm |
168 |
$resultats = $this->bdd->recupererTous($requete);
|
1593 |
samuel |
169 |
|
1794 |
jpm |
170 |
// regroupe les données par id_image
|
|
|
171 |
$img_data = array();
|
1881 |
jpm |
172 |
foreach ($resultats as $infos) {
|
|
|
173 |
$idImg = $infos['id_image'];
|
|
|
174 |
$img_data[$idImg] = $infos;
|
1794 |
jpm |
175 |
}
|
|
|
176 |
return $img_data;
|
1593 |
samuel |
177 |
}
|
1681 |
samuel |
178 |
|
1593 |
samuel |
179 |
/**
|
|
|
180 |
* Retourner un tableau d'images formaté en fonction des liaisons trouvées
|
|
|
181 |
* @param $liaisons les liaisons de la table del_obs_images
|
1794 |
jpm |
182 |
*/
|
1881 |
jpm |
183 |
private function formaterInfos() {
|
1794 |
jpm |
184 |
// regroupe les observations
|
|
|
185 |
$obs = array();
|
1922 |
jpm |
186 |
$imgCelTpl = $this->conteneur->getParametre('cel_img_url_tpl');
|
1881 |
jpm |
187 |
foreach ($this->idsObsImg as $ids) {
|
|
|
188 |
$idobs = $ids['id_observation'];
|
2226 |
julien |
189 |
$idimg = explode(',', $ids['id_image']);
|
1593 |
samuel |
190 |
|
2226 |
julien |
191 |
$obs[$idobs]['id_observation'] = $idobs;
|
1593 |
samuel |
192 |
|
2226 |
julien |
193 |
foreach ($idimg as $image){
|
|
|
194 |
$imgInfos = null;
|
|
|
195 |
$imgdata = null;
|
1793 |
jpm |
196 |
|
2226 |
julien |
197 |
$imgdata = $this->infosObsImg[$image];
|
|
|
198 |
$imgInfos = $this->recupererInfosParImage($image);
|
1593 |
samuel |
199 |
|
2226 |
julien |
200 |
if (!isset($obs[$idobs])) {
|
|
|
201 |
$obs[$idobs] = array();
|
|
|
202 |
}
|
1593 |
samuel |
203 |
|
2226 |
julien |
204 |
$obs[$idobs]['id_plantnet'] = $imgdata['id_plantnet'];
|
|
|
205 |
$obs[$idobs]['auteur_courriel'] = $imgdata['courriel_utilisateur'];
|
1793 |
jpm |
206 |
|
2226 |
julien |
207 |
$obs[$idobs]['mots_cles_cel_obs'] = $imgdata['mots_cles_cel_obs'];
|
|
|
208 |
$obs[$idobs]['programme'] = $imgdata['programme'];
|
1640 |
samuel |
209 |
|
2226 |
julien |
210 |
$obs[$idobs]['date_observation'] = $imgdata['date_observation'];
|
|
|
211 |
$obs[$idobs]['date_creation'] = $imgdata['date_created'];
|
|
|
212 |
$obs[$idobs]['date_changement'] = $ids['modif_date'];
|
|
|
213 |
$obs[$idobs]['date_publication'] = $imgdata['date_published'];
|
|
|
214 |
$obs[$idobs]['type_donnees'] = $imgdata['type_donnees'];
|
|
|
215 |
$obs[$idobs]['identiplante_score'] = $imgdata['identiplante_score'];
|
|
|
216 |
$obs[$idobs]['is_identiplante_validated'] = $imgdata['is_identiplante_validated'];
|
1640 |
samuel |
217 |
|
2226 |
julien |
218 |
$obs[$idobs]['nom_sel'] = $imgdata['nom_sel'];
|
|
|
219 |
$obs[$idobs]['nom_sel_nn'] = $imgdata['nom_sel_nn'];
|
|
|
220 |
$obs[$idobs]['nom_referentiel'] = $imgdata['nom_referentiel'];
|
|
|
221 |
$obs[$idobs]['nom_ret'] = $imgdata['nom_ret'];
|
|
|
222 |
$obs[$idobs]['nom_ret_nn'] = $imgdata['nom_ret_nn'];
|
|
|
223 |
$obs[$idobs]['famille'] = $imgdata['famille'];
|
2225 |
julien |
224 |
|
2226 |
julien |
225 |
$obs[$idobs]['zone_geo'] = $imgdata['zone_geo'];
|
|
|
226 |
$obs[$idobs]['latitude'] = $imgdata['latitude'];
|
|
|
227 |
$obs[$idobs]['longitude'] = $imgdata['longitude'];
|
|
|
228 |
|
|
|
229 |
if (!isset($obs[$idobs]['images'])) {
|
|
|
230 |
$obs[$idobs]['images'] = array();
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
$img_obj = array(
|
|
|
234 |
'id_image' => $image,
|
|
|
235 |
'nom_image' => $imgdata['nom_image'],
|
|
|
236 |
'image_updated' => $imgdata['image_updated'],
|
|
|
237 |
'date_shot' => $imgdata['date_shot'],
|
|
|
238 |
'mots_cles_cel_image' => $imgInfos[0]['mots_cles_cel_image'],
|
|
|
239 |
'url' => sprintf($imgCelTpl, $idimg, 'O'),
|
|
|
240 |
'votes' => [
|
|
|
241 |
'moyenne_votes' => $imgInfos[0]['moyenne_votes'],
|
|
|
242 |
'nb_votes' => $imgInfos[0]['nb_votes'],
|
|
|
243 |
'nb_points_votes' => $imgInfos[0]['nb_points_votes'],
|
|
|
244 |
],
|
|
|
245 |
'del_tags' => explode(',', $imgInfos[0]['del_image_tags']),
|
|
|
246 |
);
|
|
|
247 |
// push
|
|
|
248 |
$obs[$idobs]['images'][] = $img_obj;
|
|
|
249 |
}
|
|
|
250 |
|
1794 |
jpm |
251 |
}
|
|
|
252 |
return $obs;
|
1593 |
samuel |
253 |
}
|
1793 |
jpm |
254 |
|
1593 |
samuel |
255 |
/**
|
1794 |
jpm |
256 |
* Charger les votes pour chaque image
|
|
|
257 |
*/
|
1640 |
samuel |
258 |
private function chargerPropositionPlusProbable(&$obs) {
|
1794 |
jpm |
259 |
$obsIds = array_keys($obs);
|
1881 |
jpm |
260 |
$idsObsConcat = implode(',', $obsIds);
|
1593 |
samuel |
261 |
|
2126 |
mathias |
262 |
$requete = 'SELECT ce_observation, id_commentaire, valeur, nom_sel, nom_sel_nn, nom_ret, cv.ce_utilisateur '.
|
1881 |
jpm |
263 |
'FROM del_commentaire_vote AS cv, del_commentaire AS c '.
|
|
|
264 |
"WHERE ce_observation IN ($idsObsConcat) ".
|
1794 |
jpm |
265 |
'AND nom_sel IS NOT NULL '.
|
1881 |
jpm |
266 |
'AND c.id_commentaire = cv.ce_proposition '.
|
|
|
267 |
' -- '.__FILE__.':'.__LINE__;
|
|
|
268 |
$resultats = $this->bdd->recupererTous($requete);
|
1593 |
samuel |
269 |
|
1794 |
jpm |
270 |
// calcul des votes
|
|
|
271 |
// un vote identifié a un facteur de 3
|
|
|
272 |
// additionne tous les vote par ce_proposition
|
1881 |
jpm |
273 |
$votes = array(); // map ce_proposition -> score
|
1794 |
jpm |
274 |
foreach ($resultats as $vote) {
|
|
|
275 |
if (!isset($votes[$vote['id_commentaire']])) {
|
|
|
276 |
$votes[$vote['id_commentaire']] = 0;
|
|
|
277 |
}
|
|
|
278 |
$valeur = ($vote['valeur'] == 1) ? 1 : -1;
|
|
|
279 |
$votes[$vote['id_commentaire']] += is_numeric($vote['ce_utilisateur']) ? 3 * $valeur : $valeur;
|
|
|
280 |
}
|
1793 |
jpm |
281 |
|
1794 |
jpm |
282 |
foreach ($resultats as $vote) {
|
|
|
283 |
$idobs = $vote['ce_observation'];
|
1793 |
jpm |
284 |
|
1794 |
jpm |
285 |
if (!isset($obs[$idobs]['determinations'])) {
|
|
|
286 |
$obs[$idobs]['determinations'] = array();
|
|
|
287 |
}
|
1793 |
jpm |
288 |
|
1794 |
jpm |
289 |
$obs[$idobs]['determinations'][$vote['id_commentaire']] =
|
|
|
290 |
array('nom_sel' => $vote['nom_sel'],
|
|
|
291 |
'nom_ret' => $vote['nom_ret'],
|
|
|
292 |
'score' => $votes[$vote['id_commentaire']],
|
|
|
293 |
'nn' => $vote['nom_sel_nn']);
|
|
|
294 |
}
|
|
|
295 |
return $obs;
|
1593 |
samuel |
296 |
}
|
1793 |
jpm |
297 |
|
1881 |
jpm |
298 |
private function orderArray(&$obs) {
|
|
|
299 |
$ret = array();
|
|
|
300 |
foreach ($obs as $o) {
|
|
|
301 |
$ret[] = $o;
|
|
|
302 |
}
|
|
|
303 |
|
2124 |
mathias |
304 |
function cmpDesc($a, $b) {
|
1881 |
jpm |
305 |
return ($a['date_changement'] < $b['date_changement']) ? 1 : -1;
|
|
|
306 |
}
|
2124 |
mathias |
307 |
function cmpAsc($a, $b) {
|
|
|
308 |
return cmpDesc($b, $a);
|
2123 |
mathias |
309 |
}
|
1881 |
jpm |
310 |
|
2123 |
mathias |
311 |
if ($this->parametres['ordre'] == 'desc') {
|
|
|
312 |
usort($ret, 'cmpDesc');
|
|
|
313 |
} else {
|
|
|
314 |
usort($ret, 'cmpAsc');
|
|
|
315 |
}
|
1881 |
jpm |
316 |
return $ret;
|
|
|
317 |
}
|
|
|
318 |
|
1593 |
samuel |
319 |
/**
|
1794 |
jpm |
320 |
* Formater les mots clés du cel en n'affichant que ceux faisant partie
|
|
|
321 |
* d'une liste définie dans le fichier de configuration
|
|
|
322 |
* @param $chaineMotCleCel la chaine de mots clés du cel
|
|
|
323 |
* @return string la chaine filtrée
|
|
|
324 |
*/
|
1593 |
samuel |
325 |
private function formaterMotsClesCel($chaineMotCleCel) {
|
1989 |
mathias |
326 |
$mots_cles_cel_affiches = "fleur,fleurs,feuille,feuilles,ecorce,fruit,fruits,port,plantnet,plantscan_new,plantnet-mobile";
|
1652 |
samuel |
327 |
|
1794 |
jpm |
328 |
$result = array_intersect(
|
|
|
329 |
explode(',', $mots_cles_cel_affiches), // $tabMotsClesAffiches
|
|
|
330 |
explode(',', $chaineMotCleCel)); // $tabMotsClesCel
|
1652 |
samuel |
331 |
|
1794 |
jpm |
332 |
if (count($result) === 0) {
|
|
|
333 |
return array();
|
|
|
334 |
}
|
|
|
335 |
$ret = explode(',', implode(',', $result));
|
|
|
336 |
return $ret;
|
1593 |
samuel |
337 |
}
|
1793 |
jpm |
338 |
|
2226 |
julien |
339 |
/**
|
|
|
340 |
* On charge les infos spécifique à chaque image d'une obs
|
|
|
341 |
*/
|
|
|
342 |
private function recupererInfosParImage($id_image){
|
|
|
343 |
$requete =
|
|
|
344 |
'SELECT SQL_CALC_FOUND_ROWS p.id_image, '.
|
|
|
345 |
'p.mots_cles_cel_image, '.
|
|
|
346 |
'iv.moyenne AS moyenne_votes, '.
|
|
|
347 |
'iv.nb_votes AS nb_votes, '.
|
|
|
348 |
'iv.nb_points AS nb_points_votes, '.
|
|
|
349 |
'GROUP_CONCAT(DISTINCT it.tag) AS del_image_tags '.
|
|
|
350 |
'FROM del_plantnet_images AS p '.
|
|
|
351 |
' LEFT JOIN del_image_stat AS iv '.
|
|
|
352 |
' ON (id_image = iv.ce_image AND iv.ce_protocole = 3) '.
|
|
|
353 |
' LEFT JOIN del_image_tag AS it '.
|
|
|
354 |
' ON (id_image = it.ce_image AND it.actif = 1) '.
|
|
|
355 |
' WHERE id_image = '. $id_image .' '.
|
|
|
356 |
'GROUP BY p.id_image '.
|
|
|
357 |
' -- '.__FILE__.':'.__LINE__;
|
|
|
358 |
return $this->bdd->recupererTous($requete);
|
|
|
359 |
}
|
1990 |
samuel |
360 |
}
|