Add sugar.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 3 Feb 2009 07:37:30 +0000 (08:37 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 3 Feb 2009 07:37:30 +0000 (08:37 +0100)
commit5dd9d82327c44b3d5ce999c44a088f23e6b8ed8c
tree975e81631fabba75742a7cd04ba9f72e8cabf834
parent784745cebdbea9f5a88f15c3554d53fec46f4c19
Add sugar.

eg.: To build a filter that matches user with promo X between 1960 and 2002
$uf = new UserFilter(new UFC_And(new UFC_Promo('<=', UserFilter::GRADE_ING, 2002),
                                 new UFC_Promo('>=', UserFilter::GRADE_ING, 1960)))

(UFC = UserFilterCondition).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/userfilter.php