@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has protected a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has protected a recording with id " . |
|
| 45 | 45 | "'##other' in the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has viewed a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has viewed a recording with id " . |
|
| 45 | 45 | "'##other' from the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | 30 | require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
| 31 | -require_once($CFG->libdir.'/adminlib.php'); |
|
| 31 | +require_once($CFG->libdir . '/adminlib.php'); |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Helper class for validating settings used HTML for settings.php. |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | !isset($CFG->bigbluebuttonbn['recording_all_from_start_default']) || |
| 63 | 63 | !isset($CFG->bigbluebuttonbn['recording_all_from_start_editable']) || |
| 64 | 64 | !isset($CFG->bigbluebuttonbn['recording_hide_button_default']) || |
| 65 | - !isset($CFG->bigbluebuttonbn['recording_hide_button_editable']) ); |
|
| 65 | + !isset($CFG->bigbluebuttonbn['recording_hide_button_editable'])); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
| 93 | 93 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) || |
| 94 | 94 | !isset($CFG->bigbluebuttonbn['recordings_validate_url']) |
| 95 | - ); |
|
| 95 | + ); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | namespace mod_bigbluebuttonbn\search; |
| 27 | -use core_tag\output\tag; |
|
| 28 | 27 | |
| 29 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 30 | 29 | |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | use mod_bigbluebuttonbn\output\import_view; |
| 28 | 28 | use mod_bigbluebuttonbn\output\renderer; |
| 29 | 29 | |
| 30 | -require(__DIR__.'/../../config.php'); |
|
| 31 | -require_once(__DIR__.'/locallib.php'); |
|
| 30 | +require(__DIR__ . '/../../config.php'); |
|
| 31 | +require_once(__DIR__ . '/locallib.php'); |
|
| 32 | 32 | |
| 33 | 33 | $bn = required_param('bn', PARAM_INT); |
| 34 | 34 | $tc = optional_param('tc', 0, PARAM_INT); |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | global $CFG; |
| 30 | 30 | |
| 31 | -require_once(__DIR__.'/locallib.php'); |
|
| 31 | +require_once(__DIR__ . '/locallib.php'); |
|
| 32 | 32 | |
| 33 | 33 | if ($hassiteconfig) { |
| 34 | 34 | // Configuration for BigBlueButton. |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | defined('MOODLE_INTERNAL') || die(); |
| 38 | 38 | |
| 39 | -require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 39 | +require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * Class import_view |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | use mod_bigbluebuttonbn\output\renderer; |
| 29 | 29 | use mod_bigbluebuttonbn\output\index; |
| 30 | 30 | |
| 31 | -require(__DIR__.'/../../config.php'); |
|
| 32 | -require_once(__DIR__.'/locallib.php'); |
|
| 31 | +require(__DIR__ . '/../../config.php'); |
|
| 32 | +require_once(__DIR__ . '/locallib.php'); |
|
| 33 | 33 | |
| 34 | 34 | $id = required_param('id', PARAM_INT); |
| 35 | 35 | $a = optional_param('a', 0, PARAM_INT); |
@@ -309,10 +309,10 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | function bigbluebuttonbn_bbb_view_create_meeting_data(&$bbbsession) { |
| 311 | 311 | $data = ['meetingID' => $bbbsession['meetingid'], |
| 312 | - 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 313 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
| 314 | - 'moderatorPW' => $bbbsession['modPW'], |
|
| 315 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
| 312 | + 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
| 313 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
| 314 | + 'moderatorPW' => $bbbsession['modPW'], |
|
| 315 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
| 316 | 316 | ]; |
| 317 | 317 | $data['record'] = bigbluebuttonbn_bbb_view_create_meeting_data_record($bbbsession['record']); |
| 318 | 318 | // Check if auto_start_record is enable. |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | '%duration%', |
| 335 | 335 | (string) $durationtime, |
| 336 | 336 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
| 337 | - ); |
|
| 337 | + ); |
|
| 338 | 338 | } |
| 339 | 339 | $voicebridge = intval($bbbsession['voicebridge']); |
| 340 | 340 | if ($voicebridge > 0 && $voicebridge < 79999) { |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
| 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 | global $SESSION; |
| 30 | 30 | |
@@ -63,16 +63,16 @@ discard block |
||
| 63 | 63 | if (is_null($serverversion)) { |
| 64 | 64 | if ($bbbsession['administrator']) { |
| 65 | 65 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
| 66 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 66 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 67 | 67 | exit; |
| 68 | 68 | } |
| 69 | 69 | if ($bbbsession['moderator']) { |
| 70 | 70 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
| 71 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
| 71 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
| 72 | 72 | exit; |
| 73 | 73 | } |
| 74 | 74 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
| 75 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
| 75 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
| 76 | 76 | exit; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | // Assign group default values. |
| 100 | - $bbbsession['meetingid'] .= '['.$bbbsession['group'].']'; |
|
| 101 | - $bbbsession['meetingname'] .= ' ('.$groupname.')'; |
|
| 100 | + $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']'; |
|
| 101 | + $bbbsession['meetingname'] .= ' (' . $groupname . ')'; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | // Initialize session variable used across views. |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | // If user is not administrator nor moderator (user is steudent) and waiting is required. |
| 165 | 165 | if (!$bbbsession['administrator'] && !$bbbsession['moderator'] && $bbbsession['wait']) { |
| 166 | - header('Location: '.$bbbsession['logoutURL']); |
|
| 166 | + header('Location: ' . $bbbsession['logoutURL']); |
|
| 167 | 167 | break; |
| 168 | 168 | } |
| 169 | 169 | // As the meeting doesn't exist, try to create it. |
@@ -177,16 +177,16 @@ discard block |
||
| 177 | 177 | // The server is unreachable. |
| 178 | 178 | if ($bbbsession['administrator']) { |
| 179 | 179 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
| 180 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 180 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 181 | 181 | break; |
| 182 | 182 | } |
| 183 | 183 | if ($bbbsession['moderator']) { |
| 184 | 184 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
| 185 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 185 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 186 | 186 | break; |
| 187 | 187 | } |
| 188 | 188 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
| 189 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 189 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 190 | 190 | break; |
| 191 | 191 | } |
| 192 | 192 | if ($response['returncode'] == 'FAILED') { |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_create'], $bigbluebuttonbn); |
| 208 | 208 | // Internal logger: Insert a record with the meeting created. |
| 209 | 209 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
| 210 | - $meta = '{"record":'.($bbbsession['record'] ? 'true' : 'false').'}'; |
|
| 210 | + $meta = '{"record":' . ($bbbsession['record'] ? 'true' : 'false') . '}'; |
|
| 211 | 211 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_CREATE, $overrides, $meta); |
| 212 | 212 | // Since the meeting is already running, we just join the session. |
| 213 | 213 | bigbluebuttonbn_bbb_view_join_meeting($bbbsession, $bigbluebuttonbn, $origin); |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
| 222 | 222 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_PLAYED, $overrides); |
| 223 | 223 | // Execute the redirect. |
| 224 | - header('Location: '.urldecode($href)); |
|
| 224 | + header('Location: ' . urldecode($href)); |
|
| 225 | 225 | break; |
| 226 | 226 | default: |
| 227 | 227 | bigbluebuttonbn_bbb_view_close_window(); |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | $data['welcome'] .= '<br><br>'; |
| 316 | 316 | $data['welcome'] .= str_replace( |
| 317 | 317 | '%duration%', |
| 318 | - (string) $durationtime, |
|
| 318 | + (string)$durationtime, |
|
| 319 | 319 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
| 320 | 320 | ); |
| 321 | 321 | } |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | $meetinginfo = bigbluebuttonbn_get_meeting_info($bbbsession['meetingid'], BIGBLUEBUTTONBN_UPDATE_CACHE); |
| 382 | 382 | if ($bbbsession['userlimit'] > 0 && intval($meetinginfo['participantCount']) >= $bbbsession['userlimit']) { |
| 383 | 383 | // No more users allowed to join. |
| 384 | - header('Location: '.$bbbsession['logoutURL']); |
|
| 384 | + header('Location: ' . $bbbsession['logoutURL']); |
|
| 385 | 385 | return; |
| 386 | 386 | } |
| 387 | 387 | // Build the URL. |
@@ -395,13 +395,13 @@ discard block |
||
| 395 | 395 | bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_join'], $bigbluebuttonbn); |
| 396 | 396 | // Internal logger: Instert a record with the meeting created. |
| 397 | 397 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
| 398 | - $meta = '{"origin":'.$origin.'}'; |
|
| 398 | + $meta = '{"origin":' . $origin . '}'; |
|
| 399 | 399 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_JOIN, $overrides, $meta); |
| 400 | 400 | // Before executing the redirect, increment the number of participants. |
| 401 | 401 | bigbluebuttonbn_participant_joined($bbbsession['meetingid'], |
| 402 | 402 | ($bbbsession['administrator'] || $bbbsession['moderator'])); |
| 403 | 403 | // Execute the redirect. |
| 404 | - header('Location: '.$joinurl); |
|
| 404 | + header('Location: ' . $joinurl); |
|
| 405 | 405 | } |
| 406 | 406 | |
| 407 | 407 | /** |
@@ -413,13 +413,13 @@ discard block |
||
| 413 | 413 | */ |
| 414 | 414 | function bigbluebuttonbn_bbb_view_errors($serrors, $id) { |
| 415 | 415 | global $CFG, $OUTPUT; |
| 416 | - $errors = (array) json_decode(urldecode($serrors)); |
|
| 416 | + $errors = (array)json_decode(urldecode($serrors)); |
|
| 417 | 417 | $msgerrors = ''; |
| 418 | 418 | foreach ($errors as $error) { |
| 419 | - $msgerrors .= html_writer::tag('p', $error->{'message'}, array('class' => 'alert alert-danger'))."\n"; |
|
| 419 | + $msgerrors .= html_writer::tag('p', $error->{'message'}, array('class' => 'alert alert-danger')) . "\n"; |
|
| 420 | 420 | } |
| 421 | 421 | echo $OUTPUT->header(); |
| 422 | 422 | print_error('view_error_bigbluebutton', 'bigbluebuttonbn', |
| 423 | - $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$id, $msgerrors, $serrors); |
|
| 423 | + $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $id, $msgerrors, $serrors); |
|
| 424 | 424 | echo $OUTPUT->footer(); |
| 425 | 425 | } |