// it starts 24 hours ago.. or when dtstart
list($start, $end) = $this->notifytimesRange($advance);
+ var_dump(array($start, $end));
+ print_r($this);
if (strtotime($start) > strtotime($end)) {
return array(); // no data..
function generateNotifications()
{
- DB_DataObject::debugLevel(1);
+ //DB_DataObject::debugLevel(1);
$w = DB_DataObject::factory($this->tableName());
$w->find();
$notifytimes = $this->notifyTimes(2);
+ echo "{$this->person()->email}\n";
print_R($notifytimes);
$newSearch = DB_DataObject::factory('core_notify');
}
+ function person()
+ {
+ $p = DB_DAtaObject::factory('Person');
+ $p->get($this->person_id);
+ return $p;
+ }
+
function onUpdate($old, $request,$roo)
{
$this->generateNotificationsSingle();