Line 46... |
Line 46... |
46 |
* Recherche une collection en fonction de paramĂȘtres
|
46 |
* Recherche une collection en fonction de paramĂȘtres
|
47 |
* @return array un tableau contenant des objets d'informations sur les collections
|
47 |
* @return array un tableau contenant des objets d'informations sur les collections
|
48 |
*/
|
48 |
*/
|
49 |
public function chercher($parametres) {
|
49 |
public function chercher($parametres) {
|
50 |
$requete = 'SELECT cs_id_structure, cs_ville, cs_nom, '.
|
50 |
$requete = 'SELECT cs_id_structure, cs_ville, cs_nom, '.
|
51 |
' cc_nom '.
|
51 |
' cc_id_collection, cc_nom '.
|
52 |
'FROM coel_collection LEFT JOIN coel_structure ON (cc_ce_structure = cs_id_structure) '.
|
52 |
'FROM coel_collection LEFT JOIN coel_structure ON (cc_ce_structure = cs_id_structure) '.
|
53 |
'WHERE ('.
|
53 |
'WHERE ('.
|
54 |
" cc_nom LIKE '%{$parametres['mots']}%' ".
|
54 |
" cc_nom LIKE '%{$parametres['mots']}%' ".
|
55 |
" OR cc_truk_nom_alternatif LIKE '%{$parametres['mots']}%' ".
|
55 |
" OR cc_truk_nom_alternatif LIKE '%{$parametres['mots']}%' ".
|
56 |
" OR cc_truk_code LIKE '%{$parametres['mots']}%' ".
|
56 |
" OR cc_truk_code LIKE '%{$parametres['mots']}%' ".
|