18 define(
'SUBMISSION_LOG_NOTE_POSTED', 0x01000000);
19 define(
'SUBMISSION_LOG_MESSAGE_SENT', 0x01000001);
32 return $this->
getData(
'userId');
40 $this->
setData(
'userId', $userId);
48 return $this->
getData(
'dateLogged');
56 $this->
setData(
'dateLogged', $dateLogged);
64 return $this->
getData(
'eventType');
72 $this->
setData(
'eventType', $eventType);
80 return $this->
getData(
'assocType');
88 $this->
setData(
'assocType', $assocType);
96 return $this->
getData(
'assocId');
104 $this->
setData(
'assocId', $assocId);
112 return $this->
getData(
'message');
120 $this->
setData(
'message', $message);
128 return $this->
getData(
'isTranslated');
136 $this->
setData(
'isTranslated', $isTranslated);
153 $params = array_merge($this->_data, $this->
getParams());
154 unset($params[
'params']);
156 if ($hideReviewerName) {
159 if (isset($params[
'reviewerName'])) {
161 if (isset($params[
'reviewAssignmentId'])) {
162 $reviewAssignment = $reviewAssignmentDao->getById($params[
'reviewAssignmentId']);
163 if ($reviewAssignment && !in_array($reviewAssignment->getReviewMethod(), array(SUBMISSION_REVIEW_METHOD_BLIND, SUBMISSION_REVIEW_METHOD_DOUBLEBLIND))) {
164 $blindAuthor =
false;
168 $params[
'reviewerName'] = __(
'editor.review.anonymousReviewer');
172 if (isset($params[
'fileStage']) && $params[
'fileStage'] === SUBMISSION_FILE_REVIEW_ATTACHMENT) {
173 assert(isset($params[
'fileId']) && isset($params[
'submissionId']));
176 $submissionFile = $submissionFileDao->getLatestRevision($params[
'fileId']);
177 if ($submissionFile && $submissionFile->getAssocType() === ASSOC_TYPE_REVIEW_ASSIGNMENT) {
178 $reviewAssignment = $reviewAssignmentDao->getById($submissionFile->getAssocId());
179 if ($reviewAssignment && !in_array($reviewAssignment->getReviewMethod(), array(SUBMISSION_REVIEW_METHOD_BLIND, SUBMISSION_REVIEW_METHOD_DOUBLEBLIND))) {
180 $blindAuthor =
false;
183 if (isset($params[
'username']) && $blindAuthor) {
184 if (isset($params[
'username'])) {
185 $params[
'username'] = __(
'editor.review.anonymousReviewer');
187 if (isset($params[
'originalFileName'])) {
188 $params[
'originalFileName'] =
'';
195 return __($message, $params, $locale);
203 return $this->
getData(
'params');
211 $this->
setData(
'params', $params);
219 $userFullName =& $this->
getData(
'userFullName');
220 if(!isset($userFullName)) {
222 $userFullName = $userDao->getUserFullName($this->
getUserId(),
true);
225 return ($userFullName ? $userFullName :
'');
233 $userEmail =& $this->
getData(
'userEmail');
235 if(!isset($userEmail)) {
237 $userEmail = $userDao->getUserEmail($this->
getUserId(),
true);
240 return ($userEmail ? $userEmail :
'');