@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for ". |
|
| 37 | + $this->description = "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for " . |
|
| 38 | 38 | "the course module id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' has imported a recording with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has imported a recording with id " . |
|
| 38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' has left a bigbluebutton meeting for ". |
|
| 38 | - "the bigbluebuttonbn activity with id '$this->objectid' for the course id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has left a bigbluebutton meeting for " . |
|
| 38 | + "the bigbluebuttonbn activity with id '$this->objectid' for the course id " . |
|
| 39 | 39 | "'$this->contextinstanceid'."; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' has deleted a recording with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has deleted a recording with id " . |
|
| 38 | 38 | "'$this->other' from the course id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' has viewed a recording with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has viewed a recording with id " . |
|
| 38 | 38 | "'$this->other' from the course id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' has protected a recording with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has protected a recording with id " . |
|
| 38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' has edited a recording with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has edited a recording with id " . |
|
| 38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | defined('MOODLE_INTERNAL') || die(); |
| 28 | 28 | |
| 29 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
| 30 | -require_once($CFG->dirroot.'/course/moodleform_mod.php'); |
|
| 29 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot . '/course/moodleform_mod.php'); |
|
| 31 | 31 | |
| 32 | 32 | class mod_bigbluebuttonbn_mod_form extends moodleform_mod { |
| 33 | 33 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $serverversion = bigbluebuttonbn_get_server_version(); |
| 39 | 39 | if (is_null($serverversion)) { |
| 40 | 40 | print_error('general_error_unable_connect', 'bigbluebuttonbn', |
| 41 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 41 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $bigbluebuttonbn = null; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | ); |
| 130 | 130 | $defaultvalues['presentation'] = $draftitemid; |
| 131 | 131 | } catch (Exception $e) { |
| 132 | - debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER); |
|
| 132 | + debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER); |
|
| 133 | 133 | return null; |
| 134 | 134 | } |
| 135 | 135 | } |
@@ -309,10 +309,10 @@ 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 | - array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).' '. |
|
| 315 | + array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')) . ' ' . |
|
| 316 | 316 | html_writer::tag('input', '', array('id' => 'id_addselectionid', 'type' => 'button', 'class' => 'btn btn-secondary', |
| 317 | 317 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
| 318 | 318 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participant_add(); return 0;' |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | // Render elements for participant list. |
| 333 | 333 | $htmllist = html_writer::tag('div', |
| 334 | 334 | html_writer::label(get_string('mod_form_field_participant_list', 'bigbluebuttonbn'), |
| 335 | - 'bigbluebuttonbn_participant_list'). |
|
| 335 | + 'bigbluebuttonbn_participant_list') . |
|
| 336 | 336 | html_writer::table($table) |
| 337 | 337 | ); |
| 338 | 338 | |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | } |
| 366 | 366 | |
| 367 | 367 | $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options); |
| 368 | - if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) { |
|
| 368 | + if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) { |
|
| 369 | 369 | $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn'); |
| 370 | 370 | } |
| 371 | 371 | if (!empty($rule)) { |
@@ -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]); |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | |
| 247 | 247 | private function bigbluebuttonbn_mform_add_block_room_recordings($mform, $cfg) { |
| 248 | 248 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
| 249 | - 'description_key' => null]; |
|
| 249 | + 'description_key' => null]; |
|
| 250 | 250 | if ($cfg['recordings_html_editable']) { |
| 251 | 251 | $field['type'] = 'checkbox'; |
| 252 | 252 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | $field['description_key'], $cfg['recordings_html_default']); |
| 256 | 256 | |
| 257 | 257 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
| 258 | - 'description_key' => null]; |
|
| 258 | + 'description_key' => null]; |
|
| 259 | 259 | if ($cfg['recordings_deleted_editable']) { |
| 260 | 260 | $field['type'] = 'checkbox'; |
| 261 | 261 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | $field['description_key'], $cfg['recordings_deleted_default']); |
| 265 | 265 | |
| 266 | 266 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
| 267 | - 'description_key' => null]; |
|
| 267 | + 'description_key' => null]; |
|
| 268 | 268 | if ($cfg['recordings_imported_editable']) { |
| 269 | 269 | $field['type'] = 'checkbox'; |
| 270 | 270 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type', |
| 320 | 320 | $participantselection['type_selected'], array(), |
| 321 | 321 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 322 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
| 322 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
| 323 | 323 | html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 324 | 324 | $participantselection['selected'], array(), |
| 325 | 325 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).' '. |
@@ -274,11 +274,11 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | echo $OUTPUT->box_start('generalbox boxaligncenter'); |
| 276 | 276 | echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn'). |
| 277 | - '</div>'; |
|
| 277 | + '</div>'; |
|
| 278 | 278 | echo $OUTPUT->box_end(); |
| 279 | 279 | |
| 280 | 280 | groups_print_activity_menu( |
| 281 | - $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id); |
|
| 281 | + $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id); |
|
| 282 | 282 | echo '<br><br>'; |
| 283 | 283 | } |
| 284 | 284 | |
@@ -364,11 +364,11 @@ discard block |
||
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | function bigbluebuttonbn_view_include_recordings(&$bbbsession) { |
| 367 | - if ( $bbbsession['bigbluebuttonbn']->type == BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY && |
|
| 367 | + if ( $bbbsession['bigbluebuttonbn']->type == BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY && |
|
| 368 | 368 | $bbbsession['bigbluebuttonbn']->recordings_imported ) { |
| 369 | - return false; |
|
| 370 | - } |
|
| 371 | - return true; |
|
| 369 | + return false; |
|
| 370 | + } |
|
| 371 | + return true; |
|
| 372 | 372 | } |
| 373 | 373 | |
| 374 | 374 | function bigbluebuttonbn_view_render_recordings(&$bbbsession, $showroom, &$jsvars) { |
@@ -383,13 +383,13 @@ discard block |
||
| 383 | 383 | $recordings = bigbluebuttonbn_get_recordings( |
| 384 | 384 | $bbbsession['course']->id, $bigbluebuttonbnid, $showroom, |
| 385 | 385 | $bbbsession['bigbluebuttonbn']->recordings_deleted |
| 386 | - ); |
|
| 386 | + ); |
|
| 387 | 387 | } |
| 388 | 388 | |
| 389 | 389 | // Get recording links. |
| 390 | 390 | $recordingsimported = bigbluebuttonbn_get_recordings_imported_array( |
| 391 | 391 | $bbbsession['course']->id, $bigbluebuttonbnid, $showroom |
| 392 | - ); |
|
| 392 | + ); |
|
| 393 | 393 | |
| 394 | 394 | /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent |
| 395 | 395 | * recordings are not included. */ |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | // JavaScript variables for recordings. |
| 406 | 406 | $jsvars += array( |
| 407 | 407 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
| 408 | - ); |
|
| 408 | + ); |
|
| 409 | 409 | |
| 410 | 410 | // If there are meetings with recordings load the data to the table. |
| 411 | 411 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | $jsvars += array( |
| 418 | 418 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
| 419 | 419 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
| 420 | - ); |
|
| 420 | + ); |
|
| 421 | 421 | |
| 422 | 422 | // Render a YUI table. |
| 423 | 423 | return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table')); |
@@ -428,10 +428,10 @@ discard block |
||
| 428 | 428 | |
| 429 | 429 | $button = html_writer::tag('input', '', |
| 430 | 430 | array('type' => 'button', |
| 431 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 432 | - 'class' => 'btn btn-secondary', |
|
| 433 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 434 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 431 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 432 | + 'class' => 'btn btn-secondary', |
|
| 433 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 434 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 435 | 435 | $output = html_writer::start_tag('br'); |
| 436 | 436 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 437 | 437 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
| 450 | 450 | ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''. |
| 451 | 451 | ''.$OUTPUT->action_link($bbbsession['presentation']['url'], |
| 452 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 452 | + $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 453 | 453 | } |
| 454 | 454 | |
| 455 | 455 | return ''; |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v2 or later |
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | -require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); |
|
| 27 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
| 26 | +require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); |
|
| 27 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
| 28 | 28 | |
| 29 | 29 | $id = required_param('id', PARAM_INT); |
| 30 | 30 | $bn = optional_param('n', 0, PARAM_INT); |
@@ -59,21 +59,21 @@ discard block |
||
| 59 | 59 | if (is_null($serverversion)) { |
| 60 | 60 | if ($bbbsession['administrator']) { |
| 61 | 61 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
| 62 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 62 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 63 | 63 | exit; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if ($bbbsession['moderator']) { |
| 67 | 67 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
| 68 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
| 68 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
| 69 | 69 | exit; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
| 73 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
| 73 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
| 74 | 74 | exit; |
| 75 | 75 | } |
| 76 | -$bbbsession['serverversion'] = (string) $serverversion; |
|
| 76 | +$bbbsession['serverversion'] = (string)$serverversion; |
|
| 77 | 77 | |
| 78 | 78 | // Mark viewed by user (if required). |
| 79 | 79 | $completion = new completion_info($course); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | // Print the page header. |
| 83 | 83 | $PAGE->set_context($context); |
| 84 | -$PAGE->set_url($CFG->wwwroot.'/mod/bigbluebuttonbn/view.php', array('id' => $cm->id)); |
|
| 84 | +$PAGE->set_url($CFG->wwwroot . '/mod/bigbluebuttonbn/view.php', array('id' => $cm->id)); |
|
| 85 | 85 | $PAGE->set_title(format_string($bigbluebuttonbn->name)); |
| 86 | 86 | $PAGE->set_cacheable(false); |
| 87 | 87 | $PAGE->set_heading($course->fullname); |
@@ -91,11 +91,11 @@ discard block |
||
| 91 | 91 | if (!has_capability('moodle/category:manage', $context) && !has_capability('mod/bigbluebuttonbn:join', $context)) { |
| 92 | 92 | echo $OUTPUT->header(); |
| 93 | 93 | if (isguestuser()) { |
| 94 | - echo $OUTPUT->confirm('<p>'.get_string('view_noguests', 'bigbluebuttonbn').'</p>'.get_string('liketologin'), |
|
| 95 | - get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id); |
|
| 94 | + echo $OUTPUT->confirm('<p>' . get_string('view_noguests', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'), |
|
| 95 | + get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id); |
|
| 96 | 96 | } else { |
| 97 | - echo $OUTPUT->confirm('<p>'.get_string('view_nojoin', 'bigbluebuttonbn').'</p>'.get_string('liketologin'), |
|
| 98 | - get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id); |
|
| 97 | + echo $OUTPUT->confirm('<p>' . get_string('view_nojoin', 'bigbluebuttonbn') . '</p>' . get_string('liketologin'), |
|
| 98 | + get_login_url(), $CFG->wwwroot . '/course/view.php?id=' . $course->id); |
|
| 99 | 99 | } |
| 100 | 100 | echo $OUTPUT->footer(); |
| 101 | 101 | exit; |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | // Operation URLs. |
| 105 | 105 | $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
| 106 | -$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id . |
|
| 106 | +$bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $id . |
|
| 107 | 107 | '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
| 108 | 108 | $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . |
| 109 | 109 | 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | echo $OUTPUT->footer(); |
| 124 | 124 | |
| 125 | 125 | // Shows version as a comment. |
| 126 | -echo '<!-- '.$bbbsession['originTag'].' -->'."\n"; |
|
| 126 | +echo '<!-- ' . $bbbsession['originTag'] . ' -->' . "\n"; |
|
| 127 | 127 | |
| 128 | 128 | // Initialize session variable used across views. |
| 129 | 129 | $SESSION->bigbluebuttonbn_bbbsession = $bbbsession; |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $bbbsession['viewerPW'] = $bigbluebuttonbn->viewerpass; |
| 155 | 155 | |
| 156 | 156 | // Database info related to the activity. |
| 157 | - $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'. |
|
| 157 | + $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' . |
|
| 158 | 158 | $bbbsession['bigbluebuttonbn']->id; |
| 159 | 159 | $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name; |
| 160 | 160 | $bbbsession['meetingdescription'] = $bigbluebuttonbn->intro; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $bbbsession['welcome'] = get_string('mod_form_field_welcome_default', 'bigbluebuttonbn'); |
| 176 | 176 | } |
| 177 | 177 | if ($bigbluebuttonbn->record) { |
| 178 | - $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 178 | + $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | $bbbsession['openingtime'] = $bigbluebuttonbn->openingtime; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $bbbsession['originServerName'] = $parsedurl['host']; |
| 192 | 192 | $bbbsession['originServerUrl'] = $CFG->wwwroot; |
| 193 | 193 | $bbbsession['originServerCommonName'] = ''; |
| 194 | - $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')'; |
|
| 194 | + $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')'; |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | function bigbluebuttonbn_view_bbbsession_roles($context, $userid) { |
@@ -248,10 +248,10 @@ discard block |
||
| 248 | 248 | $bbbsession['group'] = groups_get_activity_group($bbbsession['cm'], true); |
| 249 | 249 | |
| 250 | 250 | // Assign group default values. |
| 251 | - $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'. |
|
| 252 | - $bbbsession['bigbluebuttonbn']->id.'['.$bbbsession['group'].']'; |
|
| 251 | + $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' . |
|
| 252 | + $bbbsession['bigbluebuttonbn']->id . '[' . $bbbsession['group'] . ']'; |
|
| 253 | 253 | $groupname = get_string('allparticipants'); |
| 254 | - $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name.' ('.$groupname.')'; |
|
| 254 | + $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name . ' (' . $groupname . ')'; |
|
| 255 | 255 | |
| 256 | 256 | if (count($groups) == 0) { |
| 257 | 257 | // Only the All participants group exists. |
@@ -262,10 +262,10 @@ discard block |
||
| 262 | 262 | $bbbsession['group'] = array_values($groups)[0]->id; |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | - $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'. |
|
| 266 | - $bbbsession['bigbluebuttonbn']->id.'['.$bbbsession['group'].']'; |
|
| 265 | + $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' . |
|
| 266 | + $bbbsession['bigbluebuttonbn']->id . '[' . $bbbsession['group'] . ']'; |
|
| 267 | 267 | $groupname = groups_get_group_name($bbbsession['group']); |
| 268 | - $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name.' ('.$groupname.')'; |
|
| 268 | + $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name . ' (' . $groupname . ')'; |
|
| 269 | 269 | |
| 270 | 270 | if (count($groups) == 1) { |
| 271 | 271 | // There only one group and the user has access to. |
@@ -273,12 +273,12 @@ discard block |
||
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | echo $OUTPUT->box_start('generalbox boxaligncenter'); |
| 276 | - echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn'). |
|
| 276 | + echo '<br><div class="alert alert-warning">' . get_string('view_groups_selection_warning', 'bigbluebuttonbn') . |
|
| 277 | 277 | '</div>'; |
| 278 | 278 | echo $OUTPUT->box_end(); |
| 279 | 279 | |
| 280 | 280 | groups_print_activity_menu( |
| 281 | - $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id); |
|
| 281 | + $bbbsession['cm'], $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id); |
|
| 282 | 282 | echo '<br><br>'; |
| 283 | 283 | } |
| 284 | 284 | |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | 'M.mod_bigbluebuttonbn.recordings.init', array($jsvars)); |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | - echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br'); |
|
| 323 | + echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br'); |
|
| 324 | 324 | |
| 325 | 325 | $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars)); |
| 326 | 326 | } |
@@ -331,12 +331,12 @@ discard block |
||
| 331 | 331 | // JavaScript variables for room. |
| 332 | 332 | $openingtime = ''; |
| 333 | 333 | if ($bbbsession['openingtime']) { |
| 334 | - $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '. |
|
| 334 | + $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' . |
|
| 335 | 335 | userdate($bbbsession['openingtime']); |
| 336 | 336 | } |
| 337 | 337 | $closingtime = ''; |
| 338 | 338 | if ($bbbsession['closingtime']) { |
| 339 | - $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '. |
|
| 339 | + $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' . |
|
| 340 | 340 | userdate($bbbsession['closingtime']); |
| 341 | 341 | } |
| 342 | 342 | $jsvars += array( |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | $output .= $OUTPUT->box_end(); |
| 354 | 354 | |
| 355 | 355 | $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box'); |
| 356 | - $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>'."\n"; |
|
| 356 | + $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>' . "\n"; |
|
| 357 | 357 | $output .= $OUTPUT->box_end(); |
| 358 | 358 | |
| 359 | 359 | if ($activity == 'ended') { |
@@ -364,8 +364,8 @@ discard block |
||
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | function bigbluebuttonbn_view_include_recordings(&$bbbsession) { |
| 367 | - if ( $bbbsession['bigbluebuttonbn']->type == BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY && |
|
| 368 | - $bbbsession['bigbluebuttonbn']->recordings_imported ) { |
|
| 367 | + if ($bbbsession['bigbluebuttonbn']->type == BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY && |
|
| 368 | + $bbbsession['bigbluebuttonbn']->recordings_imported) { |
|
| 369 | 369 | return false; |
| 370 | 370 | } |
| 371 | 371 | return true; |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | |
| 380 | 380 | // Get recordings. |
| 381 | 381 | $recordings = array(); |
| 382 | - if ( bigbluebuttonbn_view_include_recordings($bbbsession) ) { |
|
| 382 | + if (bigbluebuttonbn_view_include_recordings($bbbsession)) { |
|
| 383 | 383 | $recordings = bigbluebuttonbn_get_recordings( |
| 384 | 384 | $bbbsession['course']->id, $bigbluebuttonbnid, $showroom, |
| 385 | 385 | $bbbsession['bigbluebuttonbn']->recordings_deleted |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | // If there are meetings with recordings load the data to the table. |
| 411 | 411 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
| 412 | 412 | // Render a plain html table. |
| 413 | - return bigbluebutton_output_recording_table($bbbsession, $recordings)."\n"; |
|
| 413 | + return bigbluebutton_output_recording_table($bbbsession, $recordings) . "\n"; |
|
| 414 | 414 | } |
| 415 | 415 | |
| 416 | 416 | // JavaScript variables for recordings with YUI. |
@@ -430,8 +430,8 @@ discard block |
||
| 430 | 430 | array('type' => 'button', |
| 431 | 431 | 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
| 432 | 432 | 'class' => 'btn btn-secondary', |
| 433 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 434 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 433 | + 'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' . |
|
| 434 | + $bbbsession['bigbluebuttonbn']->id . '\'')); |
|
| 435 | 435 | $output = html_writer::start_tag('br'); |
| 436 | 436 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 437 | 437 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -446,10 +446,10 @@ discard block |
||
| 446 | 446 | $attributes = array('title' => $bbbsession['presentation']['name']); |
| 447 | 447 | $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']); |
| 448 | 448 | |
| 449 | - return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
|
| 450 | - ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''. |
|
| 451 | - ''.$OUTPUT->action_link($bbbsession['presentation']['url'], |
|
| 452 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 449 | + return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' . |
|
| 450 | + '' . $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) . '' . |
|
| 451 | + '' . $OUTPUT->action_link($bbbsession['presentation']['url'], |
|
| 452 | + $bbbsession['presentation']['name'], null, $attributes) . '<br><br>'; |
|
| 453 | 453 | } |
| 454 | 454 | |
| 455 | 455 | return ''; |