@@ -216,8 +216,8 @@ discard block |
||
216 | 216 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
217 | 217 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
218 | 218 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
219 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
220 | - ); |
|
219 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
220 | + ); |
|
221 | 221 | } else { |
222 | 222 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
223 | 223 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | */ |
256 | 256 | private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
257 | 257 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
258 | - 'description_key' => null]; |
|
258 | + 'description_key' => null]; |
|
259 | 259 | if ($cfg['recordings_html_editable']) { |
260 | 260 | $field['type'] = 'checkbox'; |
261 | 261 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
264 | 264 | $field['description_key'], $cfg['recordings_html_default']); |
265 | 265 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
266 | - 'description_key' => null]; |
|
266 | + 'description_key' => null]; |
|
267 | 267 | if ($cfg['recordings_deleted_editable']) { |
268 | 268 | $field['type'] = 'checkbox'; |
269 | 269 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
272 | 272 | $field['description_key'], $cfg['recordings_deleted_default']); |
273 | 273 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
274 | - 'description_key' => null]; |
|
274 | + 'description_key' => null]; |
|
275 | 275 | if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) { |
276 | 276 | $field['type'] = 'checkbox'; |
277 | 277 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
280 | 280 | $field['description_key'], $cfg['recordings_imported_default']); |
281 | 281 | $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, |
282 | - 'description_key' => null]; |
|
282 | + 'description_key' => null]; |
|
283 | 283 | if ($cfg['recordings_preview_editable']) { |
284 | 284 | $field['type'] = 'checkbox'; |
285 | 285 | $field['description_key'] = 'mod_form_field_recordings_preview'; |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | $htmlselectiontype = html_writer::select($participantselection['type_options'], |
351 | 351 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
352 | 352 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
353 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
353 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
354 | 354 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
355 | 355 | $participantselection['selected'], array(), |
356 | 356 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | 'type' => 'button', 'class' => 'btn btn-secondary', |
359 | 359 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
360 | 360 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
361 | - )); |
|
361 | + )); |
|
362 | 362 | $htmladdparticipant = html_writer::tag('div', |
363 | 363 | $htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
364 | 364 | $mform->addElement('html', "\n\n"); |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | $field['description_key'], $cfg['clienttype_default'] ,$clienttype_select_choices); |
402 | 402 | } else { |
403 | 403 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], null,$cfg['clienttype_default']); |
404 | - } |
|
404 | + } |
|
405 | 405 | |
406 | 406 | } |
407 | 407 |
@@ -154,35 +154,35 @@ |
||
154 | 154 | */ |
155 | 155 | public static function get_options() { |
156 | 156 | return array( |
157 | - 'version_major' => self::get_moodle_version_major(), |
|
158 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
159 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
160 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
161 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
162 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
163 | - 'userlimit_default' => self::get('userlimit_default'), |
|
164 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
165 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
166 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
167 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
168 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
169 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
170 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
171 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
172 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
173 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
174 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
175 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
176 | - 'recording_default' => self::get('recording_default'), |
|
177 | - 'recording_editable' => self::get('recording_editable'), |
|
178 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
179 | - 'general_warning_message' => self::get('general_warning_message'), |
|
180 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
181 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
182 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
183 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
184 | - 'clienttype_editable' => self::get('clienttype_editable'), |
|
185 | - 'clienttype_default' => self::get('clienttype_default'), |
|
186 | - ); |
|
157 | + 'version_major' => self::get_moodle_version_major(), |
|
158 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
159 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
160 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
161 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
162 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
163 | + 'userlimit_default' => self::get('userlimit_default'), |
|
164 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
165 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
166 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
167 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
168 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
169 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
170 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
171 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
172 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
173 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
174 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
175 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
176 | + 'recording_default' => self::get('recording_default'), |
|
177 | + 'recording_editable' => self::get('recording_editable'), |
|
178 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
179 | + 'general_warning_message' => self::get('general_warning_message'), |
|
180 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
181 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
182 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
183 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
184 | + 'clienttype_editable' => self::get('clienttype_editable'), |
|
185 | + 'clienttype_default' => self::get('clienttype_default'), |
|
186 | + ); |
|
187 | 187 | } |
188 | 188 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * recordings from a different activity even from a different course. |
99 | 99 | **/ |
100 | 100 | |
101 | - /* |
|
101 | + /* |
|
102 | 102 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
103 | 103 | * activities will have the 'import recordings' capability enabled. |
104 | 104 | * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * 'Join session' button enabled |
120 | 120 | **/ |
121 | 121 | |
122 | - /* |
|
122 | + /* |
|
123 | 123 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
124 | 124 | * activities will have the 'wait for moderator' capability enabled by |
125 | 125 | * default. |
@@ -259,32 +259,32 @@ discard block |
||
259 | 259 | * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1; |
260 | 260 | */ |
261 | 261 | |
262 | - /* |
|
262 | + /* |
|
263 | 263 | * When the value is set to 1 (checked) the bigbluebuttonbn resources |
264 | 264 | * will show the recodings with thumbnails. |
265 | 265 | * $CFG->bigbluebuttonbn['recordings_preview_default'] = 1; |
266 | 266 | */ |
267 | 267 | |
268 | - /* |
|
268 | + /* |
|
269 | 269 | * When the value is set to 1 (checked) the 'preview ui' capability can be |
270 | 270 | * enabled/disabled by the user creating or editing the resource. |
271 | 271 | * $CFG->bigbluebuttonbn['recordings_preview_editable'] = 0; |
272 | 272 | */ |
273 | 273 | |
274 | - /* |
|
274 | + /* |
|
275 | 275 | * The WebClient by default is the Flash one (value = 0) or |
276 | 276 | * the HTML5 one (value = 1) |
277 | 277 | * $CFG->bigbluebuttonbn['clienttype_default'] = 0; |
278 | 278 | */ |
279 | 279 | |
280 | - /* |
|
280 | + /* |
|
281 | 281 | * When the value is set to 1 (checked) the 'clienttype' |
282 | 282 | * capability is enabled, meaning that the administrator can choose the default web client type |
283 | 283 | * and if can be editable in each room through the plugin configuration |
284 | 284 | * $CFG->bigbluebuttonbn['clienttype_enabled'] = 0; |
285 | 285 | */ |
286 | 286 | |
287 | - /* |
|
287 | + /* |
|
288 | 288 | * When the value is set to 1 (checked) the WebClient can be chosen |
289 | 289 | * the user creating or editing the resource. |
290 | 290 | * $CFG->bigbluebuttonbn['clienttype_editable'] = 0; |
@@ -330,27 +330,27 @@ discard block |
||
330 | 330 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
331 | 331 | */ |
332 | 332 | |
333 | - /* |
|
333 | + /* |
|
334 | 334 | * The warning box is always shown to administrators, but it is also possible to define other roles |
335 | 335 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
336 | 336 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
337 | 337 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
338 | 338 | */ |
339 | 339 | |
340 | - /* |
|
340 | + /* |
|
341 | 341 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
342 | 342 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
343 | 343 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
344 | 344 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
345 | 345 | */ |
346 | 346 | |
347 | - /* |
|
347 | + /* |
|
348 | 348 | * Additionally, when general_warning_button_href value is different than "", a button |
349 | 349 | * can also be shown right after the message. |
350 | 350 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
351 | 351 | */ |
352 | 352 | |
353 | - /* |
|
353 | + /* |
|
354 | 354 | * Finally, the text and class for the button can be modified |
355 | 355 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
356 | 356 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -93,13 +93,13 @@ discard block |
||
93 | 93 | */ |
94 | 94 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null, $clienttype=BIGBLUEBUTTON_CLIENTTYPE_FLASH) { |
95 | 95 | $data = ['meetingID' => $meetingid, |
96 | - 'fullName' => $username, |
|
97 | - 'password' => $pw, |
|
98 | - 'logoutURL' => $logouturl, |
|
96 | + 'fullName' => $username, |
|
97 | + 'password' => $pw, |
|
98 | + 'logoutURL' => $logouturl, |
|
99 | 99 | ]; |
100 | 100 | // Choose between Adobe Flash or HTML5 Client |
101 | 101 | if ( $clienttype == BIGBLUEBUTTON_CLIENTTYPE_HTML5 ) { |
102 | - $data['joinViaHtml5'] = 'true'; |
|
102 | + $data['joinViaHtml5'] = 'true'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | if (!is_null($configtoken)) { |
@@ -152,23 +152,23 @@ discard block |
||
152 | 152 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
153 | 153 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
154 | 154 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
155 | - ); |
|
155 | + ); |
|
156 | 156 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
157 | 157 | // Meeting info was returned. |
158 | 158 | return array('returncode' => $xml->returncode, |
159 | - 'meetingID' => $xml->meetingID, |
|
160 | - 'moderatorPW' => $xml->moderatorPW, |
|
161 | - 'attendeePW' => $xml->attendeePW, |
|
162 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
163 | - 'running' => $xml->running, |
|
164 | - 'recording' => $xml->recording, |
|
165 | - 'startTime' => $xml->startTime, |
|
166 | - 'endTime' => $xml->endTime, |
|
167 | - 'participantCount' => $xml->participantCount, |
|
168 | - 'moderatorCount' => $xml->moderatorCount, |
|
169 | - 'attendees' => $xml->attendees, |
|
170 | - 'metadata' => $xml->metadata, |
|
171 | - ); |
|
159 | + 'meetingID' => $xml->meetingID, |
|
160 | + 'moderatorPW' => $xml->moderatorPW, |
|
161 | + 'attendeePW' => $xml->attendeePW, |
|
162 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
163 | + 'running' => $xml->running, |
|
164 | + 'recording' => $xml->recording, |
|
165 | + 'startTime' => $xml->startTime, |
|
166 | + 'endTime' => $xml->endTime, |
|
167 | + 'participantCount' => $xml->participantCount, |
|
168 | + 'moderatorCount' => $xml->moderatorCount, |
|
169 | + 'attendees' => $xml->attendees, |
|
170 | + 'metadata' => $xml->metadata, |
|
171 | + ); |
|
172 | 172 | } |
173 | 173 | if ($xml) { |
174 | 174 | // Either failure or success without meeting info. |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | function bigbluebuttonbn_get_default_config_xml() { |
305 | 305 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
306 | 306 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
307 | - ); |
|
307 | + ); |
|
308 | 308 | return $xml; |
309 | 309 | } |
310 | 310 | |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | foreach ($ids as $id) { |
406 | 406 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
407 | 407 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
408 | - ); |
|
408 | + ); |
|
409 | 409 | if ($xml && $xml->returncode != 'SUCCESS') { |
410 | 410 | return false; |
411 | 411 | } |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | foreach ($ids as $id) { |
425 | 425 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
426 | 426 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
427 | - ); |
|
427 | + ); |
|
428 | 428 | if ($xml && $xml->returncode != 'SUCCESS') { |
429 | 429 | return false; |
430 | 430 | } |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | foreach ($ids as $id) { |
444 | 444 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
445 | 445 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
446 | - ); |
|
446 | + ); |
|
447 | 447 | if ($xml && $xml->returncode != 'SUCCESS') { |
448 | 448 | return false; |
449 | 449 | } |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
461 | 461 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
462 | 462 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
463 | - ); |
|
463 | + ); |
|
464 | 464 | if ($xml) { |
465 | 465 | // If the xml packet returned failure it displays the message to the user. |
466 | 466 | return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | function bigbluebuttonbn_get_server_version() { |
478 | 478 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
479 | 479 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
480 | - ); |
|
480 | + ); |
|
481 | 481 | if ($xml && $xml->returncode == 'SUCCESS') { |
482 | 482 | return $xml->version; |
483 | 483 | } |
@@ -544,10 +544,10 @@ discard block |
||
544 | 544 | } |
545 | 545 | $options = array(); |
546 | 546 | $options['CURLOPT_HTTPHEADER'] = array( |
547 | - 'Content-Type: '.$contenttype, |
|
548 | - 'Content-Length: '.strlen($data), |
|
549 | - 'Content-Language: en-US', |
|
550 | - ); |
|
547 | + 'Content-Type: '.$contenttype, |
|
548 | + 'Content-Length: '.strlen($data), |
|
549 | + 'Content-Language: en-US', |
|
550 | + ); |
|
551 | 551 | |
552 | 552 | return $c->post($url, $data, $options); |
553 | 553 | } |
@@ -694,16 +694,16 @@ discard block |
||
694 | 694 | 'all' => array( |
695 | 695 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
696 | 696 | 'children' => [] |
697 | - ) |
|
698 | - ); |
|
697 | + ) |
|
698 | + ); |
|
699 | 699 | $data['role'] = array( |
700 | 700 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
701 | 701 | 'children' => bigbluebuttonbn_get_roles_select($context) |
702 | - ); |
|
702 | + ); |
|
703 | 703 | $data['user'] = array( |
704 | 704 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
705 | 705 | 'children' => bigbluebuttonbn_get_users_select($context) |
706 | - ); |
|
706 | + ); |
|
707 | 707 | return $data; |
708 | 708 | } |
709 | 709 | |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | 'selectiontype' => 'all', |
747 | 747 | 'selectionid' => 'all', |
748 | 748 | 'role' => BIGBLUEBUTTONBN_ROLE_VIEWER |
749 | - ); |
|
749 | + ); |
|
750 | 750 | $defaultrules = explode(',', \mod_bigbluebuttonbn\locallib\config::get('participant_moderator_default')); |
751 | 751 | foreach ($defaultrules as $defaultrule) { |
752 | 752 | if ($defaultrule == '0') { |
@@ -759,9 +759,9 @@ discard block |
||
759 | 759 | continue; |
760 | 760 | } |
761 | 761 | $participantlist[] = array( |
762 | - 'selectiontype' => 'role', |
|
763 | - 'selectionid' => $defaultrule, |
|
764 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
762 | + 'selectiontype' => 'role', |
|
763 | + 'selectionid' => $defaultrule, |
|
764 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
765 | 765 | } |
766 | 766 | return $participantlist; |
767 | 767 | } |
@@ -800,11 +800,11 @@ discard block |
||
800 | 800 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
801 | 801 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
802 | 802 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
803 | - ], |
|
803 | + ], |
|
804 | 804 | 'type_selected' => 'all', |
805 | 805 | 'options' => ['all' => '---------------'], |
806 | 806 | 'selected' => 'all', |
807 | - ]; |
|
807 | + ]; |
|
808 | 808 | } |
809 | 809 | |
810 | 810 | /** |
@@ -1081,7 +1081,7 @@ discard block |
||
1081 | 1081 | $eventproperties['other'] = $options['other']; |
1082 | 1082 | } |
1083 | 1083 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
1084 | - array($eventproperties)); |
|
1084 | + array($eventproperties)); |
|
1085 | 1085 | $event->trigger(); |
1086 | 1086 | } |
1087 | 1087 | |
@@ -1125,7 +1125,7 @@ discard block |
||
1125 | 1125 | // Ping again and refresh the cache. |
1126 | 1126 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
1127 | 1127 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
1128 | - ); |
|
1128 | + ); |
|
1129 | 1129 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
1130 | 1130 | return $meetinginfo; |
1131 | 1131 | } |
@@ -1537,8 +1537,8 @@ discard block |
||
1537 | 1537 | } |
1538 | 1538 | $id = 'playbacks-'.$recording['recordID']; |
1539 | 1539 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
1540 | - 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
1541 | - 'title' => $title, $visibility => $visibility)); |
|
1540 | + 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
1541 | + 'title' => $title, $visibility => $visibility)); |
|
1542 | 1542 | foreach ($recording['playbacks'] as $playback) { |
1543 | 1543 | $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback); |
1544 | 1544 | } |
@@ -1562,7 +1562,7 @@ discard block |
||
1562 | 1562 | } |
1563 | 1563 | $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn'); |
1564 | 1564 | $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id . |
1565 | - '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1565 | + '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1566 | 1566 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
1567 | 1567 | $href .= '&href='.urlencode(trim($playback['url'])); |
1568 | 1568 | } |
@@ -1573,7 +1573,7 @@ discard block |
||
1573 | 1573 | 'data-action' => 'play', |
1574 | 1574 | 'data-target' => $playback['type'], |
1575 | 1575 | 'data-href' => $href, |
1576 | - ); |
|
1576 | + ); |
|
1577 | 1577 | if (!bigbluebuttonbn_is_bn_server() && !bigbluebuttonbn_is_valid_resource(trim($playback['url']))) { |
1578 | 1578 | $linkattributes['class'] = 'btn btn-sm btn-warning'; |
1579 | 1579 | $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn'); |
@@ -1723,10 +1723,10 @@ discard block |
||
1723 | 1723 | 'id' => $id, |
1724 | 1724 | 'onclick' => $onclick, |
1725 | 1725 | 'data-action' => $data['action'] |
1726 | - ); |
|
1726 | + ); |
|
1727 | 1727 | if (!isset($recording['imported'])) { |
1728 | 1728 | $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances( |
1729 | - $recording['recordID']); |
|
1729 | + $recording['recordID']); |
|
1730 | 1730 | } |
1731 | 1731 | if (isset($data['disabled'])) { |
1732 | 1732 | $iconattributes['class'] .= ' fa-' . $data['disabled']; |
@@ -2267,8 +2267,8 @@ discard block |
||
2267 | 2267 | $activitytime = ''; |
2268 | 2268 | if ($time) { |
2269 | 2269 | $activitytime = calendar_day_representation($time).' '. |
2270 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2271 | - calendar_time_representation($time); |
|
2270 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2271 | + calendar_time_representation($time); |
|
2272 | 2272 | } |
2273 | 2273 | return $activitytime; |
2274 | 2274 | } |
@@ -2364,7 +2364,7 @@ discard block |
||
2364 | 2364 | global $BIGBLUEBUTTONBN_CFG; |
2365 | 2365 | if (isset($BIGBLUEBUTTONBN_CFG)) { |
2366 | 2366 | $renderer->render_warning_message('general_warning', |
2367 | - get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn')); |
|
2367 | + get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn')); |
|
2368 | 2368 | } |
2369 | 2369 | } |
2370 | 2370 | |
@@ -2572,7 +2572,7 @@ discard block |
||
2572 | 2572 | $renderer->render_group_element('participant_moderator_default', |
2573 | 2573 | $renderer->render_group_element_configmultiselect('participant_moderator_default', |
2574 | 2574 | array_keys($owner), array_merge($owner, $roles)) |
2575 | - ); |
|
2575 | + ); |
|
2576 | 2576 | } |
2577 | 2577 | } |
2578 | 2578 | |
@@ -2609,7 +2609,7 @@ discard block |
||
2609 | 2609 | // Web Client default |
2610 | 2610 | $clienttype_default = intval((int)\mod_bigbluebuttonbn\locallib\config::get('clienttype_default')); |
2611 | 2611 | |
2612 | - // Flash or HTML5 meeting |
|
2612 | + // Flash or HTML5 meeting |
|
2613 | 2613 | $clienttype_select_choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
2614 | 2614 | $renderer->render_group_element('clienttype_default', |
2615 | 2615 | $renderer->render_group_element_configselect('clienttype_default', |
@@ -2701,7 +2701,7 @@ discard block |
||
2701 | 2701 | return $output; |
2702 | 2702 | } |
2703 | 2703 | $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
2704 | - 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
2704 | + 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
2705 | 2705 | $output .= ' ' . $message . "\n"; |
2706 | 2706 | $output .= ' <div class="singlebutton pull-right">' . "\n"; |
2707 | 2707 | if (!empty($href)) { |