$start = date('Y-m-d H:i:s', max(strtotime("NOW"), strtotime($this->dtstart)));
$end = date('Y-m-d H:i:s', min(strtotime("NOW + $advance DAYS"), strtotime($this->dtend)));
+ return array($start, $end);
}
function method()
$usedays[] = date("Y-m-d", $ut);
}
}
-
+
//print_r($this);
$notifytimes = $this->notifyTimes(2);
- ////print_R($notifytimes);
+ //print_R($notifytimes);
$newSearch = DB_DataObject::factory('core_notify');
$newSearch->whereAdd( 'act_start > NOW()');
$n->delete(DB_DATAOBJECT_WHEREADD_ONLY);
}
- function toRooArray($request)
- {
- $ret = $this->toArray();
-
- if(!empty($ret['keyword_filters'])){
- $keywords = array_unique(array_filter(explode(',', $ret['keyword_filters'])));
- }
-
-
- return $ret;
- }
}