@@ -198,10 +198,10 @@ discard block |
||
| 198 | 198 | */ |
| 199 | 199 | function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession) { |
| 200 | 200 | $data = ['meetingID' => $bbbsession['meetingid'], |
| 201 | - 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 202 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
| 203 | - 'moderatorPW' => $bbbsession['modPW'], |
|
| 204 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
| 201 | + 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 202 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
| 203 | + 'moderatorPW' => $bbbsession['modPW'], |
|
| 204 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
| 205 | 205 | ]; |
| 206 | 206 | $data['record'] = bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']); |
| 207 | 207 | $data['welcome'] = trim($bbbsession['welcome']); |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | '%duration%', |
| 215 | 215 | (string) $durationtime, |
| 216 | 216 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
| 217 | - ); |
|
| 217 | + ); |
|
| 218 | 218 | } |
| 219 | 219 | $voicebridge = intval($bbbsession['voicebridge']); |
| 220 | 220 | if ($voicebridge > 0 && $voicebridge < 79999) { |
@@ -253,22 +253,22 @@ discard block |
||
| 253 | 253 | function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) { |
| 254 | 254 | global $USER; |
| 255 | 255 | $metadata = ['bbb-origin' => $bbbsession['origin'], |
| 256 | - 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 257 | - 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 258 | - 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 259 | - 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 260 | - 'bbb-context' => $bbbsession['course']->fullname, |
|
| 261 | - 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 262 | - 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 263 | - 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 256 | + 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 257 | + 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 258 | + 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 259 | + 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 260 | + 'bbb-context' => $bbbsession['course']->fullname, |
|
| 261 | + 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 262 | + 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 263 | + 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 264 | 264 | ]; |
| 265 | 265 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
| 266 | 266 | $metadata["bn-recording-status"] = json_encode( |
| 267 | 267 | array( |
| 268 | 268 | 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'), |
| 269 | 269 | 'context' => $bbbsession['bigbluebuttonbnURL'] |
| 270 | - ) |
|
| 271 | - ); |
|
| 270 | + ) |
|
| 271 | + ); |
|
| 272 | 272 | } |
| 273 | 273 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
| 274 | 274 | $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL']; |
@@ -366,26 +366,26 @@ discard block |
||
| 366 | 366 | return array( |
| 367 | 367 | 'status' => false, |
| 368 | 368 | 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn') |
| 369 | - ); |
|
| 369 | + ); |
|
| 370 | 370 | } |
| 371 | 371 | if ($realrecordings[$params['id']]['published'] !== 'true') { |
| 372 | 372 | return array( |
| 373 | 373 | 'status' => false, |
| 374 | 374 | 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn') |
| 375 | - ); |
|
| 375 | + ); |
|
| 376 | 376 | } |
| 377 | 377 | return array( |
| 378 | 378 | 'status' => bigbluebuttonbn_publish_recording_imported( |
| 379 | 379 | $recordings[$params['id']]['imported'], true |
| 380 | 380 | ) |
| 381 | - ); |
|
| 381 | + ); |
|
| 382 | 382 | } |
| 383 | 383 | // As the recordingid was not identified as imported recording link, execute actual publish. |
| 384 | 384 | return array( |
| 385 | 385 | 'status' => bigbluebuttonbn_publish_recordings( |
| 386 | 386 | $params['id'], 'true' |
| 387 | 387 | ) |
| 388 | - ); |
|
| 388 | + ); |
|
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | /** |
@@ -401,26 +401,26 @@ discard block |
||
| 401 | 401 | return array( |
| 402 | 402 | 'status' => false, |
| 403 | 403 | 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn') |
| 404 | - ); |
|
| 404 | + ); |
|
| 405 | 405 | } |
| 406 | 406 | if ($realrecordings[$params['id']]['protected'] === 'true') { |
| 407 | 407 | return array( |
| 408 | 408 | 'status' => false, |
| 409 | 409 | 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn') |
| 410 | - ); |
|
| 410 | + ); |
|
| 411 | 411 | } |
| 412 | 412 | return array( |
| 413 | 413 | 'status' => bigbluebuttonbn_protect_recording_imported( |
| 414 | 414 | $recordings[$params['id']]['imported'], false |
| 415 | 415 | ) |
| 416 | - ); |
|
| 416 | + ); |
|
| 417 | 417 | } |
| 418 | 418 | // As the recordingid was not identified as imported recording link, execute actual uprotect. |
| 419 | 419 | return array( |
| 420 | 420 | 'status' => bigbluebuttonbn_update_recordings( |
| 421 | 421 | $params['id'], array('protect' => 'false') |
| 422 | 422 | ) |
| 423 | - ); |
|
| 423 | + ); |
|
| 424 | 424 | } |
| 425 | 425 | |
| 426 | 426 | /** |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | 'status' => bigbluebuttonbn_publish_recording_imported( |
| 435 | 435 | $recordings[$params['id']]['imported'], false |
| 436 | 436 | ) |
| 437 | - ); |
|
| 437 | + ); |
|
| 438 | 438 | } |
| 439 | 439 | // As the recordingid was not identified as imported recording link, execute unpublish on a real recording. |
| 440 | 440 | // First: Unpublish imported links associated to the recording. |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | 'status' => bigbluebuttonbn_publish_recordings( |
| 453 | 453 | $params['id'], 'false' |
| 454 | 454 | ) |
| 455 | - ); |
|
| 455 | + ); |
|
| 456 | 456 | } |
| 457 | 457 | |
| 458 | 458 | /** |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | 'status' => bigbluebuttonbn_protect_recording_imported( |
| 467 | 467 | $recordings[$params['id']]['imported'], true |
| 468 | 468 | ) |
| 469 | - ); |
|
| 469 | + ); |
|
| 470 | 470 | } |
| 471 | 471 | // As the recordingid was not identified as imported recording link, execute protect on a real recording. |
| 472 | 472 | // First: Protect imported links associated to the recording. |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | 'status' => bigbluebuttonbn_update_recordings( |
| 485 | 485 | $params['id'], array('protect' => 'true') |
| 486 | 486 | ) |
| 487 | - ); |
|
| 487 | + ); |
|
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | /** |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | 'status' => bigbluebuttonbn_delete_recording_imported( |
| 499 | 499 | $recordings[$params['id']]['imported'] |
| 500 | 500 | ) |
| 501 | - ); |
|
| 501 | + ); |
|
| 502 | 502 | } |
| 503 | 503 | // As the recordingid was not identified as imported recording link, execute delete on a real recording. |
| 504 | 504 | // First: Delete imported links associated to the recording. |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | 'status' => bigbluebuttonbn_delete_recordings( |
| 515 | 515 | $params['id'] |
| 516 | 516 | ) |
| 517 | - ); |
|
| 517 | + ); |
|
| 518 | 518 | } |
| 519 | 519 | |
| 520 | 520 | /** |
@@ -527,7 +527,7 @@ discard block |
||
| 527 | 527 | 'status' => bigbluebuttonbn_update_recording_imported( |
| 528 | 528 | $recordings[$params['id']]['imported'], json_decode($params['meta'], true) |
| 529 | 529 | ) |
| 530 | - ); |
|
| 530 | + ); |
|
| 531 | 531 | } |
| 532 | 532 | |
| 533 | 533 | // As the recordingid was not identified as imported recording link, execute update on a real recording. |
@@ -537,7 +537,7 @@ discard block |
||
| 537 | 537 | 'status' => bigbluebuttonbn_update_recordings( |
| 538 | 538 | $params['id'], json_decode($params['meta']) |
| 539 | 539 | ) |
| 540 | - ); |
|
| 540 | + ); |
|
| 541 | 541 | } |
| 542 | 542 | |
| 543 | 543 | /** |
@@ -682,10 +682,10 @@ discard block |
||
| 682 | 682 | $params['recording_import'] = ['id' => 'The recordingID must be specified.']; |
| 683 | 683 | $params['recording_ready'] = [ |
| 684 | 684 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
| 685 | - ]; |
|
| 685 | + ]; |
|
| 686 | 686 | $params['live_session_events'] = [ |
| 687 | 687 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
| 688 | - ]; |
|
| 688 | + ]; |
|
| 689 | 689 | return $params; |
| 690 | 690 | } |
| 691 | 691 | |
@@ -77,8 +77,8 @@ |
||
| 77 | 77 | $body .= html_writer::start_tag('br'); |
| 78 | 78 | $body .= html_writer::tag('input', '', |
| 79 | 79 | array('type' => 'button', 'class' => 'btn btn-secondary', |
| 80 | - 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
| 81 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
| 80 | + 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
| 81 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
| 82 | 82 | // JavaScript for locales. |
| 83 | 83 | $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn'); |
| 84 | 84 | // Require JavaScript modules. |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * Remove this block when restored |
| 69 | 69 | */ |
| 70 | 70 | |
| 71 | - /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 71 | + /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 72 | 72 | const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/'; |
| 73 | 73 | /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */ |
| 74 | 74 | const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6'; |
@@ -345,12 +345,12 @@ discard block |
||
| 345 | 345 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
| 346 | 346 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
| 347 | 347 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
| 348 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 348 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 349 | 349 | $str .= ' </div>'."\n"; |
| 350 | 350 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
| 351 | 351 | '</div>'."\n"; |
| 352 | 352 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
| 353 | - .'</div>'."\n"; |
|
| 353 | + .'</div>'."\n"; |
|
| 354 | 354 | $str .= '</div>'."\n"; |
| 355 | 355 | return $str; |
| 356 | 356 | } |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | !isset($CFG->bigbluebuttonbn['recordings_imported_editable']) || |
| 206 | 206 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
| 207 | 207 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) |
| 208 | - ); |
|
| 208 | + ); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
@@ -152,31 +152,31 @@ |
||
| 152 | 152 | */ |
| 153 | 153 | public static function get_options() { |
| 154 | 154 | return array( |
| 155 | - 'version_major' => self::get_moodle_version_major(), |
|
| 156 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 157 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 158 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 159 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 160 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 161 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 162 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 163 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 164 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 165 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 166 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 167 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 168 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 169 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 170 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 171 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 172 | - 'recording_default' => self::get('recording_default'), |
|
| 173 | - 'recording_editable' => self::get('recording_editable'), |
|
| 174 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 175 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 176 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 177 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 178 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 179 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 180 | - ); |
|
| 155 | + 'version_major' => self::get_moodle_version_major(), |
|
| 156 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 157 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 158 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 159 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 160 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 161 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 162 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 163 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 164 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 165 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 166 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 167 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 168 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 169 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 170 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 171 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 172 | + 'recording_default' => self::get('recording_default'), |
|
| 173 | + 'recording_editable' => self::get('recording_editable'), |
|
| 174 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 175 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 176 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 177 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 178 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 179 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 180 | + ); |
|
| 181 | 181 | } |
| 182 | 182 | } |
@@ -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,13 +259,13 @@ 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; |
@@ -310,27 +310,27 @@ discard block |
||
| 310 | 310 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
| 311 | 311 | */ |
| 312 | 312 | |
| 313 | - /* |
|
| 313 | + /* |
|
| 314 | 314 | * The warning box is always shown to administrators, but it is also possible to define other roles |
| 315 | 315 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
| 316 | 316 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
| 317 | 317 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
| 318 | 318 | */ |
| 319 | 319 | |
| 320 | - /* |
|
| 320 | + /* |
|
| 321 | 321 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
| 322 | 322 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
| 323 | 323 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
| 324 | 324 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
| 325 | 325 | */ |
| 326 | 326 | |
| 327 | - /* |
|
| 327 | + /* |
|
| 328 | 328 | * Additionally, when general_warning_button_href value is different than "", a button |
| 329 | 329 | * can also be shown right after the message. |
| 330 | 330 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
| 331 | 331 | */ |
| 332 | 332 | |
| 333 | - /* |
|
| 333 | + /* |
|
| 334 | 334 | * Finally, the text and class for the button can be modified |
| 335 | 335 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
| 336 | 336 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -213,8 +213,8 @@ discard block |
||
| 213 | 213 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 214 | 214 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
| 215 | 215 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
| 216 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 217 | - ); |
|
| 216 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 217 | + ); |
|
| 218 | 218 | } else { |
| 219 | 219 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 220 | 220 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | */ |
| 253 | 253 | private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
| 254 | 254 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
| 255 | - 'description_key' => null]; |
|
| 255 | + 'description_key' => null]; |
|
| 256 | 256 | if ($cfg['recordings_html_editable']) { |
| 257 | 257 | $field['type'] = 'checkbox'; |
| 258 | 258 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 261 | 261 | $field['description_key'], $cfg['recordings_html_default']); |
| 262 | 262 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
| 263 | - 'description_key' => null]; |
|
| 263 | + 'description_key' => null]; |
|
| 264 | 264 | if ($cfg['recordings_deleted_editable']) { |
| 265 | 265 | $field['type'] = 'checkbox'; |
| 266 | 266 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 269 | 269 | $field['description_key'], $cfg['recordings_deleted_default']); |
| 270 | 270 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
| 271 | - 'description_key' => null]; |
|
| 271 | + 'description_key' => null]; |
|
| 272 | 272 | if ($cfg['recordings_imported_editable']) { |
| 273 | 273 | $field['type'] = 'checkbox'; |
| 274 | 274 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 277 | 277 | $field['description_key'], $cfg['recordings_imported_default']); |
| 278 | 278 | $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, |
| 279 | - 'description_key' => null]; |
|
| 279 | + 'description_key' => null]; |
|
| 280 | 280 | if ($cfg['recordings_preview_editable']) { |
| 281 | 281 | $field['type'] = 'checkbox'; |
| 282 | 282 | $field['description_key'] = 'mod_form_field_recordings_preview'; |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | $htmlselectiontype = html_writer::select($participantselection['type_options'], |
| 348 | 348 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
| 349 | 349 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 350 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 350 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 351 | 351 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 352 | 352 | $participantselection['selected'], array(), |
| 353 | 353 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | 'type' => 'button', 'class' => 'btn btn-secondary', |
| 356 | 356 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
| 357 | 357 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
| 358 | - )); |
|
| 358 | + )); |
|
| 359 | 359 | $htmladdparticipant = html_writer::tag('div', |
| 360 | 360 | $htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
| 361 | 361 | $mform->addElement('html', "\n\n"); |
@@ -436,12 +436,12 @@ discard block |
||
| 436 | 436 | $recordings = bigbluebuttonbn_get_recordings( |
| 437 | 437 | $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom'], |
| 438 | 438 | $bbbsession['bigbluebuttonbn']->recordings_deleted |
| 439 | - ); |
|
| 439 | + ); |
|
| 440 | 440 | if ($enabledfeatures['importrecordings']) { |
| 441 | 441 | // Get recording links. |
| 442 | 442 | $recordingsimported = bigbluebuttonbn_get_recordings_imported_array( |
| 443 | 443 | $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom'] |
| 444 | - ); |
|
| 444 | + ); |
|
| 445 | 445 | /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent |
| 446 | 446 | * recordings are not included. */ |
| 447 | 447 | $recordings += $recordingsimported; |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | // JavaScript variables for recordings. |
| 456 | 456 | $jsvars += array( |
| 457 | 457 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
| 458 | - ); |
|
| 458 | + ); |
|
| 459 | 459 | // If there are meetings with recordings load the data to the table. |
| 460 | 460 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
| 461 | 461 | // Render a plain html table. |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | $jsvars += array( |
| 466 | 466 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
| 467 | 467 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
| 468 | - ); |
|
| 468 | + ); |
|
| 469 | 469 | // Render a YUI table. |
| 470 | 470 | return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table')); |
| 471 | 471 | } |
@@ -485,10 +485,10 @@ discard block |
||
| 485 | 485 | } |
| 486 | 486 | $button = html_writer::tag('input', '', |
| 487 | 487 | array('type' => 'button', |
| 488 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 489 | - 'class' => 'btn btn-secondary', |
|
| 490 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 491 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 488 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 489 | + 'class' => 'btn btn-secondary', |
|
| 490 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 491 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 492 | 492 | $output = html_writer::start_tag('br'); |
| 493 | 493 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 494 | 494 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |