$user->watch() that check informations from the carnet.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
$this->fillFromArray($watch);
}
- public function watch($type)
+ public function watchType($type)
{
$this->fetchWatchData();
return $this->watch_actions->hasFlag($type);
{
public function buildCondition(PlFilter &$uf)
{
- if (!$this->user->watch('registration')) {
+ if (!$this->user->watchType('registration')) {
return PlFilterCondition::COND_FALSE;
}
$uids = $this->user->watchUsers();
public function getCondition(PlUser &$user, $date)
{
$this->date = $date;
- if (!$user->watch($this->flag)) {
+ if (!$user->watchType($this->flag)) {
return new PFC_False();
} else {
return $this->buildCondition($user);