return false;
}
+
+ function triggerEvent()
+ {
+
+ $c = DB_DataObject::factory('Events');
+
+ if ($c->get($this->trigger_event_id)) {
+ return $c;
+ }
+ return false;
+
+ }
+
function delivered()
{
return !empty($this->msgid);
}
+ function whereAddDeliveryStatus($delivered = false)
+ {
+ $tn = $this->tableName();
+ if ($delivered) {
+ $this->whereAdd("$tn.msgid IS NOT NULL AND $tn.msgid != ''");
+ } else {
+ $this->whereAdd("$tn.msgid IS NULL OR $tn.msgid = ''");
+ }
+ }
+
function status() // used by commandline reporting at present..
{
switch($this->event_id) {
case 'PENDING';
$this->whereAdd('event_id = 0 OR (event_id > 0 AND act_when > NOW() )');
break;
+ case 'OPENED';
+ $this->whereAdd('is_open > 0');
+ break;
case 'ALL':
default:
break;