Subversion Repositories eFlore/Applications.cel

Rev

Rev 1114 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1114 Rev 1162
Line 285... Line 285...
285
    public function formaterPourEnvoiCel($tableau_images) {
285
    public function formaterPourEnvoiCel($tableau_images) {
286
    	foreach($tableau_images as &$image) {
286
    	foreach($tableau_images as &$image) {
287
    		$ids_mots_cles = $this->getIdsMotsClesImage($image['id_image']);
287
    		$ids_mots_cles = $this->getIdsMotsClesImage($image['id_image']);
288
    		$mots_cles_chaine = '';
288
    		$mots_cles_chaine = '';
289
    		foreach($ids_mots_cles as $id_mot_cle) {
289
    		foreach($ids_mots_cles as $id_mot_cle) {
290
    			$mots_cles_chaine .= $id_mot_cle['id_mot_cle_utilisateur'].',';
290
    			$mots_cles_chaine .= $id_mot_cle['id_mot_cle_image'].',';
291
    		}
291
    		}
292
    		$mots_cles_chaine = rtrim($mots_cles_chaine,',');
292
    		$mots_cles_chaine = rtrim($mots_cles_chaine,',');
293
    		$image['mots_cles'] = $mots_cles_chaine;
293
    		$image['mots_cles'] = $mots_cles_chaine;
294
    	}
294
    	}
Line 295... Line 295...
295
    
295
    
296
    	return $tableau_images;
296
    	return $tableau_images;
Line 297... Line 297...
297
    }
297
    }
Line 298... Line 298...
298
    
298
    
299
    private function getIdsMotsClesImage($id_image) {
299
    private function getIdsMotsClesImage($id_image) {
300
    
300
    
Line 301... Line 301...
301
    	$requete_selection_mots_cles = 'SELECT DISTINCT id_mot_cle_utilisateur '.
301
    	$requete_selection_mots_cles = 'SELECT DISTINCT id_mot_cle_image '.
302
    									   'FROM cel_images_mots_cles '.
302
    									   'FROM cel_images_mots_cles '.