@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * recordings from a different activity even from a different course. |
| 95 | 95 | **/ |
| 96 | 96 | |
| 97 | - /* |
|
| 97 | + /* |
|
| 98 | 98 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 99 | 99 | * activities will have the 'import recordings' capability enabled. |
| 100 | 100 | */ |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * 'Join session' button enabled |
| 116 | 116 | **/ |
| 117 | 117 | |
| 118 | - /* |
|
| 118 | + /* |
|
| 119 | 119 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 120 | 120 | * activities will have the 'wait for moderator' capability enabled by |
| 121 | 121 | * default. |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * 5. CONFIGURATION FOR "STATIC VOICE BRIDGE" FEATURE |
| 150 | 150 | * |
| 151 | 151 | **/ |
| 152 | - /* |
|
| 152 | + /* |
|
| 153 | 153 | * A conference voice bridge number can be permanently assigned to a room |
| 154 | 154 | * or activity. |
| 155 | 155 | */ |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * 6. CONFIGURATION FOR "PRE-UPLOAD PRESENTATION" FEATURE |
| 160 | 160 | * |
| 161 | 161 | **/ |
| 162 | - /* |
|
| 162 | + /* |
|
| 163 | 163 | * Since version 0.8, BigBluebutton has an implementation for allowing |
| 164 | 164 | * preuploading presentation. When this feature is enabled, users creating or |
| 165 | 165 | * editing a room or activity can upload a PDF or Office document to the |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * applied to each room or activity, or globally. |
| 177 | 177 | **/ |
| 178 | 178 | |
| 179 | - /* |
|
| 179 | + /* |
|
| 180 | 180 | * The number of users allowed in a session by default when a new room or |
| 181 | 181 | * conference is added. If the number is set to 0, no limit is established. |
| 182 | 182 | * $CFG->bigbluebuttonbn['userlimit_default'] = 0; |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * By default only the owner is assigned. |
| 198 | 198 | **/ |
| 199 | 199 | |
| 200 | - /* |
|
| 200 | + /* |
|
| 201 | 201 | * The values for this parameter can be 'owner' and/or any of the roles defined in |
| 202 | 202 | * Moodle (including the custom parameters). The value used will be the key for the role. |
| 203 | 203 | * [owner|manager|coursecreator|editingteacher|teacher|student|guest|user|frontpage|ANY_CUSTOM_ROLE] |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * 9. CONFIGURATION FOR "NOTIFICATION SENDING" FEATURE |
| 209 | 209 | * |
| 210 | 210 | **/ |
| 211 | - /* |
|
| 211 | + /* |
|
| 212 | 212 | * When the value is set to 1 (checked) the 'notification sending' |
| 213 | 213 | * capability can be used by the user creating or editing the room or |
| 214 | 214 | * activity. |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * 10. CONFIGURATION FOR "RECORDING READY" FEATURE |
| 223 | 223 | * |
| 224 | 224 | **/ |
| 225 | - /* |
|
| 225 | + /* |
|
| 226 | 226 | * When the value is set to 1 (checked) the 'notify users when recording ready' |
| 227 | 227 | * capability is enabled, meaning that a message will be sent to all enrolled |
| 228 | 228 | * users in a course when a recording is ready |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | * 12. GENERAL CONFIGURATION FOR RECORDINGS UI |
| 246 | 246 | * |
| 247 | 247 | **/ |
| 248 | - /* |
|
| 248 | + /* |
|
| 249 | 249 | * When the value is set to 1 (checked) the bigbluebuttonbn resources |
| 250 | 250 | * will show the recodings in an html table by default. |
| 251 | 251 | * $CFG->bigbluebuttonbn['recordings_html_default'] = 0; |
@@ -36,23 +36,23 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | // Change welcome, allow null. |
| 38 | 38 | $fielddefinition = array('type' => XMLDB_TYPE_TEXT, |
| 39 | - 'precision' => null, |
|
| 40 | - 'unsigned' => null, |
|
| 41 | - 'notnull' => XMLDB_NOTNULL, |
|
| 42 | - 'sequence' => null, |
|
| 43 | - 'default' => null, |
|
| 44 | - 'previous' => 'type'); |
|
| 39 | + 'precision' => null, |
|
| 40 | + 'unsigned' => null, |
|
| 41 | + 'notnull' => XMLDB_NOTNULL, |
|
| 42 | + 'sequence' => null, |
|
| 43 | + 'default' => null, |
|
| 44 | + 'previous' => 'type'); |
|
| 45 | 45 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'welcome', |
| 46 | 46 | $fielddefinition); |
| 47 | 47 | |
| 48 | 48 | // Change userid definition in bigbluebuttonbn_log. |
| 49 | 49 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
| 50 | - 'precision' => '10', |
|
| 51 | - 'unsigned' => null, |
|
| 52 | - 'notnull' => XMLDB_NOTNULL, |
|
| 53 | - 'sequence' => null, |
|
| 54 | - 'default' => null, |
|
| 55 | - 'previous' => 'bigbluebuttonbnid'); |
|
| 50 | + 'precision' => '10', |
|
| 51 | + 'unsigned' => null, |
|
| 52 | + 'notnull' => XMLDB_NOTNULL, |
|
| 53 | + 'sequence' => null, |
|
| 54 | + 'default' => null, |
|
| 55 | + 'previous' => 'bigbluebuttonbnid'); |
|
| 56 | 56 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn_log', 'userid', |
| 57 | 57 | $fielddefinition); |
| 58 | 58 | |
@@ -78,34 +78,34 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | // Add field type. |
| 80 | 80 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
| 81 | - 'precision' => '2', |
|
| 82 | - 'unsigned' => null, |
|
| 83 | - 'notnull' => XMLDB_NOTNULL, |
|
| 84 | - 'sequence' => null, |
|
| 85 | - 'default' => 0, |
|
| 86 | - 'previous' => 'id'); |
|
| 81 | + 'precision' => '2', |
|
| 82 | + 'unsigned' => null, |
|
| 83 | + 'notnull' => XMLDB_NOTNULL, |
|
| 84 | + 'sequence' => null, |
|
| 85 | + 'default' => 0, |
|
| 86 | + 'previous' => 'id'); |
|
| 87 | 87 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'type', |
| 88 | 88 | $fielddefinition); |
| 89 | 89 | |
| 90 | 90 | // Add field recordings_html. |
| 91 | 91 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
| 92 | - 'precision' => '1', |
|
| 93 | - 'unsigned' => null, |
|
| 94 | - 'notnull' => XMLDB_NOTNULL, |
|
| 95 | - 'sequence' => null, |
|
| 96 | - 'default' => 0, |
|
| 97 | - 'previous' => null); |
|
| 92 | + 'precision' => '1', |
|
| 93 | + 'unsigned' => null, |
|
| 94 | + 'notnull' => XMLDB_NOTNULL, |
|
| 95 | + 'sequence' => null, |
|
| 96 | + 'default' => 0, |
|
| 97 | + 'previous' => null); |
|
| 98 | 98 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_html', |
| 99 | 99 | $fielddefinition); |
| 100 | 100 | |
| 101 | 101 | // Add field recordings_deleted_activities. |
| 102 | 102 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
| 103 | - 'precision' => '1', |
|
| 104 | - 'unsigned' => null, |
|
| 105 | - 'notnull' => XMLDB_NOTNULL, |
|
| 106 | - 'sequence' => null, |
|
| 107 | - 'default' => 1, |
|
| 108 | - 'previous' => null); |
|
| 103 | + 'precision' => '1', |
|
| 104 | + 'unsigned' => null, |
|
| 105 | + 'notnull' => XMLDB_NOTNULL, |
|
| 106 | + 'sequence' => null, |
|
| 107 | + 'default' => 1, |
|
| 108 | + 'previous' => null); |
|
| 109 | 109 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_deleted_activities', |
| 110 | 110 | $fielddefinition); |
| 111 | 111 | |
@@ -122,12 +122,12 @@ discard block |
||
| 122 | 122 | $table = new xmldb_table($tablename); |
| 123 | 123 | $field = new xmldb_field($fieldname); |
| 124 | 124 | $field->set_attributes($fielddefinition['type'], |
| 125 | - $fielddefinition['precision'], |
|
| 126 | - $fielddefinition['unsigned'], |
|
| 127 | - $fielddefinition['notnull'], |
|
| 128 | - $fielddefinition['sequence'], |
|
| 129 | - $fielddefinition['default'], |
|
| 130 | - $fielddefinition['previous']); |
|
| 125 | + $fielddefinition['precision'], |
|
| 126 | + $fielddefinition['unsigned'], |
|
| 127 | + $fielddefinition['notnull'], |
|
| 128 | + $fielddefinition['sequence'], |
|
| 129 | + $fielddefinition['default'], |
|
| 130 | + $fielddefinition['previous']); |
|
| 131 | 131 | if ($dbman->field_exists($table, $field)) { |
| 132 | 132 | $dbman->change_field_type($table, $field, true, true); |
| 133 | 133 | $dbman->change_field_precision($table, $field, true, true); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | $logs = $DB->get_records('bigbluebuttonbn_logs', |
| 210 | 210 | array('bigbluebuttonbnid' => $bigbluebuttonbn->id, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_CREATE, 'meta' => "{\"record\":true}") |
| 211 | - ); |
|
| 211 | + ); |
|
| 212 | 212 | $log->meta = "{\"has_recordings\":false}"; |
| 213 | 213 | if (!empty($logs)) { |
| 214 | 214 | $log->meta = "{\"has_recordings\":true}"; |
@@ -233,9 +233,9 @@ discard block |
||
| 233 | 233 | global $DB; |
| 234 | 234 | |
| 235 | 235 | $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id, |
| 236 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
| 237 | - 'userid' => $user->id, |
|
| 238 | - 'log' => 'Join', ), '*'); |
|
| 236 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
| 237 | + 'userid' => $user->id, |
|
| 238 | + 'log' => 'Join', ), '*'); |
|
| 239 | 239 | |
| 240 | 240 | if ($completed > 0) { |
| 241 | 241 | return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '. |
@@ -256,9 +256,9 @@ discard block |
||
| 256 | 256 | global $DB; |
| 257 | 257 | |
| 258 | 258 | $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id, |
| 259 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
| 260 | - 'userid' => $user->id, |
|
| 261 | - 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
| 259 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
| 260 | + 'userid' => $user->id, |
|
| 261 | + 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
| 262 | 262 | |
| 263 | 263 | return $completed > 0; |
| 264 | 264 | } |
@@ -331,12 +331,12 @@ discard block |
||
| 331 | 331 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
| 332 | 332 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
| 333 | 333 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
| 334 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 334 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 335 | 335 | $str .= ' </div>'."\n"; |
| 336 | 336 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
| 337 | 337 | '</div>'."\n"; |
| 338 | 338 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
| 339 | - .'</div>'."\n"; |
|
| 339 | + .'</div>'."\n"; |
|
| 340 | 340 | $str .= '</div>'."\n"; |
| 341 | 341 | |
| 342 | 342 | return $str; |
@@ -96,8 +96,8 @@ |
||
| 96 | 96 | $output .= html_writer::start_tag('br'); |
| 97 | 97 | $output .= html_writer::tag('input', '', |
| 98 | 98 | array('type' => 'button', 'class' => 'btn btn-secondary', |
| 99 | - 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
| 100 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
| 99 | + 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
| 100 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
| 101 | 101 | |
| 102 | 102 | // JavaScript for locales. |
| 103 | 103 | $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn'); |
@@ -166,10 +166,10 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession, $bigbluebuttonbn) { |
| 168 | 168 | $data = ['meetingID' => $bbbsession['meetingid'], |
| 169 | - 'name' => $bbbsession['meetingname'], |
|
| 170 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
| 171 | - 'moderatorPW' => $bbbsession['modPW'], |
|
| 172 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
| 169 | + 'name' => $bbbsession['meetingname'], |
|
| 170 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
| 171 | + 'moderatorPW' => $bbbsession['modPW'], |
|
| 172 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
| 173 | 173 | ]; |
| 174 | 174 | |
| 175 | 175 | $data['record'] = 'false'; |
@@ -206,16 +206,16 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) { |
| 209 | - $metadata = ['bbb-origin' => $bbbsession['origin'], |
|
| 210 | - 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 211 | - 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 212 | - 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 213 | - 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 214 | - 'bbb-context' => $bbbsession['course']->fullname, |
|
| 215 | - 'bbb-recording-name' => $bbbsession['meetingname'], |
|
| 216 | - 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 217 | - 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 218 | - ]; |
|
| 209 | + $metadata = ['bbb-origin' => $bbbsession['origin'], |
|
| 210 | + 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 211 | + 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 212 | + 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 213 | + 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 214 | + 'bbb-context' => $bbbsession['course']->fullname, |
|
| 215 | + 'bbb-recording-name' => $bbbsession['meetingname'], |
|
| 216 | + 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 217 | + 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 218 | + ]; |
|
| 219 | 219 | |
| 220 | 220 | if (bigbluebuttonbn_is_bn_server()) { |
| 221 | 221 | if (bigbluebuttonbn_get_cfg_recordingready_enabled()) { |
@@ -389,10 +389,10 @@ discard block |
||
| 389 | 389 | if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) { |
| 390 | 390 | // Execute unpublish on imported recording link. |
| 391 | 391 | return array( |
| 392 | - 'status' => bigbluebuttonbn_publish_recording_imported( |
|
| 393 | - $params['id'], $bbbsession['bigbluebuttonbn']->id, false |
|
| 392 | + 'status' => bigbluebuttonbn_publish_recording_imported( |
|
| 393 | + $params['id'], $bbbsession['bigbluebuttonbn']->id, false |
|
| 394 | 394 | ) |
| 395 | - ); |
|
| 395 | + ); |
|
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | // As the recordingid was not identified as imported recording link, execute unpublish on a real recording. |
@@ -412,26 +412,26 @@ discard block |
||
| 412 | 412 | } |
| 413 | 413 | // Second: Execute the real unpublish. |
| 414 | 414 | return array( |
| 415 | - 'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false') |
|
| 416 | - ); |
|
| 415 | + 'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false') |
|
| 416 | + ); |
|
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | function bigbluebuttonbn_broker_recording_action_edit($bbbsession, $params, $recordings) { |
| 420 | 420 | if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) { |
| 421 | 421 | // Execute update on imported recording link. |
| 422 | 422 | return array( |
| 423 | - 'status' => bigbluebuttonbn_update_recording_imported( |
|
| 424 | - $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true) |
|
| 423 | + 'status' => bigbluebuttonbn_update_recording_imported( |
|
| 424 | + $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true) |
|
| 425 | 425 | ) |
| 426 | - ); |
|
| 426 | + ); |
|
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | // As the recordingid was not identified as imported recording link, execute update on a real recording. |
| 430 | 430 | // (No need to update imported links as the update only affects the actual recording). |
| 431 | 431 | // Execute update on actual recording. |
| 432 | 432 | return array( |
| 433 | - 'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta'])) |
|
| 434 | - ); |
|
| 433 | + 'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta'])) |
|
| 434 | + ); |
|
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | function bigbluebuttonbn_broker_recording_action_delete($bbbsession, $params, $recordings) { |
@@ -440,10 +440,10 @@ discard block |
||
| 440 | 440 | if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) { |
| 441 | 441 | // Execute delete on imported recording link. |
| 442 | 442 | return array( |
| 443 | - 'status' => bigbluebuttonbn_delete_recording_imported( |
|
| 444 | - $params['id'], $bbbsession['bigbluebuttonbn']->id |
|
| 443 | + 'status' => bigbluebuttonbn_delete_recording_imported( |
|
| 444 | + $params['id'], $bbbsession['bigbluebuttonbn']->id |
|
| 445 | 445 | ) |
| 446 | - ); |
|
| 446 | + ); |
|
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | // As the recordingid was not identified as imported recording link, execute delete on a real recording. |
@@ -458,8 +458,8 @@ discard block |
||
| 458 | 458 | } |
| 459 | 459 | // Execute the actual delete. |
| 460 | 460 | return array( |
| 461 | - 'status' => bigbluebuttonbn_delete_recordings($params['id']) |
|
| 462 | - ); |
|
| 461 | + 'status' => bigbluebuttonbn_delete_recordings($params['id']) |
|
| 462 | + ); |
|
| 463 | 463 | } |
| 464 | 464 | |
| 465 | 465 | function bigbluebuttonbn_broker_recording_ready($params, $bigbluebuttonbn) { |
@@ -600,10 +600,10 @@ discard block |
||
| 600 | 600 | $params['recording_import'] = ['id' => 'The recordingID must be specified.']; |
| 601 | 601 | $params['recording_ready'] = [ |
| 602 | 602 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
| 603 | - ]; |
|
| 603 | + ]; |
|
| 604 | 604 | $params['live_session_events'] = [ |
| 605 | 605 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
| 606 | - ]; |
|
| 606 | + ]; |
|
| 607 | 607 | return $params; |
| 608 | 608 | } |
| 609 | 609 | |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | |
| 197 | 197 | function bigbluebuttonbn_view_bbbsession_roles($context, $userid) { |
| 198 | 198 | if (isguestuser()) { |
| 199 | - return bigbluebuttonbn_get_guest_role(); |
|
| 199 | + return bigbluebuttonbn_get_guest_role(); |
|
| 200 | 200 | } |
| 201 | 201 | return bigbluebuttonbn_get_user_roles($context, $userid); |
| 202 | 202 | } |
@@ -277,11 +277,11 @@ discard block |
||
| 277 | 277 | |
| 278 | 278 | echo $OUTPUT->box_start('generalbox boxaligncenter'); |
| 279 | 279 | echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn'). |
| 280 | - '</div>'; |
|
| 280 | + '</div>'; |
|
| 281 | 281 | echo $OUTPUT->box_end(); |
| 282 | 282 | |
| 283 | 283 | groups_print_activity_menu( |
| 284 | - $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups); |
|
| 284 | + $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups); |
|
| 285 | 285 | echo '<br><br>'; |
| 286 | 286 | } |
| 287 | 287 | |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | // JavaScript variables for recordings. |
| 388 | 388 | $jsvars += array( |
| 389 | 389 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
| 390 | - ); |
|
| 390 | + ); |
|
| 391 | 391 | |
| 392 | 392 | // If there are meetings with recordings load the data to the table. |
| 393 | 393 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | $jsvars += array( |
| 400 | 400 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
| 401 | 401 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
| 402 | - ); |
|
| 402 | + ); |
|
| 403 | 403 | |
| 404 | 404 | // Render a YUI table. |
| 405 | 405 | return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table')); |
@@ -410,10 +410,10 @@ discard block |
||
| 410 | 410 | |
| 411 | 411 | $button = html_writer::tag('input', '', |
| 412 | 412 | array('type' => 'button', |
| 413 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 414 | - 'class' => 'btn btn-secondary', |
|
| 415 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 416 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 413 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 414 | + 'class' => 'btn btn-secondary', |
|
| 415 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 416 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 417 | 417 | $output = html_writer::start_tag('br'); |
| 418 | 418 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 419 | 419 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
| 432 | 432 | ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''. |
| 433 | 433 | ''.$OUTPUT->action_link($bbbsession['presentation']['url'], |
| 434 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 434 | + $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | return ''; |
@@ -85,9 +85,9 @@ discard block |
||
| 85 | 85 | // BigBlueButton API Calls. |
| 86 | 86 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) { |
| 87 | 87 | $data = ['meetingID' => $meetingid, |
| 88 | - 'fullName' => $username, |
|
| 89 | - 'password' => $pw, |
|
| 90 | - 'logoutURL' => $logouturl, |
|
| 88 | + 'fullName' => $username, |
|
| 89 | + 'password' => $pw, |
|
| 90 | + 'logoutURL' => $logouturl, |
|
| 91 | 91 | ]; |
| 92 | 92 | |
| 93 | 93 | if (!is_null($configtoken)) { |
@@ -202,24 +202,24 @@ discard block |
||
| 202 | 202 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
| 203 | 203 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 204 | 204 | bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 205 | - ); |
|
| 205 | + ); |
|
| 206 | 206 | |
| 207 | 207 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
| 208 | 208 | // Meeting info was returned. |
| 209 | 209 | return array('returncode' => $xml->returncode, |
| 210 | - 'meetingID' => $xml->meetingID, |
|
| 211 | - 'moderatorPW' => $xml->moderatorPW, |
|
| 212 | - 'attendeePW' => $xml->attendeePW, |
|
| 213 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 214 | - 'running' => $xml->running, |
|
| 215 | - 'recording' => $xml->recording, |
|
| 216 | - 'startTime' => $xml->startTime, |
|
| 217 | - 'endTime' => $xml->endTime, |
|
| 218 | - 'participantCount' => $xml->participantCount, |
|
| 219 | - 'moderatorCount' => $xml->moderatorCount, |
|
| 220 | - 'attendees' => $xml->attendees, |
|
| 221 | - 'metadata' => $xml->metadata, |
|
| 222 | - ); |
|
| 210 | + 'meetingID' => $xml->meetingID, |
|
| 211 | + 'moderatorPW' => $xml->moderatorPW, |
|
| 212 | + 'attendeePW' => $xml->attendeePW, |
|
| 213 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 214 | + 'running' => $xml->running, |
|
| 215 | + 'recording' => $xml->recording, |
|
| 216 | + 'startTime' => $xml->startTime, |
|
| 217 | + 'endTime' => $xml->endTime, |
|
| 218 | + 'participantCount' => $xml->participantCount, |
|
| 219 | + 'moderatorCount' => $xml->moderatorCount, |
|
| 220 | + 'attendees' => $xml->attendees, |
|
| 221 | + 'metadata' => $xml->metadata, |
|
| 222 | + ); |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | if ($xml) { |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | // Do getRecordings is executed using a method GET (supported by all versions of BBB). |
| 286 | 286 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 287 | 287 | bigbluebuttonbn_bigbluebutton_action_url('getRecordings', ['meetingID' => implode(',', $mids)]) |
| 288 | - ); |
|
| 288 | + ); |
|
| 289 | 289 | if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) { |
| 290 | 290 | // If there were meetings already created. |
| 291 | 291 | foreach ($xml->recordings->recording as $recording) { |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | function bigbluebuttonbn_get_default_config_xml() { |
| 347 | 347 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 348 | 348 | bigbluebuttonbn_bigbluebutton_action_url('getDefaultConfigXML') |
| 349 | - ); |
|
| 349 | + ); |
|
| 350 | 350 | |
| 351 | 351 | return $xml; |
| 352 | 352 | } |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | foreach ($ids as $id) { |
| 415 | 415 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 416 | 416 | bigbluebuttonbn_bigbluebutton_action_url('deleteRecordings', ['recordID' => $id]) |
| 417 | - ); |
|
| 417 | + ); |
|
| 418 | 418 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 419 | 419 | return false; |
| 420 | 420 | } |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | foreach ($ids as $id) { |
| 433 | 433 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 434 | 434 | bigbluebuttonbn_bigbluebutton_action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
| 435 | - ); |
|
| 435 | + ); |
|
| 436 | 436 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 437 | 437 | return false; |
| 438 | 438 | } |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | foreach ($ids as $id) { |
| 451 | 451 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 452 | 452 | bigbluebuttonbn_bigbluebutton_action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
| 453 | - ); |
|
| 453 | + ); |
|
| 454 | 454 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 455 | 455 | return false; |
| 456 | 456 | } |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
| 510 | 510 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 511 | 511 | bigbluebuttonbn_bigbluebutton_action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
| 512 | - ); |
|
| 512 | + ); |
|
| 513 | 513 | |
| 514 | 514 | if ($xml) { |
| 515 | 515 | // If the xml packet returned failure it displays the message to the user. |
@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | function bigbluebuttonbn_is_meeting_running($meetingid) { |
| 527 | 527 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 528 | 528 | bigbluebuttonbn_bigbluebutton_action_url('isMeetingRunning', ['meetingID' => $meetingid]) |
| 529 | - ); |
|
| 529 | + ); |
|
| 530 | 530 | |
| 531 | 531 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 532 | 532 | return ($xml->running == 'true'); |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | function bigbluebuttonbn_get_server_version() { |
| 539 | 539 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 540 | 540 | bigbluebuttonbn_bigbluebutton_action_url() |
| 541 | - ); |
|
| 541 | + ); |
|
| 542 | 542 | |
| 543 | 543 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 544 | 544 | return $xml->version; |
@@ -604,10 +604,10 @@ discard block |
||
| 604 | 604 | |
| 605 | 605 | $options = array(); |
| 606 | 606 | $options['CURLOPT_HTTPHEADER'] = array( |
| 607 | - 'Content-Type: '.$contenttype, |
|
| 608 | - 'Content-Length: '.strlen($data), |
|
| 609 | - 'Content-Language: en-US', |
|
| 610 | - ); |
|
| 607 | + 'Content-Type: '.$contenttype, |
|
| 608 | + 'Content-Length: '.strlen($data), |
|
| 609 | + 'Content-Language: en-US', |
|
| 610 | + ); |
|
| 611 | 611 | |
| 612 | 612 | return $c->post($url, $data, $options); |
| 613 | 613 | } |
@@ -666,7 +666,7 @@ discard block |
||
| 666 | 666 | $roles[$key] = array('id' => $value->id, 'name' => $value->localname); |
| 667 | 667 | } |
| 668 | 668 | return $roles; |
| 669 | - } |
|
| 669 | + } |
|
| 670 | 670 | |
| 671 | 671 | function bigbluebuttonbn_get_role($id) { |
| 672 | 672 | $roles = (array) role_get_names(); |
@@ -686,18 +686,18 @@ discard block |
||
| 686 | 686 | 'all' => array( |
| 687 | 687 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 688 | 688 | 'children' => [] |
| 689 | - ) |
|
| 690 | - ); |
|
| 689 | + ) |
|
| 690 | + ); |
|
| 691 | 691 | |
| 692 | 692 | $data['role'] = array( |
| 693 | 693 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 694 | 694 | 'children' => bigbluebuttonbn_get_roles_select($context) |
| 695 | - ); |
|
| 695 | + ); |
|
| 696 | 696 | |
| 697 | 697 | $data['user'] = array( |
| 698 | 698 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 699 | 699 | 'children' => bigbluebuttonbn_get_users_select($context) |
| 700 | - ); |
|
| 700 | + ); |
|
| 701 | 701 | |
| 702 | 702 | return $data; |
| 703 | 703 | } |
@@ -744,9 +744,9 @@ discard block |
||
| 744 | 744 | } |
| 745 | 745 | |
| 746 | 746 | $participantlistarray[] = array( |
| 747 | - 'selectiontype' => 'role', |
|
| 748 | - 'selectionid' => $moderatordefault, |
|
| 749 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 747 | + 'selectiontype' => 'role', |
|
| 748 | + 'selectionid' => $moderatordefault, |
|
| 749 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 750 | 750 | } |
| 751 | 751 | |
| 752 | 752 | return $participantlistarray; |
@@ -758,11 +758,11 @@ discard block |
||
| 758 | 758 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 759 | 759 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 760 | 760 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 761 | - ], |
|
| 761 | + ], |
|
| 762 | 762 | 'type_selected' => 'all', |
| 763 | 763 | 'options' => ['all' => '---------------'], |
| 764 | 764 | 'selected' => 'all', |
| 765 | - ]; |
|
| 765 | + ]; |
|
| 766 | 766 | } |
| 767 | 767 | |
| 768 | 768 | function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) { |
@@ -893,8 +893,8 @@ discard block |
||
| 893 | 893 | } |
| 894 | 894 | |
| 895 | 895 | $parray = array('url' => $purl, 'name' => $pname, |
| 896 | - 'icon' => $picon, |
|
| 897 | - 'mimetype_description' => $pmimetypedescrip); |
|
| 896 | + 'icon' => $picon, |
|
| 897 | + 'mimetype_description' => $pmimetypedescrip); |
|
| 898 | 898 | |
| 899 | 899 | return $parray; |
| 900 | 900 | } |
@@ -982,7 +982,7 @@ discard block |
||
| 982 | 982 | } |
| 983 | 983 | |
| 984 | 984 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
| 985 | - array($eventproperties)); |
|
| 985 | + array($eventproperties)); |
|
| 986 | 986 | $event->trigger(); |
| 987 | 987 | } |
| 988 | 988 | |
@@ -1030,7 +1030,7 @@ discard block |
||
| 1030 | 1030 | // Ping again and refresh the cache. |
| 1031 | 1031 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
| 1032 | 1032 | bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 1033 | - ); |
|
| 1033 | + ); |
|
| 1034 | 1034 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
| 1035 | 1035 | |
| 1036 | 1036 | return $meetinginfo; |
@@ -1168,7 +1168,7 @@ discard block |
||
| 1168 | 1168 | $actionbar .= bigbluebuttonbn_actionbar_render_button( |
| 1169 | 1169 | $recording, |
| 1170 | 1170 | bigbluebuttonbn_get_recording_data_row_actionbar_payload($recording, $tool) |
| 1171 | - ); |
|
| 1171 | + ); |
|
| 1172 | 1172 | } |
| 1173 | 1173 | |
| 1174 | 1174 | $head = html_writer::start_tag('div', array( |
@@ -1254,8 +1254,8 @@ discard block |
||
| 1254 | 1254 | |
| 1255 | 1255 | $id = 'playbacks-'.$recording['recordID']; |
| 1256 | 1256 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1257 | - 'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'], |
|
| 1258 | - 'title' => $title, $visibility => $visibility)); |
|
| 1257 | + 'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'], |
|
| 1258 | + 'title' => $title, $visibility => $visibility)); |
|
| 1259 | 1259 | foreach ($recording['playbacks'] as $playback) { |
| 1260 | 1260 | $onclick = 'M.mod_bigbluebuttonbn.recordings.recording_play(this);'; |
| 1261 | 1261 | $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=playback&bn='.$bigbluebuttonbnid. |
@@ -1303,7 +1303,7 @@ discard block |
||
| 1303 | 1303 | $payload['source'] = 'meta_contextactivitydescription'; |
| 1304 | 1304 | $metadescription = trim($recording[$payload['source']]); |
| 1305 | 1305 | if (!empty($metadescription)) { |
| 1306 | - return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload); |
|
| 1306 | + return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload); |
|
| 1307 | 1307 | } |
| 1308 | 1308 | } |
| 1309 | 1309 | |
@@ -1358,7 +1358,7 @@ discard block |
||
| 1358 | 1358 | 'onclick' => $onclick, |
| 1359 | 1359 | 'data-action' => $data['action'], |
| 1360 | 1360 | 'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID']) |
| 1361 | - ); |
|
| 1361 | + ); |
|
| 1362 | 1362 | return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false); |
| 1363 | 1363 | } |
| 1364 | 1364 | |
@@ -1959,23 +1959,23 @@ discard block |
||
| 1959 | 1959 | */ |
| 1960 | 1960 | function bigbluebuttonbn_get_cfg_options() { |
| 1961 | 1961 | return [ |
| 1962 | - 'version_major' => bigbluebuttonbn_get_moodle_version_major(), |
|
| 1963 | - 'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(), |
|
| 1964 | - 'recording_default' => bigbluebuttonbn_get_cfg_recording_default(), |
|
| 1965 | - 'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(), |
|
| 1966 | - 'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(), |
|
| 1967 | - 'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(), |
|
| 1968 | - 'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(), |
|
| 1969 | - 'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(), |
|
| 1970 | - 'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(), |
|
| 1971 | - 'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(), |
|
| 1972 | - 'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(), |
|
| 1973 | - 'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(), |
|
| 1974 | - 'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(), |
|
| 1975 | - 'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(), |
|
| 1976 | - 'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(), |
|
| 1977 | - 'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(), |
|
| 1978 | - 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 1962 | + 'version_major' => bigbluebuttonbn_get_moodle_version_major(), |
|
| 1963 | + 'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(), |
|
| 1964 | + 'recording_default' => bigbluebuttonbn_get_cfg_recording_default(), |
|
| 1965 | + 'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(), |
|
| 1966 | + 'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(), |
|
| 1967 | + 'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(), |
|
| 1968 | + 'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(), |
|
| 1969 | + 'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(), |
|
| 1970 | + 'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(), |
|
| 1971 | + 'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(), |
|
| 1972 | + 'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(), |
|
| 1973 | + 'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(), |
|
| 1974 | + 'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(), |
|
| 1975 | + 'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(), |
|
| 1976 | + 'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(), |
|
| 1977 | + 'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(), |
|
| 1978 | + 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 1979 | 1979 | ]; |
| 1980 | 1980 | } |
| 1981 | 1981 | |
@@ -2176,8 +2176,8 @@ discard block |
||
| 2176 | 2176 | $activitytime = ''; |
| 2177 | 2177 | if ($time) { |
| 2178 | 2178 | $activitytime = calendar_day_representation($time).' '. |
| 2179 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2180 | - calendar_time_representation($time); |
|
| 2179 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2180 | + calendar_time_representation($time); |
|
| 2181 | 2181 | } |
| 2182 | 2182 | |
| 2183 | 2183 | return $activitytime; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | 'alt' => get_string('delete'), |
| 112 | 112 | 'title' => get_string('delete'), |
| 113 | 113 | 'src' => $jsvars['pix_icon_delete'] |
| 114 | - ); |
|
| 114 | + ); |
|
| 115 | 115 | |
| 116 | 116 | $jsvars['pix_icon_delete'] = html_writer::tag('img', $options); |
| 117 | 117 | } |
@@ -211,8 +211,8 @@ discard block |
||
| 211 | 211 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 212 | 212 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
| 213 | 213 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
| 214 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 215 | - ); |
|
| 214 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 215 | + ); |
|
| 216 | 216 | } else { |
| 217 | 217 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 218 | 218 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | $field['description_key'], $cfg['recordings_html_default']); |
| 255 | 255 | |
| 256 | 256 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted_activities', 'data_type' => PARAM_INT, |
| 257 | - 'description_key' => null]; |
|
| 257 | + 'description_key' => null]; |
|
| 258 | 258 | if ($cfg['recordings_deleted_activities_editable']) { |
| 259 | 259 | $field['type'] = 'checkbox'; |
| 260 | 260 | $field['description_key'] = 'mod_form_field_recordings_deleted_activities'; |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type', |
| 310 | 310 | $participantselection['type_selected'], array(), |
| 311 | 311 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 312 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
| 312 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
| 313 | 313 | html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 314 | 314 | $participantselection['selected'], array(), |
| 315 | 315 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).' '. |