Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1654 Rev 1657
Line 231... Line 231...
231
	private function chargerPropositionPlusProbable(&$obs) {
231
	private function chargerPropositionPlusProbable(&$obs) {
Line 232... Line 232...
232
 
232
 
Line 233... Line 233...
233
          $obsIds = array_keys($obs);
233
          $obsIds = array_keys($obs);
234
 
234
 
235
          $resultats = $this->bdd->recupererTous(sprintf(
235
          $resultats = $this->bdd->recupererTous(sprintf(
236
                  'SELECT ce_observation, id_commentaire, valeur, nom_sel, nom_sel_nn, del_commentaire_vote.ce_utilisateur '.
236
                  'SELECT ce_observation, id_commentaire, valeur, nom_sel, nom_sel_nn, nom_ret, nom_ret_nn, del_commentaire_vote.ce_utilisateur '.
237
                  'FROM del_commentaire_vote, del_commentaire '.
237
                  'FROM del_commentaire_vote, del_commentaire '.
238
                  'WHERE ce_observation IN (%s) '.
238
                  'WHERE ce_observation IN (%s) '.
239
                  'AND nom_sel IS NOT NULL '.
239
                  'AND nom_sel IS NOT NULL '.
Line 261... Line 261...
261
              $obs[$idobs]['determinations'] = array();
261
              $obs[$idobs]['determinations'] = array();
262
            }
262
            }
Line 263... Line 263...
263
 
263
 
264
            $obs[$idobs]['determinations'][$vote['id_commentaire']] = 
264
            $obs[$idobs]['determinations'][$vote['id_commentaire']] = 
-
 
265
              array('nom_sel' => $vote['nom_sel'],
265
              array('nom_sel' => $vote['nom_sel'],
266
                    'nom_ret' => $vote['nom_ret'],
266
                    'score' => $votes[$vote['id_commentaire']],
267
                    'score' => $votes[$vote['id_commentaire']],
267
                    'nn' => $vote['nom_sel_nn']
268
                    'nn' => $vote['nom_sel_nn']
268
                    );
269
                    );