+ if (!empty($q['query']['status'])) {
+ switch ($q['query']['status']) {
+
+ case 'SUCCESS';
+ $this->whereAdd("msgid != ''");
+ break;
+ case 'FAILED';
+ $this->whereAdd('event_id > 0 AND act_when <= NOW() ');
+ $this->is_active = 0;
+ break;
+ case 'PENDING';
+
+ $this->is_active = 0;
+ break;
+ case 'ALL':
+ default:
+ break;
+ }
+ }