|
@@ -47,29 +47,29 @@ discard block |
|
|
block discarded – undo |
|
47
|
47
|
* @return string |
|
48
|
48
|
*/ |
|
49
|
49
|
public static function htmlmsg_instance_updated($msg) { |
|
50
|
|
- $messagetext = '<p>'.get_string('pluginname', 'bigbluebuttonbn'). |
|
51
|
|
- ' <b>'.$msg->activity_url.'</b> '. |
|
52
|
|
- get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n"; |
|
53
|
|
- $messagetext .= '<p>'.get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n"; |
|
54
|
|
- $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n"; |
|
55
|
|
- $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
56
|
|
- get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
57
|
|
- $messagetext .= $msg->activity_title.'</td></tr>'."\n"; |
|
58
|
|
- $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
59
|
|
- get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
60
|
|
- $messagetext .= $msg->activity_description.'</td></tr>'."\n"; |
|
61
|
|
- $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
62
|
|
- get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
63
|
|
- $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n"; |
|
64
|
|
- $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
65
|
|
- get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
66
|
|
- $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n"; |
|
67
|
|
- $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '. |
|
68
|
|
- get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
69
|
|
- $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n"; |
|
70
|
|
- $messagetext .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '. |
|
71
|
|
- $msg->user_name.' '; |
|
72
|
|
- $messagetext .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>'; |
|
|
50
|
+ $messagetext = '<p>' . get_string('pluginname', 'bigbluebuttonbn') . |
|
|
51
|
+ ' <b>' . $msg->activity_url . '</b> ' . |
|
|
52
|
+ get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n"; |
|
|
53
|
+ $messagetext .= '<p>' . get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n"; |
|
|
54
|
+ $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n"; |
|
|
55
|
+ $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
|
56
|
+ get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
|
57
|
+ $messagetext .= $msg->activity_title . '</td></tr>' . "\n"; |
|
|
58
|
+ $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
|
59
|
+ get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
|
60
|
+ $messagetext .= $msg->activity_description . '</td></tr>' . "\n"; |
|
|
61
|
+ $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
|
62
|
+ get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
|
63
|
+ $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n"; |
|
|
64
|
+ $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
|
65
|
+ get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
|
66
|
+ $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n"; |
|
|
67
|
+ $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' . |
|
|
68
|
+ get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
|
69
|
+ $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n"; |
|
|
70
|
+ $messagetext .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' . |
|
|
71
|
+ $msg->user_name . ' '; |
|
|
72
|
+ $messagetext .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>'; |
|
73
|
73
|
return $messagetext; |
|
74
|
74
|
} |
|
75
|
75
|
|
|
@@ -86,7 +86,7 @@ discard block |
|
|
block discarded – undo |
|
86
|
86
|
$course = $coursemodinfo->get_course($bigbluebuttonbn->course); |
|
87
|
87
|
$sender = $USER; |
|
88
|
88
|
// Prepare message. |
|
89
|
|
- $msg = (object) array(); |
|
|
89
|
+ $msg = (object)array(); |
|
90
|
90
|
// Build the message_body. |
|
91
|
91
|
$msg->action = $action; |
|
92
|
92
|
$msg->activity_url = html_writer::link( |
|
@@ -120,9 +120,9 @@ discard block |
|
|
block discarded – undo |
|
120
|
120
|
* @return void |
|
121
|
121
|
*/ |
|
122
|
122
|
public static function htmlmsg_recording_ready($bigbluebuttonbn) { |
|
123
|
|
- return '<p>'.get_string('email_body_recording_ready_for', 'bigbluebuttonbn'). |
|
124
|
|
- ' "' . $bigbluebuttonbn->name . '" '. |
|
125
|
|
- get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn').'.</p>'; |
|
|
123
|
+ return '<p>' . get_string('email_body_recording_ready_for', 'bigbluebuttonbn') . |
|
|
124
|
+ ' "' . $bigbluebuttonbn->name . '" ' . |
|
|
125
|
+ get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn') . '.</p>'; |
|
126
|
126
|
} |
|
127
|
127
|
|
|
128
|
128
|
/** |
|
@@ -164,7 +164,7 @@ discard block |
|
|
block discarded – undo |
|
164
|
164
|
// Enqueue it. |
|
165
|
165
|
\core\task\manager::queue_adhoc_task($task); |
|
166
|
166
|
} catch (Exception $e) { |
|
167
|
|
- mtrace("Error while enqueuing completion_uopdate_state task. " . (string) $e); |
|
|
167
|
+ mtrace("Error while enqueuing completion_uopdate_state task. " . (string)$e); |
|
168
|
168
|
} |
|
169
|
169
|
} |
|
170
|
170
|
} |