@@ -41,8 +41,8 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init() { |
| 43 | 43 | parent::init('r', self::LEVEL_PARTICIPATING); |
| 44 | - $this->description = "The user with id '##userid' has left a bigbluebutton meeting for ". |
|
| 45 | - "the bigbluebuttonbn activity with id '##objectid' for the course id ". |
|
| 44 | + $this->description = "The user with id '##userid' has left a bigbluebutton meeting for " . |
|
| 45 | + "the bigbluebuttonbn activity with id '##objectid' for the course id " . |
|
| 46 | 46 | "'##courseid'."; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init() { |
| 43 | 43 | parent::init('r', self::LEVEL_OTHER); |
| 44 | - $this->description = "The user with id '##userid' has deleted a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has deleted a recording with id " . |
|
| 45 | 45 | "'##other' from the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init() { |
| 43 | 43 | parent::init('r', self::LEVEL_OTHER); |
| 44 | - $this->description = "The user with id '##userid' has published a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has published a recording with id " . |
|
| 45 | 45 | "'##other' in the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | * @author Fred Dixon (ffdixon [at] blindsidenetworks [dt] com) |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | -require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); |
|
| 28 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
| 27 | +require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); |
|
| 28 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
| 29 | 29 | |
| 30 | 30 | $id = required_param('id', PARAM_INT); |
| 31 | 31 | $bn = optional_param('bn', 0, PARAM_INT); |
@@ -57,19 +57,19 @@ discard block |
||
| 57 | 57 | if (is_null($serverversion)) { |
| 58 | 58 | if ($bbbsession['administrator']) { |
| 59 | 59 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
| 60 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 60 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 61 | 61 | exit; |
| 62 | 62 | } |
| 63 | 63 | if ($bbbsession['moderator']) { |
| 64 | 64 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
| 65 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
| 65 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
| 66 | 66 | exit; |
| 67 | 67 | } |
| 68 | 68 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
| 69 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
| 69 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
| 70 | 70 | exit; |
| 71 | 71 | } |
| 72 | -$bbbsession['serverversion'] = (string) $serverversion; |
|
| 72 | +$bbbsession['serverversion'] = (string)$serverversion; |
|
| 73 | 73 | |
| 74 | 74 | // Mark viewed by user (if required). |
| 75 | 75 | $completion = new completion_info($course); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | // Print the page header. |
| 79 | 79 | $PAGE->set_context($context); |
| 80 | -$PAGE->set_url($CFG->wwwroot.'/mod/bigbluebuttonbn/view.php', array('id' => $cm->id)); |
|
| 80 | +$PAGE->set_url($CFG->wwwroot . '/mod/bigbluebuttonbn/view.php', array('id' => $cm->id)); |
|
| 81 | 81 | $PAGE->set_title(format_string($bigbluebuttonbn->name)); |
| 82 | 82 | $PAGE->set_cacheable(false); |
| 83 | 83 | $PAGE->set_heading($course->fullname); |
@@ -87,11 +87,11 @@ discard block |
||
| 87 | 87 | if (!has_capability('moodle/category:manage', $context) && !has_capability('mod/bigbluebuttonbn:join', $context)) { |
| 88 | 88 | echo $OUTPUT->header(); |
| 89 | 89 | if (isguestuser()) { |
| 90 | - echo $OUTPUT->confirm('<p>'.get_string('view_noguests', 'bigbluebuttonbn').'</p>'.get_string('liketologin'), |
|
| 91 | - get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id); |
|
| 90 | + echo $OUTPUT->confirm('<p>' . get_string('view_noguests', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'), |
|
| 91 | + get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id); |
|
| 92 | 92 | } else { |
| 93 | - echo $OUTPUT->confirm('<p>'.get_string('view_nojoin', 'bigbluebuttonbn').'</p>'.get_string('liketologin'), |
|
| 94 | - get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id); |
|
| 93 | + echo $OUTPUT->confirm('<p>' . get_string('view_nojoin', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'), |
|
| 94 | + get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id); |
|
| 95 | 95 | } |
| 96 | 96 | echo $OUTPUT->footer(); |
| 97 | 97 | exit; |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | // Operation URLs. |
| 101 | 101 | $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
| 102 | -$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id . |
|
| 102 | +$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $id . |
|
| 103 | 103 | '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
| 104 | 104 | $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . |
| 105 | 105 | 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | echo $OUTPUT->footer(); |
| 120 | 120 | |
| 121 | 121 | // Shows version as a comment. |
| 122 | -echo '<!-- '.$bbbsession['originTag'].' -->'."\n"; |
|
| 122 | +echo '<!-- ' . $bbbsession['originTag'] . ' -->' . "\n"; |
|
| 123 | 123 | |
| 124 | 124 | // Initialize session variable used across views. |
| 125 | 125 | $SESSION->bigbluebuttonbn_bbbsession = $bbbsession; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $bbbsession['modPW'] = $bbbsession['bigbluebuttonbn']->moderatorpass; |
| 149 | 149 | $bbbsession['viewerPW'] = $bbbsession['bigbluebuttonbn']->viewerpass; |
| 150 | 150 | // Database info related to the activity. |
| 151 | - $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'. |
|
| 151 | + $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' . |
|
| 152 | 152 | $bbbsession['bigbluebuttonbn']->id; |
| 153 | 153 | $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name; |
| 154 | 154 | $bbbsession['meetingdescription'] = $bbbsession['bigbluebuttonbn']->intro; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | $bbbsession['welcome'] = get_string('mod_form_field_welcome_default', 'bigbluebuttonbn'); |
| 169 | 169 | } |
| 170 | 170 | if ($bbbsession['bigbluebuttonbn']->record) { |
| 171 | - $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 171 | + $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 172 | 172 | } |
| 173 | 173 | $bbbsession['openingtime'] = $bbbsession['bigbluebuttonbn']->openingtime; |
| 174 | 174 | $bbbsession['closingtime'] = $bbbsession['bigbluebuttonbn']->closingtime; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | $bbbsession['originServerName'] = $parsedurl['host']; |
| 182 | 182 | $bbbsession['originServerUrl'] = $CFG->wwwroot; |
| 183 | 183 | $bbbsession['originServerCommonName'] = ''; |
| 184 | - $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')'; |
|
| 184 | + $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')'; |
|
| 185 | 185 | $bbbsession['bnserver'] = bigbluebuttonbn_is_bn_server(); |
| 186 | 186 | } |
| 187 | 187 | |
@@ -236,8 +236,8 @@ discard block |
||
| 236 | 236 | $groupname = groups_get_group_name($bbbsession['group']); |
| 237 | 237 | } |
| 238 | 238 | // Assign group default values. |
| 239 | - $bbbsession['meetingid'] .= '['.$bbbsession['group'].']'; |
|
| 240 | - $bbbsession['meetingname'] .= ' ('.$groupname.')'; |
|
| 239 | + $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']'; |
|
| 240 | + $bbbsession['meetingname'] .= ' (' . $groupname . ')'; |
|
| 241 | 241 | if (count($groups) == 0) { |
| 242 | 242 | // Only the All participants group exists. |
| 243 | 243 | bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_notenrolled_warning', 'bigbluebuttonbn'), 'info'); |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | if (has_capability('moodle/site:accessallgroups', $context)) { |
| 248 | 248 | bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_selection_warning', 'bigbluebuttonbn')); |
| 249 | 249 | } |
| 250 | - $urltoroot = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id; |
|
| 250 | + $urltoroot = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
|
| 251 | 251 | groups_print_activity_menu($bbbsession['cm'], $urltoroot); |
| 252 | 252 | echo '<br><br>'; |
| 253 | 253 | } |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | $recordingsdisabled = get_string('view_message_recordings_disabled', 'bigbluebuttonbn'); |
| 315 | 315 | $output .= bigbluebuttonbn_render_warning($recordingsdisabled, 'danger'); |
| 316 | 316 | } |
| 317 | - echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br'); |
|
| 317 | + echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br'); |
|
| 318 | 318 | $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars)); |
| 319 | 319 | } |
| 320 | 320 | |
@@ -383,12 +383,12 @@ discard block |
||
| 383 | 383 | // JavaScript variables for room. |
| 384 | 384 | $openingtime = ''; |
| 385 | 385 | if ($bbbsession['openingtime']) { |
| 386 | - $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '. |
|
| 386 | + $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' . |
|
| 387 | 387 | userdate($bbbsession['openingtime']); |
| 388 | 388 | } |
| 389 | 389 | $closingtime = ''; |
| 390 | 390 | if ($bbbsession['closingtime']) { |
| 391 | - $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '. |
|
| 391 | + $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' . |
|
| 392 | 392 | userdate($bbbsession['closingtime']); |
| 393 | 393 | } |
| 394 | 394 | $jsvars += array( |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | $output .= $OUTPUT->box_end(); |
| 406 | 406 | // Action button box. |
| 407 | 407 | $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box'); |
| 408 | - $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>'."\n"; |
|
| 408 | + $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>' . "\n"; |
|
| 409 | 409 | $output .= $OUTPUT->box_end(); |
| 410 | 410 | if ($activity == 'ended') { |
| 411 | 411 | $output .= bigbluebuttonbn_view_ended($bbbsession); |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | // If there are meetings with recordings load the data to the table. |
| 455 | 455 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
| 456 | 456 | // Render a plain html table. |
| 457 | - return bigbluebuttonbn_output_recording_table($bbbsession, $recordings)."\n"; |
|
| 457 | + return bigbluebuttonbn_output_recording_table($bbbsession, $recordings) . "\n"; |
|
| 458 | 458 | } |
| 459 | 459 | // JavaScript variables for recordings with YUI. |
| 460 | 460 | $jsvars += array( |
@@ -482,8 +482,8 @@ discard block |
||
| 482 | 482 | array('type' => 'button', |
| 483 | 483 | 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
| 484 | 484 | 'class' => 'btn btn-secondary', |
| 485 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 486 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 485 | + 'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' . |
|
| 486 | + $bbbsession['bigbluebuttonbn']->id . '\'')); |
|
| 487 | 487 | $output = html_writer::empty_tag('br'); |
| 488 | 488 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 489 | 489 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -502,10 +502,10 @@ discard block |
||
| 502 | 502 | if (!is_null($bbbsession['presentation']['url'])) { |
| 503 | 503 | $attributes = array('title' => $bbbsession['presentation']['name']); |
| 504 | 504 | $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']); |
| 505 | - return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
|
| 506 | - $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false). |
|
| 505 | + return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' . |
|
| 506 | + $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) . |
|
| 507 | 507 | $OUTPUT->action_link($bbbsession['presentation']['url'], |
| 508 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 508 | + $bbbsession['presentation']['name'], null, $attributes) . '<br><br>'; |
|
| 509 | 509 | } |
| 510 | 510 | return ''; |
| 511 | 511 | } |
@@ -434,12 +434,12 @@ discard block |
||
| 434 | 434 | $recordings = bigbluebuttonbn_get_recordings( |
| 435 | 435 | $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom'], |
| 436 | 436 | $bbbsession['bigbluebuttonbn']->recordings_deleted |
| 437 | - ); |
|
| 437 | + ); |
|
| 438 | 438 | if ($enabledfeatures['importrecordings']) { |
| 439 | 439 | // Get recording links. |
| 440 | 440 | $recordingsimported = bigbluebuttonbn_get_recordings_imported_array( |
| 441 | 441 | $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom'] |
| 442 | - ); |
|
| 442 | + ); |
|
| 443 | 443 | /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent |
| 444 | 444 | * recordings are not included. */ |
| 445 | 445 | if ($bbbsession['bigbluebuttonbn']->recordings_imported) { |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | // JavaScript variables for recordings. |
| 458 | 458 | $jsvars += array( |
| 459 | 459 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
| 460 | - ); |
|
| 460 | + ); |
|
| 461 | 461 | // If there are meetings with recordings load the data to the table. |
| 462 | 462 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
| 463 | 463 | // Render a plain html table. |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | $jsvars += array( |
| 468 | 468 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
| 469 | 469 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
| 470 | - ); |
|
| 470 | + ); |
|
| 471 | 471 | // Render a YUI table. |
| 472 | 472 | return html_writer::div('', '', array('id' => 'bigbluebuttonbn_recordings_table')); |
| 473 | 473 | } |
@@ -487,10 +487,10 @@ discard block |
||
| 487 | 487 | } |
| 488 | 488 | $button = html_writer::tag('input', '', |
| 489 | 489 | array('type' => 'button', |
| 490 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 491 | - 'class' => 'btn btn-secondary', |
|
| 492 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 493 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 490 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 491 | + 'class' => 'btn btn-secondary', |
|
| 492 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 493 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 494 | 494 | $output = html_writer::empty_tag('br'); |
| 495 | 495 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 496 | 496 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -569,5 +569,5 @@ discard block |
||
| 569 | 569 | (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_href'), |
| 570 | 570 | (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_text'), |
| 571 | 571 | (string)\mod_bigbluebuttonbn\locallib\config::get('general_warning_button_class') |
| 572 | - ); |
|
| 572 | + ); |
|
| 573 | 573 | } |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
| 213 | 213 | $context = \context_module::instance($instanceidstocmids[$instanceid]); |
| 214 | 214 | $contextdata = helper::get_context_data($context, $user); |
| 215 | - $finaldata = (object) array_merge((array) $contextdata, ['logs' => $data]); |
|
| 215 | + $finaldata = (object)array_merge((array)$contextdata, ['logs' => $data]); |
|
| 216 | 216 | helper::export_context_files($context, $user); |
| 217 | 217 | writer::with_context($context)->export_data([], $finaldata); |
| 218 | 218 | } |
@@ -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) { |
@@ -152,33 +152,33 @@ |
||
| 152 | 152 | */ |
| 153 | 153 | public static function get_options() { |
| 154 | 154 | return array( |
| 155 | - 'version_major' => self::get_moodle_version_major(), |
|
| 156 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 157 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 158 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 159 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 160 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 161 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 162 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 163 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 164 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 165 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 166 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 167 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 168 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 169 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 170 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 171 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 172 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 173 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 174 | - 'recording_default' => self::get('recording_default'), |
|
| 175 | - 'recording_editable' => self::get('recording_editable'), |
|
| 176 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 177 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 178 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 179 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 180 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 181 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 182 | - ); |
|
| 155 | + 'version_major' => self::get_moodle_version_major(), |
|
| 156 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 157 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 158 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 159 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 160 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 161 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 162 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 163 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 164 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 165 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 166 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 167 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 168 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 169 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 170 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 171 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 172 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 173 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 174 | + 'recording_default' => self::get('recording_default'), |
|
| 175 | + 'recording_editable' => self::get('recording_editable'), |
|
| 176 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 177 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 178 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 179 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 180 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 181 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 182 | + ); |
|
| 183 | 183 | } |
| 184 | 184 | } |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public static function defaultvalues() { |
| 57 | 57 | return array( |
| 58 | - 'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 59 | - 'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 58 | + 'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 59 | + 'shared_secret' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 60 | 60 | 'voicebridge_editable' => 'false', |
| 61 | 61 | 'importrecordings_enabled' => 'false', |
| 62 | 62 | 'importrecordings_from_deleted_enabled' => 'false', |
@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
| 122 | 122 | return (string)$CFG->bigbluebuttonbn[$setting]; |
| 123 | 123 | } |
| 124 | - if (isset($CFG->{'bigbluebuttonbn_'.$setting})) { |
|
| 125 | - return (string)$CFG->{'bigbluebuttonbn_'.$setting}; |
|
| 124 | + if (isset($CFG->{'bigbluebuttonbn_' . $setting})) { |
|
| 125 | + return (string)$CFG->{'bigbluebuttonbn_' . $setting}; |
|
| 126 | 126 | } |
| 127 | 127 | return self::defaultvalue($setting); |
| 128 | 128 | } |