}
+ function method()
+ {
+ $e = DB_DataObject::Factory('core_enum');
+ $e->get($this->method_id);
+ return $e;
+ }
+
function notifytimes($advance)
{
if (isset($old[$time])) {
// we already have it...
+
+ $oo = clone($old[$time]);
+ $oo->evtype = $this->method()->name;
+ $oo->update($old[$time]);
+
unset($old[$time]);
continue;
}
"person_id" => $this->person_id,
"onid" => $this->onid,
"ontable" => $this->ontable,
- 'evtype' => $this->method,
+ 'evtype' => $this->method()->name,
));
$add->insert();
}