Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1494 Rev 1498
Line 281... Line 281...
281
			       'masque.ns' => $p['masque'],
281
			       'masque.ns' => $p['masque'],
282
			       'masque.famille' => $p['masque'],
282
			       'masque.famille' => $p['masque'],
283
			       'masque.date' => $p['masque'],
283
			       'masque.date' => $p['masque'],
284
			       'masque.genre' => $p['masque'],
284
			       'masque.genre' => $p['masque'],
285
			       /* milieu: TODO ? */ );
285
			       /* milieu: TODO ? */ );
-
 
286
	    /* Cependant les champs spécifiques ont priorité sur le masque général.
-
 
287
	       Pour cette raison nous supprimons la génération de SQL du masque général sur les
-
 
288
	       champ spécifiques qui feront l'objet d'un traitement avec une valeur propre. */
-
 
289
	    if(isset($p['masque.auteur'])) unset($or_params['masque.auteur']);
-
 
290
	    if(isset($p['masque.departement'])) unset($or_params['masque.departement']);
-
 
291
	    if(isset($p['masque.id_zone_geo'])) unset($or_params['masque.id_zone_geo']);
-
 
292
	    if(isset($p['masque.tag'])) unset($or_params['masque.tag']);
-
 
293
	    if(isset($p['masque.famille'])) unset($or_params['masque.famille']);
-
 
294
	    if(isset($p['masque.date'])) unset($or_params['masque.date']);
-
 
295
	    if(isset($p['masque.genre'])) unset($or_params['masque.genre']);
-
 
296
 
-
 
297
 
286
	    $or_masque = DelTk::requestFilterParams($or_params, array_keys($or_params), $c);
298
	    $or_masque = DelTk::requestFilterParams($or_params, array_keys($or_params), $c);
-
 
299
	    if(isset($or_params['masque.tag'])) {
287
	    $or_masque['masque.tag'] = DelTk::buildTagsAST($p['masque'], 'OR', ' ');
300
		$or_masque['masque.tag'] = DelTk::buildTagsAST($p['masque'], 'OR', ' ');
-
 
301
	    }
-
 
302
 
288
	    // $or_req = array('select' => array(), 'join' => array(), 'where' => array(), 'groupby' => array(), 'having' => array());
303
	    // $or_req = array('select' => array(), 'join' => array(), 'where' => array(), 'groupby' => array(), 'having' => array());
289
	    $or_req = array('join' => array(), 'where' => array());
304
	    $or_req = array('join' => array(), 'where' => array());
290
	    DelTk::sqlAddConstraint($or_masque, $db, $or_req);
305
	    DelTk::sqlAddConstraint($or_masque, $db, $or_req);
291
	    self::sqlAddConstraint($or_masque, $db, $or_req);
306
	    self::sqlAddConstraint($or_masque, $db, $or_req);