Line 544... |
Line 544... |
544 |
static function requestFilterParams(Array $params, $parametres_autorises, Conteneur $c = NULL /* pour la récup des départements */ ) {
|
544 |
static function requestFilterParams(Array $params, $parametres_autorises, Conteneur $c = NULL /* pour la récup des départements */ ) {
|
545 |
$params = array_intersect_key($params, array_flip($parametres_autorises));
|
545 |
$params = array_intersect_key($params, array_flip($parametres_autorises));
|
Line 546... |
Line 546... |
546 |
|
546 |
|
547 |
$p['tri'] = self::unsetIfInvalid($params, 'tri', array('date_observation'));
|
547 |
$p['tri'] = self::unsetIfInvalid($params, 'tri', array('date_observation'));
|
548 |
$p['ordre'] = self::unsetIfInvalid($params, 'ordre', array('asc','desc'));
|
548 |
$p['ordre'] = self::unsetIfInvalid($params, 'ordre', array('asc','desc'));
|
Line 549... |
Line 549... |
549 |
$p['masque.referentiel'] = self::unsetIfInvalid($params, 'referentiel', array('bdtfx','bdtxa','isfan'));
|
549 |
$p['masque.referentiel'] = self::unsetIfInvalid($params, 'masque.referentiel', array('bdtfx','bdtxa','isfan'));
|
550 |
|
550 |
|
551 |
// TODO: use filter_input(INPUT_GET);
|
551 |
// TODO: use filter_input(INPUT_GET);
|
552 |
// renvoie FALSE ou NULL si absent ou invalide
|
552 |
// renvoie FALSE ou NULL si absent ou invalide
|