@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | 55 | $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
56 | - $a = (object) array('userid' => $this->userid, |
|
56 | + $a = (object)array('userid' => $this->userid, |
|
57 | 57 | 'recordingid' => $rid, |
58 | 58 | 'courseid' => $this->contextinstanceid); |
59 | 59 | |
60 | - return "The user with id '$a->userid' has deleted a recording with id ". |
|
60 | + return "The user with id '$a->userid' has deleted a recording with id " . |
|
61 | 61 | "'$a->recordingid' from the course id '$a->courseid'."; |
62 | 62 | } |
63 | 63 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function get_legacy_logdata() { |
70 | 70 | return array($this->courseid, 'bigbluebuttonbn', 'recording deleted', |
71 | - 'view.php?pageid='.$this->objectid, 'Recording deleted', |
|
71 | + 'view.php?pageid=' . $this->objectid, 'Recording deleted', |
|
72 | 72 | $this->contextinstanceid); |
73 | 73 | } |
74 | 74 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @return string |
52 | 52 | */ |
53 | 53 | public function get_description() { |
54 | - return "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for ". |
|
54 | + return "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for " . |
|
55 | 55 | "the course module id '$this->contextinstanceid'."; |
56 | 56 | } |
57 | 57 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function get_legacy_logdata() { |
64 | 64 | return array($this->courseid, 'bigbluebuttonbn', 'activity management viewed', |
65 | - 'view.php?pageid='.$this->objectid, 'BigBlueButtonBN activity management viewed', $this->contextinstanceid, ); |
|
65 | + 'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN activity management viewed', $this->contextinstanceid,); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | * @return string |
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | - $a = (object) array('userid' => $this->userid, |
|
55 | + $a = (object)array('userid' => $this->userid, |
|
56 | 56 | 'bigbluebuttonbnid' => $this->objectid, |
57 | 57 | 'courseid' => $this->contextinstanceid); |
58 | 58 | |
59 | - return "The user with id '$a->userid' created a bigbluebutton meeting for". |
|
59 | + return "The user with id '$a->userid' created a bigbluebutton meeting for" . |
|
60 | 60 | "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'."; |
61 | 61 | } |
62 | 62 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected function get_legacy_logdata() { |
69 | 69 | return array($this->courseid, 'bigbluebuttonbn', 'meeting created', |
70 | - 'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting created', |
|
70 | + 'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting created', |
|
71 | 71 | $this->contextinstanceid); |
72 | 72 | } |
73 | 73 |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | * @return string |
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | - $a = (object) array('userid' => $this->userid, |
|
55 | + $a = (object)array('userid' => $this->userid, |
|
56 | 56 | 'bigbluebuttonbnid' => $this->objectid, |
57 | 57 | 'courseid' => $this->contextinstanceid); |
58 | 58 | |
59 | - return "The user with id '$a->userid' has joined a bigbluebutton meeting for ". |
|
60 | - "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id ". |
|
59 | + return "The user with id '$a->userid' has joined a bigbluebutton meeting for " . |
|
60 | + "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id " . |
|
61 | 61 | "'$a->courseid'."; |
62 | 62 | } |
63 | 63 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function get_legacy_logdata() { |
70 | 70 | return array($this->courseid, 'bigbluebuttonbn', 'meeting joined', |
71 | - 'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting joined', |
|
71 | + 'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting joined', |
|
72 | 72 | $this->contextinstanceid); |
73 | 73 | } |
74 | 74 |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | |
26 | 26 | defined('MOODLE_INTERNAL') || die(); |
27 | 27 | |
28 | -require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); |
|
29 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
28 | +require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); |
|
29 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
30 | 30 | |
31 | 31 | $id = required_param('id', PARAM_INT); |
32 | 32 | $a = optional_param('a', 0, PARAM_INT); |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | |
101 | 101 | echo get_string('index_ending', 'bigbluebuttonbn'); |
102 | 102 | |
103 | - $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id; |
|
103 | + $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id; |
|
104 | 104 | if ($g != '0') { |
105 | - $meetingid .= '['.$g.']'; |
|
105 | + $meetingid .= '[' . $g . ']'; |
|
106 | 106 | } |
107 | 107 | bigbluebuttonbn_wrap_xml_load_file(bigbluebuttonbn_getEndMeetingURL($meetingid)); |
108 | - redirect('index.php?id='.$id); |
|
108 | + redirect('index.php?id=' . $id); |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | // Add a the data for the bigbluebuttonbn instance. |
129 | 129 | $groupobj = null; |
130 | 130 | if (groups_get_activity_groupmode($cm) > 0) { |
131 | - $groupobj = (object) array('id' => 0, 'name' => get_string('allparticipants')); |
|
131 | + $groupobj = (object)array('id' => 0, 'name' => get_string('allparticipants')); |
|
132 | 132 | } |
133 | 133 | $table->data[] = bigbluebuttonbn_index_display_room($canmoderate, $course, $bigbluebuttonbn, $groupobj); |
134 | 134 | |
@@ -149,13 +149,13 @@ discard block |
||
149 | 149 | |
150 | 150 | // Functions. |
151 | 151 | function bigbluebuttonbn_index_display_room($moderator, $course, $bigbluebuttonbn, $groupobj = null) { |
152 | - $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id; |
|
152 | + $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id; |
|
153 | 153 | $paramgroup = ''; |
154 | 154 | $groupname = ''; |
155 | 155 | |
156 | 156 | if ($groupobj) { |
157 | - $meetingid .= '['.$groupobj->id.']'; |
|
158 | - $paramgroup = '&group='.$groupobj->id; |
|
157 | + $meetingid .= '[' . $groupobj->id . ']'; |
|
158 | + $paramgroup = '&group=' . $groupobj->id; |
|
159 | 159 | $groupname = $groupobj->name; |
160 | 160 | } |
161 | 161 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | } |
175 | 175 | |
176 | 176 | // Output Users in the meeting. |
177 | - $joinurl = '<a href="view.php?id='.$bigbluebuttonbn->coursemodule.$paramgroup.'">'.format_string($bigbluebuttonbn->name).'</a>'; |
|
177 | + $joinurl = '<a href="view.php?id=' . $bigbluebuttonbn->coursemodule . $paramgroup . '">' . format_string($bigbluebuttonbn->name) . '</a>'; |
|
178 | 178 | $group = $groupname; |
179 | 179 | $users = ''; |
180 | 180 | $viewerlist = ''; |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $attendeecount = 0; |
212 | 212 | foreach ($meetinginfo['attendees']->attendee as $attendee) { |
213 | 213 | if ($attendee->role == $role) { |
214 | - $attendeelist .= ($attendeecount++ > 0 ? ', ' : '').$attendee->fullName; |
|
214 | + $attendeelist .= ($attendeecount++ > 0 ? ', ' : '') . $attendee->fullName; |
|
215 | 215 | } |
216 | 216 | } |
217 | 217 | } |
@@ -234,15 +234,15 @@ discard block |
||
234 | 234 | $actions = ''; |
235 | 235 | |
236 | 236 | if ($moderator) { |
237 | - $actions .= '<form name="form1" method="post" action="">'.'/n'; |
|
238 | - $actions .= ' <INPUT type="hidden" name="id" value="'.$course->id.'">'.'/n'; |
|
239 | - $actions .= ' <INPUT type="hidden" name="a" value="'.$bigbluebuttonbn->id.'">'.'/n'; |
|
237 | + $actions .= '<form name="form1" method="post" action="">' . '/n'; |
|
238 | + $actions .= ' <INPUT type="hidden" name="id" value="' . $course->id . '">' . '/n'; |
|
239 | + $actions .= ' <INPUT type="hidden" name="a" value="' . $bigbluebuttonbn->id . '">' . '/n'; |
|
240 | 240 | if ($groupobj != null) { |
241 | - $actions .= ' <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'.'/n'; |
|
241 | + $actions .= ' <INPUT type="hidden" name="g" value="' . $groupobj->id . '">' . '/n'; |
|
242 | 242 | } |
243 | - $actions .= ' <INPUT type="submit" name="submit" value="end" onclick="return confirm(\''. |
|
244 | - get_string('index_confirm_end', 'bigbluebuttonbn').'\')">'.'/n'; |
|
245 | - $actions .= '</form>'.'/n'; |
|
243 | + $actions .= ' <INPUT type="submit" name="submit" value="end" onclick="return confirm(\'' . |
|
244 | + get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . '/n'; |
|
245 | + $actions .= '</form>' . '/n'; |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | return $actions; |
@@ -226,12 +226,12 @@ discard block |
||
226 | 226 | // ACTIVITY HAS BEEN CLOSED. |
227 | 227 | $bigbluebuttonbnactivity = 'ended'; |
228 | 228 | $bbbsession['presentation'] = bigbluebuttonbn_get_presentation_array($context, |
229 | - $bigbluebuttonbn->presentation); |
|
229 | + $bigbluebuttonbn->presentation); |
|
230 | 230 | } else { |
231 | 231 | // ACTIVITY OPEN. |
232 | 232 | $bbbsession['presentation'] = bigbluebuttonbn_get_presentation_array($bbbsession['context'], |
233 | - $bigbluebuttonbn->presentation, |
|
234 | - $bigbluebuttonbn->id); |
|
233 | + $bigbluebuttonbn->presentation, |
|
234 | + $bigbluebuttonbn->id); |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | // Initialize session variable used across views. |
@@ -350,9 +350,9 @@ discard block |
||
350 | 350 | |
351 | 351 | // Get recordings. |
352 | 352 | $recordings = bigbluebuttonbn_get_recordings($bbbsession['course']->id, |
353 | - $showroom ? $bbbsession['bigbluebuttonbn']->id : null, |
|
354 | - $showroom, |
|
355 | - $bbbsession['bigbluebuttonbn']->recordings_deleted_activities); |
|
353 | + $showroom ? $bbbsession['bigbluebuttonbn']->id : null, |
|
354 | + $showroom, |
|
355 | + $bbbsession['bigbluebuttonbn']->recordings_deleted_activities); |
|
356 | 356 | |
357 | 357 | if (!isset($recordings) || empty($recordings) || array_key_exists('messageKey', $recordings)) { |
358 | 358 | // There are no recordings to be shown. |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | // JavaScript variables for recordings. |
365 | 365 | $jsvars += array( |
366 | 366 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
367 | - ); |
|
367 | + ); |
|
368 | 368 | |
369 | 369 | // If there are meetings with recordings load the data to the table. |
370 | 370 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | $jsvars += array( |
377 | 377 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
378 | 378 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
379 | - ); |
|
379 | + ); |
|
380 | 380 | |
381 | 381 | // JavaScript dependences for recordings with YUI. |
382 | 382 | $jsdependences += array('datatable', 'datatable-sort', 'datatable-paginator', 'datatype-number'); |
@@ -392,10 +392,10 @@ discard block |
||
392 | 392 | |
393 | 393 | $button = html_writer::tag('input', '', |
394 | 394 | array('type' => 'button', |
395 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
396 | - 'class' => 'btn btn-secondary', |
|
397 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
398 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
395 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
396 | + 'class' => 'btn btn-secondary', |
|
397 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
398 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
399 | 399 | $output .= html_writer::start_tag('br'); |
400 | 400 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
401 | 401 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
445 | 445 | ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''. |
446 | 446 | ''.$OUTPUT->action_link($bbbsession['presentation']['url'], |
447 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
447 | + $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
448 | 448 | } |
449 | 449 | |
450 | 450 | return ''; |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | |
26 | 26 | defined('MOODLE_INTERNAL') || die; |
27 | 27 | |
28 | -require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); |
|
29 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
28 | +require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); |
|
29 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
30 | 30 | |
31 | 31 | $id = required_param('id', PARAM_INT); |
32 | 32 | $b = optional_param('n', 0, PARAM_INT); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $bbbsession['wait'] = $bigbluebuttonbn->wait; |
98 | 98 | $bbbsession['record'] = $bigbluebuttonbn->record; |
99 | 99 | if ($bigbluebuttonbn->record) { |
100 | - $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
100 | + $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
101 | 101 | } |
102 | 102 | $bbbsession['tagging'] = $bigbluebuttonbn->tagging; |
103 | 103 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $bbbsession['originServerName'] = $parsedurl['host']; |
118 | 118 | $bbbsession['originServerUrl'] = $CFG->wwwroot; |
119 | 119 | $bbbsession['originServerCommonName'] = ''; |
120 | -$bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')'; |
|
120 | +$bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')'; |
|
121 | 121 | |
122 | 122 | |
123 | 123 | // Validates if the BigBlueButton server is running. |
@@ -126,13 +126,13 @@ discard block |
||
126 | 126 | // Server is not working. |
127 | 127 | if ($bbbsession['administrator']) { |
128 | 128 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
129 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
129 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
130 | 130 | } else if ($bbbsession['moderator']) { |
131 | 131 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
132 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
132 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
133 | 133 | } else { |
134 | 134 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
135 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
135 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
136 | 136 | } |
137 | 137 | } |
138 | 138 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | // Print the page header. |
144 | 144 | $PAGE->set_context($context); |
145 | -$PAGE->set_url($CFG->wwwroot.'/mod/bigbluebuttonbn/view.php', array('id' => $cm->id)); |
|
145 | +$PAGE->set_url($CFG->wwwroot . '/mod/bigbluebuttonbn/view.php', array('id' => $cm->id)); |
|
146 | 146 | $PAGE->set_title(format_string($bigbluebuttonbn->name)); |
147 | 147 | $PAGE->set_cacheable(false); |
148 | 148 | $PAGE->set_heading($course->fullname); |
@@ -152,11 +152,11 @@ discard block |
||
152 | 152 | if (!has_capability('moodle/category:manage', $context) && !has_capability('mod/bigbluebuttonbn:join', $context)) { |
153 | 153 | echo $OUTPUT->header(); |
154 | 154 | if (isguestuser()) { |
155 | - echo $OUTPUT->confirm('<p>'.get_string('view_noguests', 'bigbluebuttonbn').'</p>'.get_string('liketologin'), |
|
156 | - get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id); |
|
155 | + echo $OUTPUT->confirm('<p>' . get_string('view_noguests', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'), |
|
156 | + get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id); |
|
157 | 157 | } else { |
158 | - echo $OUTPUT->confirm('<p>'.get_string('view_nojoin', 'bigbluebuttonbn').'</p>'.get_string('liketologin'), |
|
159 | - get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id); |
|
158 | + echo $OUTPUT->confirm('<p>' . get_string('view_nojoin', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'), |
|
159 | + get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | echo $OUTPUT->footer(); |
@@ -164,36 +164,36 @@ discard block |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | // Operation URLs. |
167 | -$bbbsession['courseURL'] = $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course; |
|
168 | -$bbbsession['logoutURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id. |
|
169 | - '&bn='.$bbbsession['bigbluebuttonbn']->id; |
|
170 | -$bbbsession['recordingReadyURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=recording_'. |
|
171 | - 'ready&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; |
|
172 | -$bbbsession['meetingEventsURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=meeting'. |
|
173 | - '_events&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; |
|
174 | -$bbbsession['joinURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=join&id='.$id. |
|
175 | - '&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; |
|
167 | +$bbbsession['courseURL'] = $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course; |
|
168 | +$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $id . |
|
169 | + '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
|
170 | +$bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . |
|
171 | + 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
|
172 | +$bbbsession['meetingEventsURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=meeting' . |
|
173 | + '_events&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
|
174 | +$bbbsession['joinURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=join&id=' . $id . |
|
175 | + '&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
|
176 | 176 | |
177 | 177 | // Output starts here. |
178 | 178 | echo $OUTPUT->header(); |
179 | 179 | // Shows version as a comment. |
180 | 180 | echo ' |
181 | -<!-- '.$bbbsession['originTag'].' -->'."\n"; |
|
181 | +<!-- '.$bbbsession['originTag'] . ' -->' . "\n"; |
|
182 | 182 | |
183 | 183 | // Find out current groups mode. |
184 | 184 | $groupmode = groups_get_activity_groupmode($bbbsession['cm']); |
185 | 185 | if ($groupmode == NOGROUPS) { |
186 | 186 | // No groups mode. |
187 | - $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'. |
|
187 | + $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' . |
|
188 | 188 | $bbbsession['bigbluebuttonbn']->id; |
189 | 189 | $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name; |
190 | 190 | } else { // Separate or visible groups mode. |
191 | 191 | echo $OUTPUT->box_start('generalbox boxaligncenter'); |
192 | - echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn'). |
|
192 | + echo '<br><div class="alert alert-warning">' . get_string('view_groups_selection_warning', 'bigbluebuttonbn') . |
|
193 | 193 | '</div>'; |
194 | 194 | echo $OUTPUT->box_end(); |
195 | 195 | |
196 | - groups_print_activity_menu($cm, $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id); |
|
196 | + groups_print_activity_menu($cm, $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id); |
|
197 | 197 | if ($groupmode == SEPARATEGROUPS) { |
198 | 198 | $groups = groups_get_activity_allowed_groups($bbbsession['cm']); |
199 | 199 | $currentgroup = current($groups); |
@@ -203,14 +203,14 @@ discard block |
||
203 | 203 | $bbbsession['group'] = groups_get_activity_group($bbbsession['cm'], true); |
204 | 204 | } |
205 | 205 | |
206 | - $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'. |
|
207 | - $bbbsession['bigbluebuttonbn']->id.'['.$bbbsession['group'].']'; |
|
206 | + $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' . |
|
207 | + $bbbsession['bigbluebuttonbn']->id . '[' . $bbbsession['group'] . ']'; |
|
208 | 208 | if ($bbbsession['group'] > 0) { |
209 | 209 | $groupname = groups_get_group_name($bbbsession['group']); |
210 | 210 | } else { |
211 | 211 | $groupname = get_string('allparticipants'); |
212 | 212 | } |
213 | - $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name.' ('.$groupname.')'; |
|
213 | + $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name . ' (' . $groupname . ')'; |
|
214 | 214 | } |
215 | 215 | // Metadata (context). |
216 | 216 | $bbbsession['contextActivityName'] = $bbbsession['meetingname']; |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | } |
285 | 285 | } |
286 | 286 | |
287 | - $output .= html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br'); |
|
287 | + $output .= html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br'); |
|
288 | 288 | |
289 | 289 | echo $output; |
290 | 290 | |
@@ -308,12 +308,12 @@ discard block |
||
308 | 308 | // JavaScript variables for room. |
309 | 309 | $openingtime = ''; |
310 | 310 | if ($bbbsession['openingtime']) { |
311 | - $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '. |
|
311 | + $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' . |
|
312 | 312 | userdate($bbbsession['openingtime']); |
313 | 313 | } |
314 | 314 | $closingtime = ''; |
315 | 315 | if ($bbbsession['closingtime']) { |
316 | - $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '. |
|
316 | + $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' . |
|
317 | 317 | userdate($bbbsession['closingtime']); |
318 | 318 | } |
319 | 319 | $jsvars += array( |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | $output .= $OUTPUT->box_end(); |
331 | 331 | |
332 | 332 | $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box'); |
333 | - $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>'."\n"; |
|
333 | + $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>' . "\n"; |
|
334 | 334 | $output .= $OUTPUT->box_end(); |
335 | 335 | |
336 | 336 | if ($activity == 'ended') { |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | // If there are meetings with recordings load the data to the table. |
370 | 370 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
371 | 371 | // Render a plain html table. |
372 | - return bigbluebutton_output_recording_table($bbbsession, $recordings)."\n"; |
|
372 | + return bigbluebutton_output_recording_table($bbbsession, $recordings) . "\n"; |
|
373 | 373 | } |
374 | 374 | |
375 | 375 | // JavaScript variables for recordings with YUI. |
@@ -394,8 +394,8 @@ discard block |
||
394 | 394 | array('type' => 'button', |
395 | 395 | 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
396 | 396 | 'class' => 'btn btn-secondary', |
397 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
398 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
397 | + 'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' . |
|
398 | + $bbbsession['bigbluebuttonbn']->id . '\'')); |
|
399 | 399 | $output .= html_writer::start_tag('br'); |
400 | 400 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
401 | 401 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -405,29 +405,29 @@ discard block |
||
405 | 405 | |
406 | 406 | function bigbluebuttonbn_view_joining($bbbsession) { |
407 | 407 | if ($bbbsession['tagging'] && ($bbbsession['administrator'] || $bbbsession['moderator'])) { |
408 | - return ''. |
|
409 | - '<div id="panelContent" class="hidden">'."\n". |
|
410 | - ' <div class="yui3-widget-bd">'."\n". |
|
411 | - ' <form>'."\n". |
|
412 | - ' <fieldset>'."\n". |
|
413 | - ' <input type="hidden" name="join" id="meeting_join_url" value="">'."\n". |
|
414 | - ' <input type="hidden" name="message" id="meeting_message" value="">'."\n". |
|
415 | - ' <div>'."\n". |
|
416 | - ' <label for="name">'.get_string('view_recording_name', 'bigbluebuttonbn').'</label><br/>'."\n". |
|
417 | - ' <input type="text" name="name" id="recording_name" placeholder="">'."\n". |
|
418 | - ' </div><br>'."\n". |
|
419 | - ' <div>'."\n". |
|
420 | - ' <label for="description">'.get_string('view_recording_description', 'bigbluebuttonbn'). |
|
421 | - '</label><br/>'."\n". |
|
422 | - ' <input type="text" name="description" id="recording_description" value="" placeholder="">'."\n". |
|
423 | - ' </div><br>'."\n". |
|
424 | - ' <div>'."\n". |
|
425 | - ' <label for="tags">'.get_string('view_recording_tags', 'bigbluebuttonbn').'</label><br/>'."\n". |
|
426 | - ' <input type="text" name="tags" id="recording_tags" value="" placeholder="">'."\n". |
|
427 | - ' </div>'."\n". |
|
428 | - ' </fieldset>'."\n". |
|
429 | - ' </form>'."\n". |
|
430 | - ' </div>'."\n". |
|
408 | + return '' . |
|
409 | + '<div id="panelContent" class="hidden">' . "\n" . |
|
410 | + ' <div class="yui3-widget-bd">' . "\n" . |
|
411 | + ' <form>' . "\n" . |
|
412 | + ' <fieldset>' . "\n" . |
|
413 | + ' <input type="hidden" name="join" id="meeting_join_url" value="">' . "\n" . |
|
414 | + ' <input type="hidden" name="message" id="meeting_message" value="">' . "\n" . |
|
415 | + ' <div>' . "\n" . |
|
416 | + ' <label for="name">' . get_string('view_recording_name', 'bigbluebuttonbn') . '</label><br/>' . "\n" . |
|
417 | + ' <input type="text" name="name" id="recording_name" placeholder="">' . "\n" . |
|
418 | + ' </div><br>' . "\n" . |
|
419 | + ' <div>' . "\n" . |
|
420 | + ' <label for="description">' . get_string('view_recording_description', 'bigbluebuttonbn') . |
|
421 | + '</label><br/>' . "\n" . |
|
422 | + ' <input type="text" name="description" id="recording_description" value="" placeholder="">' . "\n" . |
|
423 | + ' </div><br>' . "\n" . |
|
424 | + ' <div>' . "\n" . |
|
425 | + ' <label for="tags">' . get_string('view_recording_tags', 'bigbluebuttonbn') . '</label><br/>' . "\n" . |
|
426 | + ' <input type="text" name="tags" id="recording_tags" value="" placeholder="">' . "\n" . |
|
427 | + ' </div>' . "\n" . |
|
428 | + ' </fieldset>' . "\n" . |
|
429 | + ' </form>' . "\n" . |
|
430 | + ' </div>' . "\n" . |
|
431 | 431 | '</div>'; |
432 | 432 | } |
433 | 433 | |
@@ -441,10 +441,10 @@ discard block |
||
441 | 441 | $attributes = array('title' => $bbbsession['presentation']['name']); |
442 | 442 | $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']); |
443 | 443 | |
444 | - return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
|
445 | - ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''. |
|
446 | - ''.$OUTPUT->action_link($bbbsession['presentation']['url'], |
|
447 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
444 | + return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' . |
|
445 | + '' . $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) . '' . |
|
446 | + '' . $OUTPUT->action_link($bbbsession['presentation']['url'], |
|
447 | + $bbbsession['presentation']['name'], null, $attributes) . '<br><br>'; |
|
448 | 448 | } |
449 | 449 | |
450 | 450 | return ''; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | defined('MOODLE_INTERNAL') || die; |
25 | 25 | |
26 | -require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php'); |
|
26 | +require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php'); |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * bigbluebuttonbn backup task that provides all the settings and steps to perform one |
@@ -53,14 +53,14 @@ discard block |
||
53 | 53 | public static function encode_content_links($content) { |
54 | 54 | global $CFG; |
55 | 55 | |
56 | - $base = preg_quote($CFG->wwwroot.'/mod/bigbluebuttonbn', '#'); |
|
56 | + $base = preg_quote($CFG->wwwroot . '/mod/bigbluebuttonbn', '#'); |
|
57 | 57 | |
58 | 58 | // Link to the list of bigbluebuttonbns. |
59 | - $pattern = '#('.$base."\/index.php\?id\=)([0-9]+)#"; |
|
59 | + $pattern = '#(' . $base . "\/index.php\?id\=)([0-9]+)#"; |
|
60 | 60 | $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNINDEX*$2@$', $content); |
61 | 61 | |
62 | 62 | // Link to bigbluebuttonbn view by moduleid. |
63 | - $pattern = '#('.$base."\/view.php\?id\=)([0-9]+)#"; |
|
63 | + $pattern = '#(' . $base . "\/view.php\?id\=)([0-9]+)#"; |
|
64 | 64 | $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNVIEWBYID*$2@$', $content); |
65 | 65 | |
66 | 66 | return $content; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | protected function process_bigbluebuttonbn($data) { |
46 | 46 | global $DB; |
47 | 47 | |
48 | - $data = (object) $data; |
|
48 | + $data = (object)$data; |
|
49 | 49 | $data->course = $this->get_courseid(); |
50 | 50 | |
51 | 51 | $data->timemodified = $this->apply_date_offset($data->timemodified); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | protected function process_bigbluebuttonbn_logs($data) { |
60 | 60 | global $DB; |
61 | 61 | |
62 | - $data = (object) $data; |
|
62 | + $data = (object)$data; |
|
63 | 63 | // Apply modifications. |
64 | 64 | $data->courseid = $this->get_mappingid('course', $data->courseid); |
65 | 65 | $data->bigbluebuttonbnid = $this->get_new_parentid('bigbluebuttonbn'); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | defined('MOODLE_INTERNAL') || die(); |
25 | 25 | |
26 | -require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php'); |
|
26 | +require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php'); |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * bigbluebuttonbn restore task that provides all the settings and steps to perform one |