projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df946e5
)
DataObjects/Core_notify.php
author
Alan Knowles
<alan@roojs.com>
Wed, 10 Jul 2013 11:47:26 +0000
(19:47 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 10 Jul 2013 11:47:26 +0000
(19:47 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
3cd4081
..
0e80c6d
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-102,7
+102,7
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
}
function delivered()
{
}
function delivered()
{
- return !empty($msgid);
+ return !empty($
this->
msgid);
}
function status() // used by commandline reporting at present..
}
function status() // used by commandline reporting at present..
@@
-142,6
+142,23
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
$this->whereAdd( "join_person_id_id.name LIKE '{$this->escape($q['query']['person_id_name'])}%'");
}
$this->whereAdd( "join_person_id_id.name LIKE '{$this->escape($q['query']['person_id_name'])}%'");
}
+ if (!empty($q['query']['status'])) {
+ switch ($q['query']['status']) {
+
+ case 'SUCCESS';
+ $this->is_active = 1;
+ break;
+ case 'FAILED';
+ $this->is_active = 0;
+ break;
+ case 'PENDING';
+ $this->is_active = 0;
+ break;
+ case 'ALL':
+ default:
+ break;
+ }
+ }