+ if(!empty($q['_evtype_align'])){
+ $this->selectAdd("
+ (SELECT
+ display_name
+ FROM
+ core_enum
+ WHERE
+ etype = 'Core.NotifyType'
+ AND
+ name = core_notify.evtype
+ AND
+ active = 1
+ ) AS evtype_align
+ ");
+ }
+
+ if(!empty($q['from'])){
+ $this->whereAdd("
+ act_when >= '{$q['from']}'
+ ");
+ }
+
+ if(!empty($q['to'])){
+ $this->whereAdd("
+ act_when <= '{$q['to']}'
+ ");
+ }
+
+ }
+
+ function sendManual($debug=false)
+ {
+ require_once 'Pman/Core/NotifySend.php';
+
+ $send = new Pman_Core_NotifySend();
+ $send->error_handler = 'exception';