* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
VALUES ({?}, NOW(), {?})',
$profile->id(), $field);
}
protected function buildCondition(PlUser &$user)
{
VALUES ({?}, NOW(), {?})',
$profile->id(), $field);
}
protected function buildCondition(PlUser &$user)
{
- WHERE uid = {?} AND ts > FROM_UNIXTIME({?}) AND field != \'\'
- ORDER BY ts',
- $user->id(), $this->date);
+ WHERE pid = {?} AND ts > FROM_UNIXTIME({?}) AND field != ''
+ ORDER BY ts",
+ $user->profile()->id(), $this->date);
- return new UFC_And(new UFC_Registered(false, '>', $this->date),
- new UFC_Or(new UFC_WatchContact($user),
+ return new PFC_And(new UFC_Registered(false, '>', $this->date),
+ new PFC_Or(new UFC_WatchContact($user),
- return new UFC_And(new UFC_Dead('>', $this->date, true),
- new UFC_Or(new UFC_WatchPromo($user),
+ return new PFC_And(new UFC_Dead('>', $this->date, true),
+ new PFC_Or(new UFC_WatchPromo($user),
- return new UFC_And(new UFC_OR(new UFC_Birthday('=', time()),
- new UFC_And(new UFC_Birthday('<=', time() + self::WATCH_LIMIT),
+ return new PFC_And(new PFC_OR(new UFC_Birthday('=', time()),
+ new PFC_And(new UFC_Birthday('<=', time() + self::WATCH_LIMIT),