@@ -80,7 +80,7 @@ |
||
| 80 | 80 | 'objectid' => $this->objectid, |
| 81 | 81 | 'contextinstanceid' => $this->contextinstanceid, |
| 82 | 82 | 'other' => $this->other |
| 83 | - ); |
|
| 83 | + ); |
|
| 84 | 84 | $string = $this->description; |
| 85 | 85 | foreach ($vars as $key => $value) { |
| 86 | 86 | $string = str_replace("##" . $key, $value, $string); |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function _get_metadata(collection $collection) { |
| 63 | 63 | |
| 64 | - // The table bigbluebuttonbn stores only the room properties. |
|
| 65 | - // However, there is a chance that some personal information is stored as metadata. |
|
| 66 | - // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 67 | - // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 68 | - // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 64 | + // The table bigbluebuttonbn stores only the room properties. |
|
| 65 | + // However, there is a chance that some personal information is stored as metadata. |
|
| 66 | + // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 67 | + // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 68 | + // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 69 | 69 | $collection->add_database_table('bigbluebuttonbn', [ |
| 70 | 70 | 'participants' => 'privacy:metadata:bigbluebuttonbn:participants', |
| 71 | 71 | ], 'privacy:metadata:bigbluebuttonbn'); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'meetingid' => $record->meetingid, |
| 209 | 209 | 'log' => $record->log, |
| 210 | 210 | 'meta' => $record->meta, |
| 211 | - ]; |
|
| 211 | + ]; |
|
| 212 | 212 | return $carry; |
| 213 | 213 | }, |
| 214 | 214 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
@@ -309,10 +309,10 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | function bigbluebuttonbn_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'] = bigbluebuttonbn_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) { |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
| 93 | 93 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) || |
| 94 | 94 | !isset($CFG->bigbluebuttonbn['recordings_validate_url']) |
| 95 | - ); |
|
| 95 | + ); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -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. |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | * $CFG->bigbluebuttonbn['recordings_preview_editable'] = 0; |
| 277 | 277 | */ |
| 278 | 278 | |
| 279 | - /* When the value is set to 1 (checked) the playback URLs will be validated |
|
| 279 | + /* When the value is set to 1 (checked) the playback URLs will be validated |
|
| 280 | 280 | * before the user access it. |
| 281 | 281 | * $CFG->bigbluebuttonbn['recordings_validate_url'] = 1; |
| 282 | 282 | */ |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | * $CFG->bigbluebuttonbn['disablecam_editable'] = 0; |
| 348 | 348 | */ |
| 349 | 349 | |
| 350 | - /* |
|
| 350 | + /* |
|
| 351 | 351 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 352 | 352 | * activities will have user microphones disabled. |
| 353 | 353 | * default. |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * $CFG->bigbluebuttonbn['disablemic_editable'] = 0; |
| 361 | 361 | */ |
| 362 | 362 | |
| 363 | - /* |
|
| 363 | + /* |
|
| 364 | 364 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 365 | 365 | * activities will have private chat disabled. |
| 366 | 366 | * default. |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | * $CFG->bigbluebuttonbn['disableprivatechat_editable'] = 0; |
| 374 | 374 | */ |
| 375 | 375 | |
| 376 | - /* |
|
| 376 | + /* |
|
| 377 | 377 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 378 | 378 | * activities will have public chat disabled. |
| 379 | 379 | * default. |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | * $CFG->bigbluebuttonbn['disablepublicchat_editable'] = 0; |
| 387 | 387 | */ |
| 388 | 388 | |
| 389 | - /* |
|
| 389 | + /* |
|
| 390 | 390 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 391 | 391 | * activities will have shared notes disabled. |
| 392 | 392 | * default. |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | * $CFG->bigbluebuttonbn['disablenote_editable'] = 0; |
| 400 | 400 | */ |
| 401 | 401 | |
| 402 | - /* |
|
| 402 | + /* |
|
| 403 | 403 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 404 | 404 | * activities will have the user list hidden. |
| 405 | 405 | * default. |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | * $CFG->bigbluebuttonbn['hideuserlist_editable'] = 0; |
| 413 | 413 | */ |
| 414 | 414 | |
| 415 | - /* |
|
| 415 | + /* |
|
| 416 | 416 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 417 | 417 | * activities will have a locked layout. |
| 418 | 418 | * default. |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | * $CFG->bigbluebuttonbn['lockedlayout_editable'] = 0; |
| 426 | 426 | */ |
| 427 | 427 | |
| 428 | - /* |
|
| 428 | + /* |
|
| 429 | 429 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 430 | 430 | * activities will ignore the locking settings. |
| 431 | 431 | * default. |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | * $CFG->bigbluebuttonbn['lockonjoin_editable'] = 0; |
| 439 | 439 | */ |
| 440 | 440 | |
| 441 | - /* |
|
| 441 | + /* |
|
| 442 | 442 | * When the value is set to 1 (checked) the capability to ignore |
| 443 | 443 | * locking settings is enabled. |
| 444 | 444 | * $CFG->bigbluebuttonbn['lockonjoinconfigurable_default'] = 0; |
@@ -489,27 +489,27 @@ discard block |
||
| 489 | 489 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
| 490 | 490 | */ |
| 491 | 491 | |
| 492 | - /* |
|
| 492 | + /* |
|
| 493 | 493 | * The warning box is always shown to administrators, but it is also possible to define other roles |
| 494 | 494 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
| 495 | 495 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
| 496 | 496 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
| 497 | 497 | */ |
| 498 | 498 | |
| 499 | - /* |
|
| 499 | + /* |
|
| 500 | 500 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
| 501 | 501 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
| 502 | 502 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
| 503 | 503 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
| 504 | 504 | */ |
| 505 | 505 | |
| 506 | - /* |
|
| 506 | + /* |
|
| 507 | 507 | * Additionally, when general_warning_button_href value is different than "", a button |
| 508 | 508 | * can also be shown right after the message. |
| 509 | 509 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
| 510 | 510 | */ |
| 511 | 511 | |
| 512 | - /* |
|
| 512 | + /* |
|
| 513 | 513 | * Finally, the text and class for the button can be modified |
| 514 | 514 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
| 515 | 515 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} "; |
| 361 | 361 | $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)"; |
| 362 | 362 | $result = $DB->count_records_sql($sql, array($course->id, $bigbluebuttonbn->id, $user->id, |
| 363 | - BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 363 | + BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 364 | 364 | return $result; |
| 365 | 365 | } |
| 366 | 366 | |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
| 594 | 594 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
| 595 | 595 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
| 596 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 596 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 597 | 597 | $str .= ' </div>'."\n"; |
| 598 | 598 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
| 599 | 599 | '</div>'."\n"; |
@@ -846,7 +846,7 @@ discard block |
||
| 846 | 846 | 'bigbluebuttonbn', |
| 847 | 847 | $bigbluebuttonbn->id, |
| 848 | 848 | $bigbluebuttonbn->completionexpected |
| 849 | - ); |
|
| 849 | + ); |
|
| 850 | 850 | } |
| 851 | 851 | } |
| 852 | 852 | |
@@ -191,64 +191,64 @@ |
||
| 191 | 191 | */ |
| 192 | 192 | public static function get_options() { |
| 193 | 193 | return array( |
| 194 | - 'version_major' => self::get_moodle_version_major(), |
|
| 195 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 196 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 197 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 198 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 199 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 200 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 201 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 202 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 203 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 204 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 205 | - 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 206 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 207 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 208 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 209 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 210 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 211 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 212 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 213 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 214 | - 'recordings_validate_url' => self::get('recordings_validate_url'), |
|
| 215 | - 'recording_default' => self::get('recording_default'), |
|
| 216 | - 'oc_recording' => self::get('oc_recording'), |
|
| 217 | - 'recording_editable' => self::get('recording_editable'), |
|
| 218 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 219 | - 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 220 | - 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 221 | - 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 222 | - 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 223 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 224 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 225 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 226 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 227 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 228 | - 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 229 | - 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 230 | - 'clienttype_default' => self::get('clienttype_default'), |
|
| 231 | - 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 232 | - 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 233 | - 'disablecam_editable' => self::get('disablecam_editable'), |
|
| 234 | - 'disablecam_default' => self::get('disablecam_default'), |
|
| 235 | - 'disablemic_editable' => self::get('disablemic_editable'), |
|
| 236 | - 'disablemic_default' => self::get('disablemic_default'), |
|
| 237 | - 'disableprivatechat_editable' => self::get('disableprivatechat_editable'), |
|
| 238 | - 'disableprivatechat_default' => self::get('disableprivatechat_default'), |
|
| 239 | - 'disablepublicchat_editable' => self::get('disablepublicchat_editable'), |
|
| 240 | - 'disablepublicchat_default' => self::get('disablepublicchat_default'), |
|
| 241 | - 'disablenote_editable' => self::get('disablenote_editable'), |
|
| 242 | - 'disablenote_default' => self::get('disablenote_default'), |
|
| 243 | - 'hideuserlist_editable' => self::get('hideuserlist_editable'), |
|
| 244 | - 'hideuserlist_default' => self::get('hideuserlist_default'), |
|
| 245 | - 'lockedlayout_editable' => self::get('lockedlayout_editable'), |
|
| 246 | - 'lockedlayout_default' => self::get('lockedlayout_default'), |
|
| 247 | - 'lockonjoin_editable' => self::get('lockonjoin_editable'), |
|
| 248 | - 'lockonjoin_default' => self::get('lockonjoin_default'), |
|
| 249 | - 'lockonjoinconfigurable_editable' => self::get('lockonjoinconfigurable_editable'), |
|
| 250 | - 'lockonjoinconfigurable_default' => self::get('lockonjoinconfigurable_default'), |
|
| 251 | - 'welcome_default' => self::get('welcome_default'), |
|
| 252 | - ); |
|
| 194 | + 'version_major' => self::get_moodle_version_major(), |
|
| 195 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 196 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 197 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 198 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 199 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 200 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 201 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 202 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 203 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 204 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 205 | + 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 206 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 207 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 208 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 209 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 210 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 211 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 212 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 213 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 214 | + 'recordings_validate_url' => self::get('recordings_validate_url'), |
|
| 215 | + 'recording_default' => self::get('recording_default'), |
|
| 216 | + 'oc_recording' => self::get('oc_recording'), |
|
| 217 | + 'recording_editable' => self::get('recording_editable'), |
|
| 218 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 219 | + 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 220 | + 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 221 | + 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 222 | + 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 223 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 224 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 225 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 226 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 227 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 228 | + 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 229 | + 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 230 | + 'clienttype_default' => self::get('clienttype_default'), |
|
| 231 | + 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 232 | + 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 233 | + 'disablecam_editable' => self::get('disablecam_editable'), |
|
| 234 | + 'disablecam_default' => self::get('disablecam_default'), |
|
| 235 | + 'disablemic_editable' => self::get('disablemic_editable'), |
|
| 236 | + 'disablemic_default' => self::get('disablemic_default'), |
|
| 237 | + 'disableprivatechat_editable' => self::get('disableprivatechat_editable'), |
|
| 238 | + 'disableprivatechat_default' => self::get('disableprivatechat_default'), |
|
| 239 | + 'disablepublicchat_editable' => self::get('disablepublicchat_editable'), |
|
| 240 | + 'disablepublicchat_default' => self::get('disablepublicchat_default'), |
|
| 241 | + 'disablenote_editable' => self::get('disablenote_editable'), |
|
| 242 | + 'disablenote_default' => self::get('disablenote_default'), |
|
| 243 | + 'hideuserlist_editable' => self::get('hideuserlist_editable'), |
|
| 244 | + 'hideuserlist_default' => self::get('hideuserlist_default'), |
|
| 245 | + 'lockedlayout_editable' => self::get('lockedlayout_editable'), |
|
| 246 | + 'lockedlayout_default' => self::get('lockedlayout_default'), |
|
| 247 | + 'lockonjoin_editable' => self::get('lockonjoin_editable'), |
|
| 248 | + 'lockonjoin_default' => self::get('lockonjoin_default'), |
|
| 249 | + 'lockonjoinconfigurable_editable' => self::get('lockonjoinconfigurable_editable'), |
|
| 250 | + 'lockonjoinconfigurable_default' => self::get('lockonjoinconfigurable_default'), |
|
| 251 | + 'welcome_default' => self::get('welcome_default'), |
|
| 252 | + ); |
|
| 253 | 253 | } |
| 254 | 254 | } |
@@ -313,8 +313,8 @@ discard block |
||
| 313 | 313 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 314 | 314 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
| 315 | 315 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
| 316 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 317 | - ); |
|
| 316 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 317 | + ); |
|
| 318 | 318 | } else { |
| 319 | 319 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 320 | 320 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
| 487 | 487 | $recordingsettings = false; |
| 488 | 488 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
| 489 | - 'description_key' => null]; |
|
| 489 | + 'description_key' => null]; |
|
| 490 | 490 | if ($cfg['recordings_html_editable']) { |
| 491 | 491 | $field['type'] = 'checkbox'; |
| 492 | 492 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 496 | 496 | $field['description_key'], $cfg['recordings_html_default']); |
| 497 | 497 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
| 498 | - 'description_key' => null]; |
|
| 498 | + 'description_key' => null]; |
|
| 499 | 499 | if ($cfg['recordings_deleted_editable']) { |
| 500 | 500 | $field['type'] = 'checkbox'; |
| 501 | 501 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 505 | 505 | $field['description_key'], $cfg['recordings_deleted_default']); |
| 506 | 506 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
| 507 | - 'description_key' => null]; |
|
| 507 | + 'description_key' => null]; |
|
| 508 | 508 | if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) { |
| 509 | 509 | $field['type'] = 'checkbox'; |
| 510 | 510 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 514 | 514 | $field['description_key'], $cfg['recordings_imported_default']); |
| 515 | 515 | $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, |
| 516 | - 'description_key' => null]; |
|
| 516 | + 'description_key' => null]; |
|
| 517 | 517 | if ($cfg['recordings_preview_editable']) { |
| 518 | 518 | $field['type'] = 'checkbox'; |
| 519 | 519 | $field['description_key'] = 'mod_form_field_recordings_preview'; |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | $htmlselectiontype = html_writer::select($participantselection['type_options'], |
| 591 | 591 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
| 592 | 592 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 593 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 593 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 594 | 594 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 595 | 595 | $participantselection['selected'], array(), |
| 596 | 596 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | 'type' => 'button', 'class' => 'btn btn-secondary', |
| 599 | 599 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
| 600 | 600 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
| 601 | - )); |
|
| 601 | + )); |
|
| 602 | 602 | $htmladdparticipant = html_writer::tag('div', |
| 603 | 603 | $htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
| 604 | 604 | $mform->addElement('html', "\n\n"); |
@@ -641,7 +641,7 @@ discard block |
||
| 641 | 641 | $field['data_type'] = PARAM_TEXT; |
| 642 | 642 | $field['description_key'] = 'mod_form_field_block_clienttype'; |
| 643 | 643 | $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
| 644 | - BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 644 | + BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 645 | 645 | $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
| 646 | 646 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 647 | 647 | $field['description_key'], $cfg['clienttype_default'], $choices); |
@@ -801,7 +801,7 @@ discard block |
||
| 801 | 801 | $data['role'] = array( |
| 802 | 802 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 803 | 803 | 'children' => bigbluebuttonbn_get_roles_select($context, true) |
| 804 | - ); |
|
| 804 | + ); |
|
| 805 | 805 | $data['user'] = array( |
| 806 | 806 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 807 | 807 | 'children' => bigbluebuttonbn_get_users_select($context, $bbactivity), |
@@ -1709,7 +1709,7 @@ discard block |
||
| 1709 | 1709 | 'data-action' => 'play', |
| 1710 | 1710 | 'data-target' => $playback['type'], |
| 1711 | 1711 | 'data-href' => $href, |
| 1712 | - ); |
|
| 1712 | + ); |
|
| 1713 | 1713 | if ($CFG->bigbluebuttonbn_recordings_validate_url && !bigbluebuttonbn_is_bn_server() |
| 1714 | 1714 | && !bigbluebuttonbn_is_valid_resource(trim($playback['url']))) { |
| 1715 | 1715 | $linkattributes['class'] = 'btn btn-sm btn-warning'; |
@@ -2396,7 +2396,7 @@ discard block |
||
| 2396 | 2396 | 'id' => 'opencast-player-redirect-' . $ocrecording['identifier'], |
| 2397 | 2397 | 'class' => 'btn btn-sm btn-default', |
| 2398 | 2398 | 'target' => '_blank' |
| 2399 | - ); |
|
| 2399 | + ); |
|
| 2400 | 2400 | if ($href == '#' || empty($href)) { |
| 2401 | 2401 | $linkattributes['class'] = 'btn btn-sm btn-warning'; |
| 2402 | 2402 | $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn'); |