Open Journal Systems
3.3.0
PKPNotification.inc.php
1
<?php
2
16
import
(
'lib.pkp.classes.notification.NotificationDAO'
);
17
19
define(
'NOTIFICATION_LEVEL_TRIVIAL'
, 0x0000001);
20
define(
'NOTIFICATION_LEVEL_NORMAL'
, 0x0000002);
21
define(
'NOTIFICATION_LEVEL_TASK'
, 0x0000003);
22
24
define(
'NOTIFICATION_TYPE_SUCCESS'
, 0x0000001);
25
define(
'NOTIFICATION_TYPE_WARNING'
, 0x0000002);
26
define(
'NOTIFICATION_TYPE_ERROR'
, 0x0000003);
27
define(
'NOTIFICATION_TYPE_FORBIDDEN'
, 0x0000004);
28
define(
'NOTIFICATION_TYPE_INFORMATION'
, 0x0000005);
29
define(
'NOTIFICATION_TYPE_HELP'
, 0x0000006);
30
define(
'NOTIFICATION_TYPE_FORM_ERROR'
, 0x0000007);
31
define(
'NOTIFICATION_TYPE_NEW_ANNOUNCEMENT'
, 0x0000008);
32
33
// define('NOTIFICATION_TYPE_LOCALE_INSTALLED', 0x4000001); // DEPRECATED; DO NOT USE
34
35
define(
'NOTIFICATION_TYPE_PLUGIN_ENABLED'
, 0x5000001);
36
define(
'NOTIFICATION_TYPE_PLUGIN_DISABLED'
, 0x5000002);
37
38
define(
'NOTIFICATION_TYPE_PLUGIN_BASE'
, 0x6000001);
39
40
// Workflow-level notifications
41
define(
'NOTIFICATION_TYPE_SUBMISSION_SUBMITTED'
, 0x1000001);
42
define(
'NOTIFICATION_TYPE_METADATA_MODIFIED'
, 0x1000002);
43
44
define(
'NOTIFICATION_TYPE_REVIEWER_COMMENT'
, 0x1000003);
45
define(
'NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_SUBMISSION'
, 0x1000004);
46
define(
'NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_INTERNAL_REVIEW'
, 0x1000005);
47
define(
'NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_EXTERNAL_REVIEW'
, 0x1000006);
48
define(
'NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_EDITING'
, 0x1000007);
49
define(
'NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_PRODUCTION'
, 0x1000008);
50
// define('NOTIFICATION_TYPE_AUDITOR_REQUEST', 0x1000009); // DEPRECATED; DO NOT USE
51
define(
'NOTIFICATION_TYPE_REVIEW_ASSIGNMENT'
, 0x100000B);
52
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_INTERNAL_REVIEW'
, 0x100000D);
53
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_ACCEPT'
, 0x100000E);
54
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_EXTERNAL_REVIEW'
, 0x100000F);
55
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_PENDING_REVISIONS'
, 0x1000010);
56
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_RESUBMIT'
, 0x1000011);
57
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_NEW_ROUND'
, 0x1000030);
58
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_DECLINE'
, 0x1000012);
59
define(
'NOTIFICATION_TYPE_EDITOR_DECISION_SEND_TO_PRODUCTION'
, 0x1000013);
60
define(
'NOTIFICATION_TYPE_REVIEW_ROUND_STATUS'
, 0x1000014);
61
define(
'NOTIFICATION_TYPE_PENDING_INTERNAL_REVISIONS'
, 0x1000015);
62
define(
'NOTIFICATION_TYPE_PENDING_EXTERNAL_REVISIONS'
, 0x1000016);
63
define(
'NOTIFICATION_TYPE_COPYEDIT_ASSIGNMENT'
, 0x1000017);
64
define(
'NOTIFICATION_TYPE_LAYOUT_ASSIGNMENT'
, 0x1000019);
65
define(
'NOTIFICATION_TYPE_INDEX_ASSIGNMENT'
, 0x100001A);
66
define(
'NOTIFICATION_TYPE_APPROVE_SUBMISSION'
, 0x100001B);
67
define(
'NOTIFICATION_TYPE_CONFIGURE_PAYMENT_METHOD'
, 0x100001C);
68
define(
'NOTIFICATION_TYPE_FORMAT_NEEDS_APPROVED_SUBMISSION'
, 0x100001D);
69
define(
'NOTIFICATION_TYPE_VISIT_CATALOG'
, 0x100001E);
70
define(
'NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_REQUIRED'
, 0x100001F);
71
define(
'NOTIFICATION_TYPE_NEW_QUERY'
, 0x1000021);
72
define(
'NOTIFICATION_TYPE_QUERY_ACTIVITY'
, 0x1000022);
73
74
define(
'NOTIFICATION_TYPE_ASSIGN_COPYEDITOR'
, 0x1000023);
75
define(
'NOTIFICATION_TYPE_AWAITING_COPYEDITS'
, 0x1000024);
76
define(
'NOTIFICATION_TYPE_AWAITING_REPRESENTATIONS'
, 0x1000025);
77
define(
'NOTIFICATION_TYPE_ASSIGN_PRODUCTIONUSER'
, 0x1000026);
78
79
define(
'NOTIFICATION_TYPE_EDITOR_ASSIGN'
, 0x1000027);
80
define(
'NOTIFICATION_TYPE_PAYMENT_REQUIRED'
, 0x1000028);
81
82
define(
'NOTIFICATION_TYPE_REVIEW_ASSIGNMENT_UPDATED'
, 0x1000029);
83
define(
'NOTIFICATION_TYPE_EDITORIAL_REPORT'
, 0x100002A);
84
85
define(
'NOTIFICATION_TYPE_SUBMISSION_NEW_VERSION'
, 0x100002B);
86
87
class
PKPNotification
extends
DataObject
{
88
93
function
getUserId
() {
94
return
$this->
getData
(
'userId'
);
95
}
96
101
function
setUserId
($userId) {
102
$this->
setData
(
'userId'
, $userId);
103
}
104
109
function
getLevel
() {
110
return
$this->
getData
(
'level'
);
111
}
112
117
function
setLevel
($level) {
118
$this->
setData
(
'level'
, $level);
119
}
120
125
function
getDateCreated
() {
126
return
$this->
getData
(
'dateCreated'
);
127
}
128
133
function
setDateCreated
($dateCreated) {
134
$this->
setData
(
'dateCreated'
, $dateCreated);
135
}
136
141
function
getDateRead
() {
142
return
$this->
getData
(
'dateRead'
);
143
}
144
149
function
setDateRead
($dateRead) {
150
$this->
setData
(
'dateRead'
, $dateRead);
151
}
152
157
function
getType
() {
158
return
$this->
getData
(
'type'
);
159
}
160
165
function
setType
($type) {
166
$this->
setData
(
'type'
, $type);
167
}
168
173
function
getAssocType
() {
174
return
$this->
getData
(
'assocType'
);
175
}
176
181
function
setAssocType
($assocType) {
182
$this->
setData
(
'assocType'
, $assocType);
183
}
184
189
function
getAssocId
() {
190
return
$this->
getData
(
'assocId'
);
191
}
192
197
function
setAssocId
($assocId) {
198
$this->
setData
(
'assocId'
, $assocId);
199
}
200
205
function
getContextId
() {
206
return
$this->
getData
(
'context_id'
);
207
}
208
213
function
setContextId
($contextId) {
214
$this->
setData
(
'context_id'
, $contextId);
215
}
216
}
217
PKPNotification\getType
getType()
Definition:
PKPNotification.inc.php:157
DataObject\getData
& getData($key, $locale=null)
Definition:
DataObject.inc.php:100
PKPNotification\setContextId
setContextId($contextId)
Definition:
PKPNotification.inc.php:213
PKPNotification\setType
setType($type)
Definition:
PKPNotification.inc.php:165
DataObject
Any class with an associated DAO should extend this class.
Definition:
DataObject.inc.php:18
PKPNotification\getAssocId
getAssocId()
Definition:
PKPNotification.inc.php:189
PKPNotification\getUserId
getUserId()
Definition:
PKPNotification.inc.php:93
PKPNotification\getDateCreated
getDateCreated()
Definition:
PKPNotification.inc.php:125
PKPNotification\setAssocId
setAssocId($assocId)
Definition:
PKPNotification.inc.php:197
PKPNotification\getDateRead
getDateRead()
Definition:
PKPNotification.inc.php:141
PKPNotification\setDateRead
setDateRead($dateRead)
Definition:
PKPNotification.inc.php:149
PKPNotification\setLevel
setLevel($level)
Definition:
PKPNotification.inc.php:117
PKPNotification\setDateCreated
setDateCreated($dateCreated)
Definition:
PKPNotification.inc.php:133
PKPNotification\getLevel
getLevel()
Definition:
PKPNotification.inc.php:109
PKPNotification\getContextId
getContextId()
Definition:
PKPNotification.inc.php:205
PKPNotification\setAssocType
setAssocType($assocType)
Definition:
PKPNotification.inc.php:181
PKPNotification
Definition:
PKPNotification.inc.php:87
PKPNotification\getAssocType
getAssocType()
Definition:
PKPNotification.inc.php:173
PKPNotification\setUserId
setUserId($userId)
Definition:
PKPNotification.inc.php:101
DataObject\setData
setData($key, $value, $locale=null)
Definition:
DataObject.inc.php:132
lib
pkp
classes
notification
PKPNotification.inc.php
Generated on Fri Aug 28 2020 14:53:05 for Open Journal Systems by
1.8.17