}
}
- //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;
"act_when" => $time,
"person_id" => $this->person_id,
"onid" => $this->onid,
- "ontable" => $this->ontable
+ "ontable" => $this->ontable,
+ 'evtype' => $this->method,
));
$add->insert();
}