}
}
- //print_r($usedays);
+ //print_r($this);
foreach($usedays as $d){
$notifytimes = $this->notifyTimes(2);
+ print_R($notifytimes);exit;
+
$newSearch = DB_DataObject::factory('core_notify');
$newSearch->whereAdd( 'act_start > NOW()');
$newSearch->recur_id = $this->id;
foreach($notifytimes as $time){
if (strtotime($time) < time()) {
+ // will not get deleted..
+ unset($old[$time]);
continue;
}
if (isset($old[$time])) {
"act_when" => $time,
"person_id" => $this->person_id,
"onid" => $this->onid,
- "ontable" => $this->ontable
+ "ontable" => $this->ontable,
+ 'evtype' => $this->method,
));
$add->insert();
}