@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * Remove this block when restored |
| 65 | 65 | */ |
| 66 | 66 | |
| 67 | - /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 67 | + /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 68 | 68 | const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/'; |
| 69 | 69 | /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */ |
| 70 | 70 | const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6'; |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} "; |
| 368 | 368 | $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)"; |
| 369 | 369 | $result = $DB->count_records_sql($sql, array($course->id, $bigbluebuttonbn->id, $user->id, |
| 370 | - BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 370 | + BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 371 | 371 | return $result; |
| 372 | 372 | } |
| 373 | 373 | |
@@ -596,12 +596,12 @@ discard block |
||
| 596 | 596 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
| 597 | 597 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
| 598 | 598 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
| 599 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 599 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 600 | 600 | $str .= ' </div>'."\n"; |
| 601 | 601 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
| 602 | 602 | '</div>'."\n"; |
| 603 | 603 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
| 604 | - .'</div>'."\n"; |
|
| 604 | + .'</div>'."\n"; |
|
| 605 | 605 | $str .= '</div>'."\n"; |
| 606 | 606 | return $str; |
| 607 | 607 | } |
@@ -842,7 +842,7 @@ discard block |
||
| 842 | 842 | $bigbluebuttonbn->coursemodule, |
| 843 | 843 | 'bigbluebuttonbn', |
| 844 | 844 | $bigbluebuttonbn->id, $bigbluebuttonbn->completionexpected |
| 845 | - ); |
|
| 845 | + ); |
|
| 846 | 846 | } |
| 847 | 847 | } |
| 848 | 848 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * recordings from a different activity even from a different course. |
| 104 | 104 | **/ |
| 105 | 105 | |
| 106 | - /* |
|
| 106 | + /* |
|
| 107 | 107 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 108 | 108 | * activities will have the 'import recordings' capability enabled. |
| 109 | 109 | * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * 'Join session' button enabled |
| 125 | 125 | **/ |
| 126 | 126 | |
| 127 | - /* |
|
| 127 | + /* |
|
| 128 | 128 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 129 | 129 | * activities will have the 'wait for moderator' capability enabled by |
| 130 | 130 | * default. |
@@ -361,27 +361,27 @@ discard block |
||
| 361 | 361 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
| 362 | 362 | */ |
| 363 | 363 | |
| 364 | - /* |
|
| 364 | + /* |
|
| 365 | 365 | * The warning box is always shown to administrators, but it is also possible to define other roles |
| 366 | 366 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
| 367 | 367 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
| 368 | 368 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
| 369 | 369 | */ |
| 370 | 370 | |
| 371 | - /* |
|
| 371 | + /* |
|
| 372 | 372 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
| 373 | 373 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
| 374 | 374 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
| 375 | 375 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
| 376 | 376 | */ |
| 377 | 377 | |
| 378 | - /* |
|
| 378 | + /* |
|
| 379 | 379 | * Additionally, when general_warning_button_href value is different than "", a button |
| 380 | 380 | * can also be shown right after the message. |
| 381 | 381 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
| 382 | 382 | */ |
| 383 | 383 | |
| 384 | - /* |
|
| 384 | + /* |
|
| 385 | 385 | * Finally, the text and class for the button can be modified |
| 386 | 386 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
| 387 | 387 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -309,8 +309,8 @@ discard block |
||
| 309 | 309 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 310 | 310 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
| 311 | 311 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
| 312 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 313 | - ); |
|
| 312 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 313 | + ); |
|
| 314 | 314 | } else { |
| 315 | 315 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 316 | 316 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
| 381 | 381 | $recordingsettings = false; |
| 382 | 382 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
| 383 | - 'description_key' => null]; |
|
| 383 | + 'description_key' => null]; |
|
| 384 | 384 | if ($cfg['recordings_html_editable']) { |
| 385 | 385 | $field['type'] = 'checkbox'; |
| 386 | 386 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 390 | 390 | $field['description_key'], $cfg['recordings_html_default']); |
| 391 | 391 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
| 392 | - 'description_key' => null]; |
|
| 392 | + 'description_key' => null]; |
|
| 393 | 393 | if ($cfg['recordings_deleted_editable']) { |
| 394 | 394 | $field['type'] = 'checkbox'; |
| 395 | 395 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 399 | 399 | $field['description_key'], $cfg['recordings_deleted_default']); |
| 400 | 400 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
| 401 | - 'description_key' => null]; |
|
| 401 | + 'description_key' => null]; |
|
| 402 | 402 | if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) { |
| 403 | 403 | $field['type'] = 'checkbox'; |
| 404 | 404 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 408 | 408 | $field['description_key'], $cfg['recordings_imported_default']); |
| 409 | 409 | $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, |
| 410 | - 'description_key' => null]; |
|
| 410 | + 'description_key' => null]; |
|
| 411 | 411 | if ($cfg['recordings_preview_editable']) { |
| 412 | 412 | $field['type'] = 'checkbox'; |
| 413 | 413 | $field['description_key'] = 'mod_form_field_recordings_preview'; |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | $htmlselectiontype = html_writer::select($participantselection['type_options'], |
| 485 | 485 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
| 486 | 486 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 487 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 487 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 488 | 488 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 489 | 489 | $participantselection['selected'], array(), |
| 490 | 490 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | 'type' => 'button', 'class' => 'btn btn-secondary', |
| 493 | 493 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
| 494 | 494 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
| 495 | - )); |
|
| 495 | + )); |
|
| 496 | 496 | $htmladdparticipant = html_writer::tag('div', |
| 497 | 497 | $htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
| 498 | 498 | $mform->addElement('html', "\n\n"); |
@@ -534,9 +534,9 @@ discard block |
||
| 534 | 534 | $field['type'] = 'select'; |
| 535 | 535 | $field['data_type'] = PARAM_TEXT; |
| 536 | 536 | $field['description_key'] = 'mod_form_field_block_clienttype'; |
| 537 | - $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
|
| 538 | - BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 539 | - $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
|
| 537 | + $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
|
| 538 | + BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 539 | + $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
|
| 540 | 540 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 541 | 541 | $field['description_key'], $cfg['clienttype_default'], $choices); |
| 542 | 542 | return; |
@@ -59,11 +59,11 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public static function _get_metadata(collection $collection) { |
| 61 | 61 | |
| 62 | - // The table bigbluebuttonbn stores only the room properties. |
|
| 63 | - // However, there is a chance that some personal information is stored as metadata. |
|
| 64 | - // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 65 | - // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 66 | - // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 62 | + // The table bigbluebuttonbn stores only the room properties. |
|
| 63 | + // However, there is a chance that some personal information is stored as metadata. |
|
| 64 | + // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 65 | + // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 66 | + // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 67 | 67 | $collection->add_database_table('bigbluebuttonbn', [ |
| 68 | 68 | 'participants' => 'privacy:metadata:bigbluebuttonbn:participants', |
| 69 | 69 | ], 'privacy:metadata:bigbluebuttonbn'); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | 'meetingid' => $record->meetingid, |
| 208 | 208 | 'log' => $record->log, |
| 209 | 209 | 'meta' => $record->meta, |
| 210 | - ]; |
|
| 210 | + ]; |
|
| 211 | 211 | return $carry; |
| 212 | 212 | }, |
| 213 | 213 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | 'objectid' => $this->objectid, |
| 84 | 84 | 'contextinstanceid' => $this->contextinstanceid, |
| 85 | 85 | 'other' => $this->other |
| 86 | - ); |
|
| 86 | + ); |
|
| 87 | 87 | $string = $this->description; |
| 88 | 88 | foreach ($vars as $key => $value) { |
| 89 | 89 | $string = str_replace("##" . $key, $value, $string); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | !isset($CFG->bigbluebuttonbn['recordings_imported_editable']) || |
| 92 | 92 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
| 93 | 93 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) |
| 94 | - ); |
|
| 94 | + ); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -309,10 +309,10 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession) { |
| 311 | 311 | $data = ['meetingID' => $bbbsession['meetingid'], |
| 312 | - 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 313 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
| 314 | - 'moderatorPW' => $bbbsession['modPW'], |
|
| 315 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
| 312 | + 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 313 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
| 314 | + 'moderatorPW' => $bbbsession['modPW'], |
|
| 315 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
| 316 | 316 | ]; |
| 317 | 317 | $data['record'] = bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']); |
| 318 | 318 | // Check if auto_start_record is enable. |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | '%duration%', |
| 335 | 335 | (string) $durationtime, |
| 336 | 336 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
| 337 | - ); |
|
| 337 | + ); |
|
| 338 | 338 | } |
| 339 | 339 | $voicebridge = intval($bbbsession['voicebridge']); |
| 340 | 340 | if ($voicebridge > 0 && $voicebridge < 79999) { |
@@ -385,22 +385,22 @@ discard block |
||
| 385 | 385 | function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) { |
| 386 | 386 | global $USER; |
| 387 | 387 | $metadata = ['bbb-origin' => $bbbsession['origin'], |
| 388 | - 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 389 | - 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 390 | - 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 391 | - 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 392 | - 'bbb-context' => $bbbsession['course']->fullname, |
|
| 393 | - 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 394 | - 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 395 | - 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 388 | + 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 389 | + 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 390 | + 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 391 | + 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 392 | + 'bbb-context' => $bbbsession['course']->fullname, |
|
| 393 | + 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 394 | + 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 395 | + 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 396 | 396 | ]; |
| 397 | 397 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
| 398 | 398 | $metadata["bn-recording-status"] = json_encode( |
| 399 | 399 | array( |
| 400 | 400 | 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'), |
| 401 | 401 | 'context' => $bbbsession['bigbluebuttonbnURL'] |
| 402 | - ) |
|
| 403 | - ); |
|
| 402 | + ) |
|
| 403 | + ); |
|
| 404 | 404 | } |
| 405 | 405 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
| 406 | 406 | $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL']; |
@@ -171,42 +171,42 @@ |
||
| 171 | 171 | */ |
| 172 | 172 | public static function get_options() { |
| 173 | 173 | return array( |
| 174 | - 'version_major' => self::get_moodle_version_major(), |
|
| 175 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 176 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 177 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 178 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 179 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 180 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 181 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 182 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 183 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 184 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 185 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 186 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 187 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 188 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 189 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 190 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 191 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 192 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 193 | - 'recording_default' => self::get('recording_default'), |
|
| 194 | - 'recording_editable' => self::get('recording_editable'), |
|
| 195 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 196 | - 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 197 | - 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 198 | - 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 199 | - 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 200 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 201 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 202 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 203 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 204 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 205 | - 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 206 | - 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 207 | - 'clienttype_default' => self::get('clienttype_default'), |
|
| 208 | - 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 209 | - 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 210 | - ); |
|
| 174 | + 'version_major' => self::get_moodle_version_major(), |
|
| 175 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 176 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 177 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 178 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 179 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 180 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 181 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 182 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 183 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 184 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 185 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 186 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 187 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 188 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 189 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 190 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 191 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 192 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 193 | + 'recording_default' => self::get('recording_default'), |
|
| 194 | + 'recording_editable' => self::get('recording_editable'), |
|
| 195 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 196 | + 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 197 | + 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 198 | + 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 199 | + 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 200 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 201 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 202 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 203 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 204 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 205 | + 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 206 | + 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 207 | + 'clienttype_default' => self::get('clienttype_default'), |
|
| 208 | + 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 209 | + 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 210 | + ); |
|
| 211 | 211 | } |
| 212 | 212 | } |
@@ -103,9 +103,9 @@ discard block |
||
| 103 | 103 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, |
| 104 | 104 | $userid = null, $clienttype = BIGBLUEBUTTON_CLIENTTYPE_FLASH) { |
| 105 | 105 | $data = ['meetingID' => $meetingid, |
| 106 | - 'fullName' => $username, |
|
| 107 | - 'password' => $pw, |
|
| 108 | - 'logoutURL' => $logouturl, |
|
| 106 | + 'fullName' => $username, |
|
| 107 | + 'password' => $pw, |
|
| 108 | + 'logoutURL' => $logouturl, |
|
| 109 | 109 | ]; |
| 110 | 110 | // Choose between Adobe Flash or HTML5 Client. |
| 111 | 111 | if ( $clienttype == BIGBLUEBUTTON_CLIENTTYPE_HTML5 ) { |
@@ -161,23 +161,23 @@ discard block |
||
| 161 | 161 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
| 162 | 162 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 163 | 163 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 164 | - ); |
|
| 164 | + ); |
|
| 165 | 165 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
| 166 | 166 | // Meeting info was returned. |
| 167 | 167 | return array('returncode' => $xml->returncode, |
| 168 | - 'meetingID' => $xml->meetingID, |
|
| 169 | - 'moderatorPW' => $xml->moderatorPW, |
|
| 170 | - 'attendeePW' => $xml->attendeePW, |
|
| 171 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 172 | - 'running' => $xml->running, |
|
| 173 | - 'recording' => $xml->recording, |
|
| 174 | - 'startTime' => $xml->startTime, |
|
| 175 | - 'endTime' => $xml->endTime, |
|
| 176 | - 'participantCount' => $xml->participantCount, |
|
| 177 | - 'moderatorCount' => $xml->moderatorCount, |
|
| 178 | - 'attendees' => $xml->attendees, |
|
| 179 | - 'metadata' => $xml->metadata, |
|
| 180 | - ); |
|
| 168 | + 'meetingID' => $xml->meetingID, |
|
| 169 | + 'moderatorPW' => $xml->moderatorPW, |
|
| 170 | + 'attendeePW' => $xml->attendeePW, |
|
| 171 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 172 | + 'running' => $xml->running, |
|
| 173 | + 'recording' => $xml->recording, |
|
| 174 | + 'startTime' => $xml->startTime, |
|
| 175 | + 'endTime' => $xml->endTime, |
|
| 176 | + 'participantCount' => $xml->participantCount, |
|
| 177 | + 'moderatorCount' => $xml->moderatorCount, |
|
| 178 | + 'attendees' => $xml->attendees, |
|
| 179 | + 'metadata' => $xml->metadata, |
|
| 180 | + ); |
|
| 181 | 181 | } |
| 182 | 182 | if ($xml) { |
| 183 | 183 | // Either failure or success without meeting info. |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | function bigbluebuttonbn_get_default_config_xml() { |
| 330 | 330 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 331 | 331 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
| 332 | - ); |
|
| 332 | + ); |
|
| 333 | 333 | return $xml; |
| 334 | 334 | } |
| 335 | 335 | |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | foreach ($ids as $id) { |
| 434 | 434 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 435 | 435 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
| 436 | - ); |
|
| 436 | + ); |
|
| 437 | 437 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 438 | 438 | return false; |
| 439 | 439 | } |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | foreach ($ids as $id) { |
| 453 | 453 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 454 | 454 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
| 455 | - ); |
|
| 455 | + ); |
|
| 456 | 456 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 457 | 457 | return false; |
| 458 | 458 | } |
@@ -471,7 +471,7 @@ discard block |
||
| 471 | 471 | foreach ($ids as $id) { |
| 472 | 472 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 473 | 473 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
| 474 | - ); |
|
| 474 | + ); |
|
| 475 | 475 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 476 | 476 | return false; |
| 477 | 477 | } |
@@ -488,7 +488,7 @@ discard block |
||
| 488 | 488 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
| 489 | 489 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 490 | 490 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
| 491 | - ); |
|
| 491 | + ); |
|
| 492 | 492 | if ($xml) { |
| 493 | 493 | // If the xml packet returned failure it displays the message to the user. |
| 494 | 494 | return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | function bigbluebuttonbn_get_server_version() { |
| 506 | 506 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 507 | 507 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
| 508 | - ); |
|
| 508 | + ); |
|
| 509 | 509 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 510 | 510 | return $xml->version; |
| 511 | 511 | } |
@@ -572,10 +572,10 @@ discard block |
||
| 572 | 572 | } |
| 573 | 573 | $options = array(); |
| 574 | 574 | $options['CURLOPT_HTTPHEADER'] = array( |
| 575 | - 'Content-Type: '.$contenttype, |
|
| 576 | - 'Content-Length: '.strlen($data), |
|
| 577 | - 'Content-Language: en-US', |
|
| 578 | - ); |
|
| 575 | + 'Content-Type: '.$contenttype, |
|
| 576 | + 'Content-Length: '.strlen($data), |
|
| 577 | + 'Content-Language: en-US', |
|
| 578 | + ); |
|
| 579 | 579 | |
| 580 | 580 | return $c->post($url, $data, $options); |
| 581 | 581 | } |
@@ -722,16 +722,16 @@ discard block |
||
| 722 | 722 | 'all' => array( |
| 723 | 723 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 724 | 724 | 'children' => [] |
| 725 | - ) |
|
| 726 | - ); |
|
| 725 | + ) |
|
| 726 | + ); |
|
| 727 | 727 | $data['role'] = array( |
| 728 | 728 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 729 | 729 | 'children' => bigbluebuttonbn_get_roles_select($context) |
| 730 | - ); |
|
| 730 | + ); |
|
| 731 | 731 | $data['user'] = array( |
| 732 | 732 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 733 | 733 | 'children' => bigbluebuttonbn_get_users_select($context) |
| 734 | - ); |
|
| 734 | + ); |
|
| 735 | 735 | return $data; |
| 736 | 736 | } |
| 737 | 737 | |
@@ -774,7 +774,7 @@ discard block |
||
| 774 | 774 | 'selectiontype' => 'all', |
| 775 | 775 | 'selectionid' => 'all', |
| 776 | 776 | 'role' => BIGBLUEBUTTONBN_ROLE_VIEWER |
| 777 | - ); |
|
| 777 | + ); |
|
| 778 | 778 | $defaultrules = explode(',', \mod_bigbluebuttonbn\locallib\config::get('participant_moderator_default')); |
| 779 | 779 | foreach ($defaultrules as $defaultrule) { |
| 780 | 780 | if ($defaultrule == '0') { |
@@ -787,9 +787,9 @@ discard block |
||
| 787 | 787 | continue; |
| 788 | 788 | } |
| 789 | 789 | $participantlist[] = array( |
| 790 | - 'selectiontype' => 'role', |
|
| 791 | - 'selectionid' => $defaultrule, |
|
| 792 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 790 | + 'selectiontype' => 'role', |
|
| 791 | + 'selectionid' => $defaultrule, |
|
| 792 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 793 | 793 | } |
| 794 | 794 | return $participantlist; |
| 795 | 795 | } |
@@ -828,11 +828,11 @@ discard block |
||
| 828 | 828 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 829 | 829 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 830 | 830 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 831 | - ], |
|
| 831 | + ], |
|
| 832 | 832 | 'type_selected' => 'all', |
| 833 | 833 | 'options' => ['all' => '---------------'], |
| 834 | 834 | 'selected' => 'all', |
| 835 | - ]; |
|
| 835 | + ]; |
|
| 836 | 836 | } |
| 837 | 837 | |
| 838 | 838 | /** |
@@ -1151,7 +1151,7 @@ discard block |
||
| 1151 | 1151 | // Ping again and refresh the cache. |
| 1152 | 1152 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
| 1153 | 1153 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 1154 | - ); |
|
| 1154 | + ); |
|
| 1155 | 1155 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
| 1156 | 1156 | return $meetinginfo; |
| 1157 | 1157 | } |
@@ -1565,8 +1565,8 @@ discard block |
||
| 1565 | 1565 | } |
| 1566 | 1566 | $id = 'playbacks-'.$recording['recordID']; |
| 1567 | 1567 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1568 | - 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1569 | - 'title' => $title, $visibility => $visibility)); |
|
| 1568 | + 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1569 | + 'title' => $title, $visibility => $visibility)); |
|
| 1570 | 1570 | foreach ($recording['playbacks'] as $playback) { |
| 1571 | 1571 | $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback); |
| 1572 | 1572 | } |
@@ -1601,7 +1601,7 @@ discard block |
||
| 1601 | 1601 | 'data-action' => 'play', |
| 1602 | 1602 | 'data-target' => $playback['type'], |
| 1603 | 1603 | 'data-href' => $href, |
| 1604 | - ); |
|
| 1604 | + ); |
|
| 1605 | 1605 | if (!bigbluebuttonbn_is_bn_server() && !bigbluebuttonbn_is_valid_resource(trim($playback['url']))) { |
| 1606 | 1606 | $linkattributes['class'] = 'btn btn-sm btn-warning'; |
| 1607 | 1607 | $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn'); |
@@ -1783,10 +1783,10 @@ discard block |
||
| 1783 | 1783 | 'id' => $id, |
| 1784 | 1784 | 'onclick' => $onclick, |
| 1785 | 1785 | 'data-action' => $data['action'] |
| 1786 | - ); |
|
| 1786 | + ); |
|
| 1787 | 1787 | if (!isset($recording['imported'])) { |
| 1788 | 1788 | $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances( |
| 1789 | - $recording['recordID']); |
|
| 1789 | + $recording['recordID']); |
|
| 1790 | 1790 | } |
| 1791 | 1791 | if (isset($data['disabled'])) { |
| 1792 | 1792 | $iconattributes['class'] .= ' fa-' . $data['disabled']; |
@@ -2319,17 +2319,17 @@ discard block |
||
| 2319 | 2319 | function bigbluebuttonbn_get_instance_type_profiles() { |
| 2320 | 2320 | $instanceprofiles = array( |
| 2321 | 2321 | BIGBLUEBUTTONBN_TYPE_ALL => array('id' => BIGBLUEBUTTONBN_TYPE_ALL, |
| 2322 | - 'name' => get_string('instance_type_default', 'bigbluebuttonbn'), |
|
| 2323 | - 'features' => array('all')), |
|
| 2322 | + 'name' => get_string('instance_type_default', 'bigbluebuttonbn'), |
|
| 2323 | + 'features' => array('all')), |
|
| 2324 | 2324 | BIGBLUEBUTTONBN_TYPE_ROOM_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_ROOM_ONLY, |
| 2325 | - 'name' => get_string('instance_type_room_only', 'bigbluebuttonbn'), |
|
| 2326 | - 'features' => array('showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit', |
|
| 2327 | - 'recording', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups', |
|
| 2328 | - 'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection', |
|
| 2329 | - 'clienttype', 'availabilityconditionsheader')), |
|
| 2325 | + 'name' => get_string('instance_type_room_only', 'bigbluebuttonbn'), |
|
| 2326 | + 'features' => array('showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit', |
|
| 2327 | + 'recording', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups', |
|
| 2328 | + 'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection', |
|
| 2329 | + 'clienttype', 'availabilityconditionsheader')), |
|
| 2330 | 2330 | BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY, |
| 2331 | - 'name' => get_string('instance_type_recording_only', 'bigbluebuttonbn'), |
|
| 2332 | - 'features' => array('showrecordings', 'importrecordings', 'availabilityconditionsheader')) |
|
| 2331 | + 'name' => get_string('instance_type_recording_only', 'bigbluebuttonbn'), |
|
| 2332 | + 'features' => array('showrecordings', 'importrecordings', 'availabilityconditionsheader')) |
|
| 2333 | 2333 | ); |
| 2334 | 2334 | return $instanceprofiles; |
| 2335 | 2335 | } |
@@ -2416,8 +2416,8 @@ discard block |
||
| 2416 | 2416 | $activitytime = ''; |
| 2417 | 2417 | if ($time) { |
| 2418 | 2418 | $activitytime = calendar_day_representation($time).' '. |
| 2419 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2420 | - calendar_time_representation($time); |
|
| 2419 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2420 | + calendar_time_representation($time); |
|
| 2421 | 2421 | } |
| 2422 | 2422 | return $activitytime; |
| 2423 | 2423 | } |
@@ -2736,7 +2736,7 @@ discard block |
||
| 2736 | 2736 | $renderer->render_group_element('participant_moderator_default', |
| 2737 | 2737 | $renderer->render_group_element_configmultiselect('participant_moderator_default', |
| 2738 | 2738 | array_keys($owner), array_merge($owner, $roles)) |
| 2739 | - ); |
|
| 2739 | + ); |
|
| 2740 | 2740 | } |
| 2741 | 2741 | } |
| 2742 | 2742 | |
@@ -2772,7 +2772,7 @@ discard block |
||
| 2772 | 2772 | // Web Client default. |
| 2773 | 2773 | $default = intval((int)\mod_bigbluebuttonbn\locallib\config::get('clienttype_default')); |
| 2774 | 2774 | $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
| 2775 | - BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 2775 | + BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 2776 | 2776 | $renderer->render_group_element('clienttype_default', |
| 2777 | 2777 | $renderer->render_group_element_configselect('clienttype_default', |
| 2778 | 2778 | $default, $choices)); |
@@ -2883,7 +2883,7 @@ discard block |
||
| 2883 | 2883 | return $output; |
| 2884 | 2884 | } |
| 2885 | 2885 | $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
| 2886 | - 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
| 2886 | + 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
| 2887 | 2887 | $output .= ' ' . $message . "\n"; |
| 2888 | 2888 | $output .= ' <div class="singlebutton pull-right">' . "\n"; |
| 2889 | 2889 | if (!empty($href)) { |