Open Journal Systems
3.3.0
EmailLogEntry.inc.php
1
<?php
2
18
class
EmailLogEntry
extends
DataObject
{
19
20
//
21
// Get/set methods
22
//
23
28
function
getSenderId
() {
29
return
$this->
getData
(
'senderId'
);
30
}
31
36
function
setSenderId
($senderId) {
37
$this->
setData
(
'senderId'
, $senderId);
38
}
39
44
function
getDateSent
() {
45
return
$this->
getData
(
'dateSent'
);
46
}
47
52
function
setDateSent
($dateSent) {
53
$this->
setData
(
'dateSent'
, $dateSent);
54
}
55
60
function
getEventType
() {
61
return
$this->
getData
(
'eventType'
);
62
}
63
68
function
setEventType
($eventType) {
69
$this->
setData
(
'eventType'
, $eventType);
70
}
71
76
function
getAssocType
() {
77
return
$this->
getData
(
'assocType'
);
78
}
79
84
function
setAssocType
($assocType) {
85
$this->
setData
(
'assocType'
, $assocType);
86
}
87
92
function
getAssocId
() {
93
return
$this->
getData
(
'assocId'
);
94
}
95
100
function
setAssocId
($assocId) {
101
$this->
setData
(
'assocId'
, $assocId);
102
}
103
108
function
getSenderFullName
() {
109
$senderFullName =& $this->
getData
(
'senderFullName'
);
110
111
if
(!isset($senderFullName)) {
112
$userDao =
DAORegistry::getDAO
(
'UserDAO'
);
/* @var $userDao UserDAO */
113
$senderFullName = $userDao->getUserFullName($this->
getSenderId
(),
true
);
114
}
115
116
return
($senderFullName ? $senderFullName :
''
);
117
}
118
123
function
getSenderEmail
() {
124
$senderEmail =& $this->
getData
(
'senderEmail'
);
125
126
if
(!isset($senderEmail)) {
127
$userDao =
DAORegistry::getDAO
(
'UserDAO'
);
/* @var $userDao UserDAO */
128
$senderEmail = $userDao->getUserEmail($this->
getSenderId
(),
true
);
129
}
130
131
return
($senderEmail ? $senderEmail :
''
);
132
}
133
134
135
//
136
// Email data
137
//
138
139
function
getFrom
() {
140
return
$this->
getData
(
'from'
);
141
}
142
143
function
setFrom
($from) {
144
$this->
setData
(
'from'
, $from);
145
}
146
147
function
getRecipients
() {
148
return
$this->
getData
(
'recipients'
);
149
}
150
151
function
setRecipients
($recipients) {
152
$this->
setData
(
'recipients'
, $recipients);
153
}
154
155
function
getCcs
() {
156
return
$this->
getData
(
'ccs'
);
157
}
158
159
function
setCcs
($ccs) {
160
$this->
setData
(
'ccs'
, $ccs);
161
}
162
163
function
getBccs
() {
164
return
$this->
getData
(
'bccs'
);
165
}
166
167
function
setBccs
($bccs) {
168
$this->
setData
(
'bccs'
, $bccs);
169
}
170
171
function
getSubject
() {
172
return
$this->
getData
(
'subject'
);
173
}
174
175
function
setSubject
($subject) {
176
$this->
setData
(
'subject'
, $subject);
177
}
178
179
function
getBody
() {
180
return
$this->
getData
(
'body'
);
181
}
182
183
function
setBody
($body) {
184
$this->
setData
(
'body'
, $body);
185
}
186
191
function
getPrefixedSubject
() {
192
return
__(
'submission.event.subjectPrefix'
) .
' '
. $this->
getSubject
();
193
}
194
}
195
196
DataObject\getData
& getData($key, $locale=null)
Definition:
DataObject.inc.php:100
EmailLogEntry\setDateSent
setDateSent($dateSent)
Definition:
EmailLogEntry.inc.php:52
DataObject
Any class with an associated DAO should extend this class.
Definition:
DataObject.inc.php:18
EmailLogEntry\getSenderId
getSenderId()
Definition:
EmailLogEntry.inc.php:28
EmailLogEntry\getDateSent
getDateSent()
Definition:
EmailLogEntry.inc.php:44
DAORegistry\getDAO
static & getDAO($name, $dbconn=null)
Definition:
DAORegistry.inc.php:57
EmailLogEntry\getEventType
getEventType()
Definition:
EmailLogEntry.inc.php:60
EmailLogEntry\getBccs
getBccs()
Definition:
EmailLogEntry.inc.php:163
EmailLogEntry\setCcs
setCcs($ccs)
Definition:
EmailLogEntry.inc.php:159
EmailLogEntry\getSenderFullName
getSenderFullName()
Definition:
EmailLogEntry.inc.php:108
EmailLogEntry\getPrefixedSubject
getPrefixedSubject()
Definition:
EmailLogEntry.inc.php:191
EmailLogEntry\getRecipients
getRecipients()
Definition:
EmailLogEntry.inc.php:147
EmailLogEntry\getFrom
getFrom()
Definition:
EmailLogEntry.inc.php:139
EmailLogEntry\getBody
getBody()
Definition:
EmailLogEntry.inc.php:179
EmailLogEntry\getAssocId
getAssocId()
Definition:
EmailLogEntry.inc.php:92
EmailLogEntry\setFrom
setFrom($from)
Definition:
EmailLogEntry.inc.php:143
EmailLogEntry\getSenderEmail
getSenderEmail()
Definition:
EmailLogEntry.inc.php:123
EmailLogEntry\getAssocType
getAssocType()
Definition:
EmailLogEntry.inc.php:76
EmailLogEntry\getCcs
getCcs()
Definition:
EmailLogEntry.inc.php:155
EmailLogEntry
Describes an entry in the email log.
Definition:
EmailLogEntry.inc.php:18
EmailLogEntry\setBody
setBody($body)
Definition:
EmailLogEntry.inc.php:183
EmailLogEntry\setEventType
setEventType($eventType)
Definition:
EmailLogEntry.inc.php:68
EmailLogEntry\setAssocType
setAssocType($assocType)
Definition:
EmailLogEntry.inc.php:84
EmailLogEntry\setSubject
setSubject($subject)
Definition:
EmailLogEntry.inc.php:175
EmailLogEntry\setSenderId
setSenderId($senderId)
Definition:
EmailLogEntry.inc.php:36
EmailLogEntry\getSubject
getSubject()
Definition:
EmailLogEntry.inc.php:171
EmailLogEntry\setBccs
setBccs($bccs)
Definition:
EmailLogEntry.inc.php:167
DataObject\setData
setData($key, $value, $locale=null)
Definition:
DataObject.inc.php:132
EmailLogEntry\setAssocId
setAssocId($assocId)
Definition:
EmailLogEntry.inc.php:100
EmailLogEntry\setRecipients
setRecipients($recipients)
Definition:
EmailLogEntry.inc.php:151
lib
pkp
classes
log
EmailLogEntry.inc.php
Generated on Fri Aug 28 2020 14:51:36 for Open Journal Systems by
1.8.17