@@ -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); |
@@ -272,11 +272,11 @@ discard block |
||
| 272 | 272 | |
| 273 | 273 | echo $OUTPUT->box_start('generalbox boxaligncenter'); |
| 274 | 274 | echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn'). |
| 275 | - '</div>'; |
|
| 275 | + '</div>'; |
|
| 276 | 276 | echo $OUTPUT->box_end(); |
| 277 | 277 | |
| 278 | 278 | groups_print_activity_menu( |
| 279 | - $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups); |
|
| 279 | + $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups); |
|
| 280 | 280 | echo '<br><br>'; |
| 281 | 281 | } |
| 282 | 282 | |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | // JavaScript variables for recordings. |
| 389 | 389 | $jsvars += array( |
| 390 | 390 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
| 391 | - ); |
|
| 391 | + ); |
|
| 392 | 392 | |
| 393 | 393 | // If there are meetings with recordings load the data to the table. |
| 394 | 394 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | $jsvars += array( |
| 401 | 401 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
| 402 | 402 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
| 403 | - ); |
|
| 403 | + ); |
|
| 404 | 404 | |
| 405 | 405 | // Render a YUI table. |
| 406 | 406 | return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table')); |
@@ -411,10 +411,10 @@ discard block |
||
| 411 | 411 | |
| 412 | 412 | $button = html_writer::tag('input', '', |
| 413 | 413 | array('type' => 'button', |
| 414 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 415 | - 'class' => 'btn btn-secondary', |
|
| 416 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 417 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 414 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 415 | + 'class' => 'btn btn-secondary', |
|
| 416 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 417 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 418 | 418 | $output = html_writer::start_tag('br'); |
| 419 | 419 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 420 | 420 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
| 433 | 433 | ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''. |
| 434 | 434 | ''.$OUTPUT->action_link($bbbsession['presentation']['url'], |
| 435 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 435 | + $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 436 | 436 | } |
| 437 | 437 | |
| 438 | 438 | return ''; |
@@ -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'); |
@@ -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')).' '. |
@@ -413,10 +413,10 @@ discard block |
||
| 413 | 413 | if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) { |
| 414 | 414 | // Execute unpublish or protect on imported recording link. |
| 415 | 415 | return array( |
| 416 | - 'status' => bigbluebuttonbn_publish_recording_imported( |
|
| 417 | - $params['id'], $bbbsession['bigbluebuttonbn']->id, false |
|
| 416 | + 'status' => bigbluebuttonbn_publish_recording_imported( |
|
| 417 | + $params['id'], $bbbsession['bigbluebuttonbn']->id, false |
|
| 418 | 418 | ) |
| 419 | - ); |
|
| 419 | + ); |
|
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | // As the recordingid was not identified as imported recording link, execute unpublish on a real recording. |
@@ -436,26 +436,26 @@ discard block |
||
| 436 | 436 | } |
| 437 | 437 | // Second: Execute the real unpublish. |
| 438 | 438 | return array( |
| 439 | - 'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false') |
|
| 440 | - ); |
|
| 439 | + 'status' => bigbluebuttonbn_publish_recordings($params['id'], 'false') |
|
| 440 | + ); |
|
| 441 | 441 | } |
| 442 | 442 | |
| 443 | 443 | function bigbluebuttonbn_broker_recording_action_edit($bbbsession, $params, $recordings) { |
| 444 | 444 | if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) { |
| 445 | 445 | // Execute update on imported recording link. |
| 446 | 446 | return array( |
| 447 | - 'status' => bigbluebuttonbn_update_recording_imported( |
|
| 448 | - $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true) |
|
| 447 | + 'status' => bigbluebuttonbn_update_recording_imported( |
|
| 448 | + $params['id'], $bbbsession['bigbluebuttonbn']->id, json_decode($params['meta'], true) |
|
| 449 | 449 | ) |
| 450 | - ); |
|
| 450 | + ); |
|
| 451 | 451 | } |
| 452 | 452 | |
| 453 | 453 | // As the recordingid was not identified as imported recording link, execute update on a real recording. |
| 454 | 454 | // (No need to update imported links as the update only affects the actual recording). |
| 455 | 455 | // Execute update on actual recording. |
| 456 | 456 | return array( |
| 457 | - 'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta'])) |
|
| 458 | - ); |
|
| 457 | + 'status' => bigbluebuttonbn_update_recordings($params['id'], json_decode($params['meta'])) |
|
| 458 | + ); |
|
| 459 | 459 | } |
| 460 | 460 | |
| 461 | 461 | function bigbluebuttonbn_broker_recording_action_delete($bbbsession, $params, $recordings) { |
@@ -464,10 +464,10 @@ discard block |
||
| 464 | 464 | if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) { |
| 465 | 465 | // Execute delete on imported recording link. |
| 466 | 466 | return array( |
| 467 | - 'status' => bigbluebuttonbn_delete_recording_imported( |
|
| 468 | - $params['id'], $bbbsession['bigbluebuttonbn']->id |
|
| 467 | + 'status' => bigbluebuttonbn_delete_recording_imported( |
|
| 468 | + $params['id'], $bbbsession['bigbluebuttonbn']->id |
|
| 469 | 469 | ) |
| 470 | - ); |
|
| 470 | + ); |
|
| 471 | 471 | } |
| 472 | 472 | |
| 473 | 473 | // As the recordingid was not identified as imported recording link, execute delete on a real recording. |
@@ -482,8 +482,8 @@ discard block |
||
| 482 | 482 | } |
| 483 | 483 | // Execute the actual delete. |
| 484 | 484 | return array( |
| 485 | - 'status' => bigbluebuttonbn_delete_recordings($params['id']) |
|
| 486 | - ); |
|
| 485 | + 'status' => bigbluebuttonbn_delete_recordings($params['id']) |
|
| 486 | + ); |
|
| 487 | 487 | } |
| 488 | 488 | |
| 489 | 489 | function bigbluebuttonbn_broker_recording_ready($params, $bigbluebuttonbn) { |
@@ -624,10 +624,10 @@ discard block |
||
| 624 | 624 | $params['recording_import'] = ['id' => 'The recordingID must be specified.']; |
| 625 | 625 | $params['recording_ready'] = [ |
| 626 | 626 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
| 627 | - ]; |
|
| 627 | + ]; |
|
| 628 | 628 | $params['live_session_events'] = [ |
| 629 | 629 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
| 630 | - ]; |
|
| 630 | + ]; |
|
| 631 | 631 | return $params; |
| 632 | 632 | } |
| 633 | 633 | |
@@ -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)) { |
@@ -188,24 +188,24 @@ discard block |
||
| 188 | 188 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
| 189 | 189 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 190 | 190 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 191 | - ); |
|
| 191 | + ); |
|
| 192 | 192 | |
| 193 | 193 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
| 194 | 194 | // Meeting info was returned. |
| 195 | 195 | return array('returncode' => $xml->returncode, |
| 196 | - 'meetingID' => $xml->meetingID, |
|
| 197 | - 'moderatorPW' => $xml->moderatorPW, |
|
| 198 | - 'attendeePW' => $xml->attendeePW, |
|
| 199 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 200 | - 'running' => $xml->running, |
|
| 201 | - 'recording' => $xml->recording, |
|
| 202 | - 'startTime' => $xml->startTime, |
|
| 203 | - 'endTime' => $xml->endTime, |
|
| 204 | - 'participantCount' => $xml->participantCount, |
|
| 205 | - 'moderatorCount' => $xml->moderatorCount, |
|
| 206 | - 'attendees' => $xml->attendees, |
|
| 207 | - 'metadata' => $xml->metadata, |
|
| 208 | - ); |
|
| 196 | + 'meetingID' => $xml->meetingID, |
|
| 197 | + 'moderatorPW' => $xml->moderatorPW, |
|
| 198 | + 'attendeePW' => $xml->attendeePW, |
|
| 199 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 200 | + 'running' => $xml->running, |
|
| 201 | + 'recording' => $xml->recording, |
|
| 202 | + 'startTime' => $xml->startTime, |
|
| 203 | + 'endTime' => $xml->endTime, |
|
| 204 | + 'participantCount' => $xml->participantCount, |
|
| 205 | + 'moderatorCount' => $xml->moderatorCount, |
|
| 206 | + 'attendees' => $xml->attendees, |
|
| 207 | + 'metadata' => $xml->metadata, |
|
| 208 | + ); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | if ($xml) { |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | // Do getRecordings is executed using a method GET (supported by all versions of BBB). |
| 270 | 270 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 271 | 271 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getRecordings', ['meetingID' => implode(',', $mids)]) |
| 272 | - ); |
|
| 272 | + ); |
|
| 273 | 273 | if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) { |
| 274 | 274 | // If there were meetings already created. |
| 275 | 275 | foreach ($xml->recordings->recording as $recording) { |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | function bigbluebuttonbn_get_default_config_xml() { |
| 333 | 333 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 334 | 334 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
| 335 | - ); |
|
| 335 | + ); |
|
| 336 | 336 | |
| 337 | 337 | return $xml; |
| 338 | 338 | } |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | foreach ($ids as $id) { |
| 407 | 407 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 408 | 408 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
| 409 | - ); |
|
| 409 | + ); |
|
| 410 | 410 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 411 | 411 | return false; |
| 412 | 412 | } |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | foreach ($ids as $id) { |
| 425 | 425 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 426 | 426 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
| 427 | - ); |
|
| 427 | + ); |
|
| 428 | 428 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 429 | 429 | return false; |
| 430 | 430 | } |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | foreach ($ids as $id) { |
| 443 | 443 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 444 | 444 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
| 445 | - ); |
|
| 445 | + ); |
|
| 446 | 446 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 447 | 447 | return false; |
| 448 | 448 | } |
@@ -501,7 +501,7 @@ discard block |
||
| 501 | 501 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
| 502 | 502 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 503 | 503 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
| 504 | - ); |
|
| 504 | + ); |
|
| 505 | 505 | |
| 506 | 506 | if ($xml) { |
| 507 | 507 | // If the xml packet returned failure it displays the message to the user. |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | function bigbluebuttonbn_is_meeting_running($meetingid) { |
| 519 | 519 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 520 | 520 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('isMeetingRunning', ['meetingID' => $meetingid]) |
| 521 | - ); |
|
| 521 | + ); |
|
| 522 | 522 | |
| 523 | 523 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 524 | 524 | return ($xml->running == 'true'); |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | function bigbluebuttonbn_get_server_version() { |
| 531 | 531 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 532 | 532 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
| 533 | - ); |
|
| 533 | + ); |
|
| 534 | 534 | |
| 535 | 535 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 536 | 536 | return $xml->version; |
@@ -591,10 +591,10 @@ discard block |
||
| 591 | 591 | |
| 592 | 592 | $options = array(); |
| 593 | 593 | $options['CURLOPT_HTTPHEADER'] = array( |
| 594 | - 'Content-Type: '.$contenttype, |
|
| 595 | - 'Content-Length: '.strlen($data), |
|
| 596 | - 'Content-Language: en-US', |
|
| 597 | - ); |
|
| 594 | + 'Content-Type: '.$contenttype, |
|
| 595 | + 'Content-Length: '.strlen($data), |
|
| 596 | + 'Content-Language: en-US', |
|
| 597 | + ); |
|
| 598 | 598 | |
| 599 | 599 | return $c->post($url, $data, $options); |
| 600 | 600 | } |
@@ -673,18 +673,18 @@ discard block |
||
| 673 | 673 | 'all' => array( |
| 674 | 674 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 675 | 675 | 'children' => [] |
| 676 | - ) |
|
| 677 | - ); |
|
| 676 | + ) |
|
| 677 | + ); |
|
| 678 | 678 | |
| 679 | 679 | $data['role'] = array( |
| 680 | 680 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 681 | 681 | 'children' => bigbluebuttonbn_get_roles_select($context) |
| 682 | - ); |
|
| 682 | + ); |
|
| 683 | 683 | |
| 684 | 684 | $data['user'] = array( |
| 685 | 685 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 686 | 686 | 'children' => bigbluebuttonbn_get_users_select($context) |
| 687 | - ); |
|
| 687 | + ); |
|
| 688 | 688 | |
| 689 | 689 | return $data; |
| 690 | 690 | } |
@@ -731,9 +731,9 @@ discard block |
||
| 731 | 731 | } |
| 732 | 732 | |
| 733 | 733 | $participantlistarray[] = array( |
| 734 | - 'selectiontype' => 'role', |
|
| 735 | - 'selectionid' => $moderatordefault, |
|
| 736 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 734 | + 'selectiontype' => 'role', |
|
| 735 | + 'selectionid' => $moderatordefault, |
|
| 736 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 737 | 737 | } |
| 738 | 738 | |
| 739 | 739 | return $participantlistarray; |
@@ -745,11 +745,11 @@ discard block |
||
| 745 | 745 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 746 | 746 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 747 | 747 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 748 | - ], |
|
| 748 | + ], |
|
| 749 | 749 | 'type_selected' => 'all', |
| 750 | 750 | 'options' => ['all' => '---------------'], |
| 751 | 751 | 'selected' => 'all', |
| 752 | - ]; |
|
| 752 | + ]; |
|
| 753 | 753 | } |
| 754 | 754 | |
| 755 | 755 | function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) { |
@@ -880,8 +880,8 @@ discard block |
||
| 880 | 880 | } |
| 881 | 881 | |
| 882 | 882 | $parray = array('url' => $purl, 'name' => $pname, |
| 883 | - 'icon' => $picon, |
|
| 884 | - 'mimetype_description' => $pmimetypedescrip); |
|
| 883 | + 'icon' => $picon, |
|
| 884 | + 'mimetype_description' => $pmimetypedescrip); |
|
| 885 | 885 | |
| 886 | 886 | return $parray; |
| 887 | 887 | } |
@@ -961,7 +961,7 @@ discard block |
||
| 961 | 961 | } |
| 962 | 962 | |
| 963 | 963 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
| 964 | - array($eventproperties)); |
|
| 964 | + array($eventproperties)); |
|
| 965 | 965 | $event->trigger(); |
| 966 | 966 | } |
| 967 | 967 | |
@@ -1009,7 +1009,7 @@ discard block |
||
| 1009 | 1009 | // Ping again and refresh the cache. |
| 1010 | 1010 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
| 1011 | 1011 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 1012 | - ); |
|
| 1012 | + ); |
|
| 1013 | 1013 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
| 1014 | 1014 | |
| 1015 | 1015 | return $meetinginfo; |
@@ -1150,7 +1150,7 @@ discard block |
||
| 1150 | 1150 | $actionbar .= bigbluebuttonbn_actionbar_render_button( |
| 1151 | 1151 | $recording, |
| 1152 | 1152 | bigbluebuttonbn_get_recording_data_row_actionbar_payload($recording, $tool) |
| 1153 | - ); |
|
| 1153 | + ); |
|
| 1154 | 1154 | } |
| 1155 | 1155 | $head = html_writer::start_tag('div', array( |
| 1156 | 1156 | 'id' => 'recording-actionbar-' . $recording['recordID'], |
@@ -1233,8 +1233,8 @@ discard block |
||
| 1233 | 1233 | |
| 1234 | 1234 | $id = 'playbacks-'.$recording['recordID']; |
| 1235 | 1235 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1236 | - 'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'], |
|
| 1237 | - 'title' => $title, $visibility => $visibility)); |
|
| 1236 | + 'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'], |
|
| 1237 | + 'title' => $title, $visibility => $visibility)); |
|
| 1238 | 1238 | foreach ($recording['playbacks'] as $playback) { |
| 1239 | 1239 | $onclick = 'M.mod_bigbluebuttonbn.recordings.recording_play(this);'; |
| 1240 | 1240 | $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=playback&bn='.$bigbluebuttonbnid. |
@@ -1340,7 +1340,7 @@ discard block |
||
| 1340 | 1340 | 'onclick' => $onclick, |
| 1341 | 1341 | 'data-action' => $data['action'], |
| 1342 | 1342 | 'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID']) |
| 1343 | - ); |
|
| 1343 | + ); |
|
| 1344 | 1344 | return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false); |
| 1345 | 1345 | } |
| 1346 | 1346 | |
@@ -1679,8 +1679,8 @@ discard block |
||
| 1679 | 1679 | $activitytime = ''; |
| 1680 | 1680 | if ($time) { |
| 1681 | 1681 | $activitytime = calendar_day_representation($time).' '. |
| 1682 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 1683 | - calendar_time_representation($time); |
|
| 1682 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 1683 | + calendar_time_representation($time); |
|
| 1684 | 1684 | } |
| 1685 | 1685 | |
| 1686 | 1686 | return $activitytime; |
@@ -118,28 +118,28 @@ |
||
| 118 | 118 | isset($CFG->bigbluebuttonbn['recording_editable'])); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - /** |
|
| 122 | - * @return array |
|
| 123 | - */ |
|
| 121 | + /** |
|
| 122 | + * @return array |
|
| 123 | + */ |
|
| 124 | 124 | public static function get_options() { |
| 125 | 125 | return [ |
| 126 | - 'version_major' => self::get_moodle_version_major(), |
|
| 127 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 128 | - 'recording_default' => self::get('recording_default'), |
|
| 129 | - 'recording_editable' => self::get('recording_editable'), |
|
| 130 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 131 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 132 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 133 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 134 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 135 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 136 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 137 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 138 | - 'recordings_deleted_activities_default' => self::get('recordings_deleted_activities_default'), |
|
| 139 | - 'recordings_deleted_activities_editable' => self::get('recordings_deleted_activities_editable'), |
|
| 140 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 141 | - 'instance_type_enabled' => self::recordings_enabled(), |
|
| 142 | - 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 143 | - ]; |
|
| 126 | + 'version_major' => self::get_moodle_version_major(), |
|
| 127 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 128 | + 'recording_default' => self::get('recording_default'), |
|
| 129 | + 'recording_editable' => self::get('recording_editable'), |
|
| 130 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 131 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 132 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 133 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 134 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 135 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 136 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 137 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 138 | + 'recordings_deleted_activities_default' => self::get('recordings_deleted_activities_default'), |
|
| 139 | + 'recordings_deleted_activities_editable' => self::get('recordings_deleted_activities_editable'), |
|
| 140 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 141 | + 'instance_type_enabled' => self::recordings_enabled(), |
|
| 142 | + 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 143 | + ]; |
|
| 144 | 144 | } |
| 145 | 145 | } |