function generateNotifications()
{
- //DB_DataObject::debugLevel(1);
+ DB_DataObject::debugLevel(1);
$w = DB_DataObject::factory($this->tableName());
$w->find();
$notifytimes = $this->notifyTimes(2);
- print_R($notifytimes);exit;
+ print_R($notifytimes);
$newSearch = DB_DataObject::factory('core_notify');
$newSearch->whereAdd( 'act_start > NOW()');
if (isset($old[$time])) {
// we already have it...
-
$oo = DB_DataObject::Factory('core_notify');
$oo->get($old[$time]);
$oc = clone($oo);
unset($old[$time]);
continue;
}
- if (strtotime($time) < time()) {
- // will not get deleted..
- //echo "SKIP BEFORE NOW";
- unset($old[$time]);
+
+ if (strtotime($time) < time()) { // should not happen, just in case...
continue;
}
+
// do not have a notify event... creat it..
$add = DB_DataObject::factory('core_notify');
$add->setFrom(array(