Many improvements in Watch object: try to reuse as much as possible
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 19 Jun 2010 09:24:39 +0000 (11:24 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 19 Jun 2010 09:24:39 +0000 (11:24 +0200)
commite947c4219e887adb7151d3ba808faf40d0a973d3
tree93b5dad6844edcbd28d73c2a625c49b29a009b06
parentb6dcc0b3f53ce1252bcce82b49ffaf591ec59947
Many improvements in Watch object: try to reuse as much as possible
objects.

This introduce a new API for Watch:
 $watch = new Watch($user [, $date]);
 if ($watch->count() > 0) {
   $events = $watch->events();
   ...
 }

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/notifs.inc.php