$class->setLanguage($user->getLanguage());
if ($message != '') $message .= "\n\n";
- $message .= $class->getEmailMessage();
+ $message .= $class->getEmailMessage('daily');
}
// append notification mail footer
/**
* @see wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
*/
- public function getEmailMessage() {
+ public function getEmailMessage($notificationType = 'instant') {
return $this->getMessage();
}
/**
* Returns the message for this notification event.
*
+ * @param string $notificationType
* @return string
*/
- public function getEmailMessage();
+ public function getEmailMessage($notificationType = 'instant');
/**
* Returns the author id for this notification event.
/**
* @see wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
*/
- public function getEmailMessage() {
+ public function getEmailMessage($notificationType = 'instant') {
return $this->getLanguage()->getDynamicVariable('wcf.user.notification.follow.mail', array('author' => $this->author));
}
/**
* @see wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
*/
- public function getEmailMessage() {
+ public function getEmailMessage($notificationType = 'instant') {
$comment = new Comment($this->userNotificationObject->commentID);
$commentAuthor = new User($comment->userID);
$owner = new User($comment->objectID);
/**
* @see wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
*/
- public function getEmailMessage() {
+ public function getEmailMessage($notificationType = 'instant') {
$comment = new Comment($this->userNotificationObject->commentID);
$user = new User($comment->objectID);
/**
* @see wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
*/
- public function getEmailMessage() {
+ public function getEmailMessage($notificationType = 'instant') {
$user = new User($this->userNotificationObject->objectID);
return $this->getLanguage()->getDynamicVariable('wcf.user.notification.comment.mail', array(