@@ -113,7 +113,7 @@ |
||
| 113 | 113 | $data['welcome'] .= '<br><br>'; |
| 114 | 114 | $data['welcome'] .= str_replace( |
| 115 | 115 | '%duration%', |
| 116 | - (string) $durationtime, |
|
| 116 | + (string)$durationtime, |
|
| 117 | 117 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
| 118 | 118 | ); |
| 119 | 119 | } |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | $groupname = groups_get_group_name($bbbsession['group']); |
| 55 | 55 | } |
| 56 | 56 | // Assign group default values. |
| 57 | - $bbbsession['meetingid'] .= '['.$bbbsession['group'].']'; |
|
| 58 | - $bbbsession['meetingname'] .= ' ('.$groupname.')'; |
|
| 57 | + $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']'; |
|
| 58 | + $bbbsession['meetingname'] .= ' (' . $groupname . ')'; |
|
| 59 | 59 | if (count($groups) == 0) { |
| 60 | 60 | // Only the All participants group exists. |
| 61 | 61 | bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_notenrolled_warning', 'bigbluebuttonbn'), 'info'); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | if (has_capability('moodle/site:accessallgroups', $context)) { |
| 66 | 66 | bigbluebuttonbn_view_message_box($bbbsession, get_string('view_groups_selection_warning', 'bigbluebuttonbn')); |
| 67 | 67 | } |
| 68 | - $urltoroot = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id; |
|
| 68 | + $urltoroot = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
|
| 69 | 69 | groups_print_activity_menu($bbbsession['cm'], $urltoroot); |
| 70 | 70 | echo '<br><br>'; |
| 71 | 71 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $recordingsdisabled = get_string('view_message_recordings_disabled', 'bigbluebuttonbn'); |
| 138 | 138 | $output .= bigbluebuttonbn_render_warning($recordingsdisabled, 'danger'); |
| 139 | 139 | } |
| 140 | - echo $output.html_writer::empty_tag('br').html_writer::empty_tag('br').html_writer::empty_tag('br'); |
|
| 140 | + echo $output . html_writer::empty_tag('br') . html_writer::empty_tag('br') . html_writer::empty_tag('br'); |
|
| 141 | 141 | $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-broker', 'M.mod_bigbluebuttonbn.broker.init', array($jsvars)); |
| 142 | 142 | } |
| 143 | 143 | |
@@ -206,12 +206,12 @@ discard block |
||
| 206 | 206 | // JavaScript variables for room. |
| 207 | 207 | $openingtime = ''; |
| 208 | 208 | if ($bbbsession['openingtime']) { |
| 209 | - $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn').': '. |
|
| 209 | + $openingtime = get_string('mod_form_field_openingtime', 'bigbluebuttonbn') . ': ' . |
|
| 210 | 210 | userdate($bbbsession['openingtime']); |
| 211 | 211 | } |
| 212 | 212 | $closingtime = ''; |
| 213 | 213 | if ($bbbsession['closingtime']) { |
| 214 | - $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn').': '. |
|
| 214 | + $closingtime = get_string('mod_form_field_closingtime', 'bigbluebuttonbn') . ': ' . |
|
| 215 | 215 | userdate($bbbsession['closingtime']); |
| 216 | 216 | } |
| 217 | 217 | $guestlink = []; |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $output .= $OUTPUT->box_end(); |
| 254 | 254 | // Action button box. |
| 255 | 255 | $output .= $OUTPUT->box_start('generalbox boxaligncenter', 'bigbluebuttonbn_view_action_button_box'); |
| 256 | - $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>'."\n"; |
|
| 256 | + $output .= '<br><br><span id="join_button"></span> <span id="end_button"></span>' . "\n"; |
|
| 257 | 257 | $output .= $OUTPUT->box_end(); |
| 258 | 258 | if ($activity == 'ended') { |
| 259 | 259 | $output .= bigbluebuttonbn_view_ended($bbbsession); |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | // If there are meetings with recordings load the data to the table. |
| 287 | 287 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
| 288 | 288 | // Render a plain html table. |
| 289 | - return bigbluebuttonbn_output_recording_table($bbbsession, $recordings)."\n"; |
|
| 289 | + return bigbluebuttonbn_output_recording_table($bbbsession, $recordings) . "\n"; |
|
| 290 | 290 | } |
| 291 | 291 | // JavaScript variables for recordings with YUI. |
| 292 | 292 | $jsvars += array( |
@@ -322,8 +322,8 @@ discard block |
||
| 322 | 322 | array('type' => 'button', |
| 323 | 323 | 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
| 324 | 324 | 'class' => 'btn btn-secondary', |
| 325 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 326 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 325 | + 'onclick' => 'window.location=\'' . $CFG->wwwroot . '/mod/bigbluebuttonbn/import_view.php?bn=' . |
|
| 326 | + $bbbsession['bigbluebuttonbn']->id . '\'')); |
|
| 327 | 327 | $output = html_writer::empty_tag('br'); |
| 328 | 328 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 329 | 329 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -342,10 +342,10 @@ discard block |
||
| 342 | 342 | if (!is_null($bbbsession['presentation']['url'])) { |
| 343 | 343 | $attributes = array('title' => $bbbsession['presentation']['name']); |
| 344 | 344 | $icon = new pix_icon($bbbsession['presentation']['icon'], $bbbsession['presentation']['mimetype_description']); |
| 345 | - return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
|
| 346 | - $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false). |
|
| 345 | + return '<h4>' . get_string('view_section_title_presentation', 'bigbluebuttonbn') . '</h4>' . |
|
| 346 | + $OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false) . |
|
| 347 | 347 | $OUTPUT->action_link($bbbsession['presentation']['url'], |
| 348 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
| 348 | + $bbbsession['presentation']['name'], null, $attributes) . '<br><br>'; |
|
| 349 | 349 | } |
| 350 | 350 | return ''; |
| 351 | 351 | } |
@@ -23,9 +23,9 @@ discard block |
||
| 23 | 23 | * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | -require(__DIR__.'/../../config.php'); |
|
| 27 | -require_once(__DIR__.'/locallib.php'); |
|
| 28 | -require_once(__DIR__.'/brokerlib.php'); |
|
| 26 | +require(__DIR__ . '/../../config.php'); |
|
| 27 | +require_once(__DIR__ . '/locallib.php'); |
|
| 28 | +require_once(__DIR__ . '/brokerlib.php'); |
|
| 29 | 29 | |
| 30 | 30 | global $PAGE, $USER, $CFG, $SESSION, $DB; |
| 31 | 31 | |
@@ -43,13 +43,13 @@ discard block |
||
| 43 | 43 | require_sesskey(); |
| 44 | 44 | |
| 45 | 45 | if (empty($params['action'])) { |
| 46 | - header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included'); |
|
| 46 | + header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included'); |
|
| 47 | 47 | return; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | $error = bigbluebuttonbn_broker_validate_parameters($params); |
| 51 | 51 | if (!empty($error)) { |
| 52 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
| 52 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
| 53 | 53 | return; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | echo $password; |
| 140 | 140 | return; |
| 141 | 141 | } |
| 142 | - header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist'); |
|
| 142 | + header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist'); |
|
| 143 | 143 | } catch (Exception $e) { |
| 144 | - header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); |
|
| 144 | + header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage()); |
|
| 145 | 145 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | defined('MOODLE_INTERNAL') || die(); |
| 28 | 28 | |
| 29 | -require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 29 | +require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Define all the restore steps that will be used by the restore_url_activity_task. |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | protected function process_bigbluebuttonbn($data) { |
| 60 | 60 | global $DB; |
| 61 | - $data = (object) $data; |
|
| 61 | + $data = (object)$data; |
|
| 62 | 62 | $data->course = $this->get_courseid(); |
| 63 | 63 | $data->timemodified = $this->apply_date_offset($data->timemodified); |
| 64 | 64 | $data->guestlinkid = bigbluebuttonbn_random_password(12); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | protected function process_bigbluebuttonbn_logs($data) { |
| 78 | 78 | global $DB; |
| 79 | - $data = (object) $data; |
|
| 79 | + $data = (object)$data; |
|
| 80 | 80 | // Apply modifications. |
| 81 | 81 | $data->courseid = $this->get_mappingid('course', $data->courseid); |
| 82 | 82 | $data->bigbluebuttonbnid = $this->get_new_parentid('bigbluebuttonbn'); |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | self::view_bbbsession_set($context, $bbbsession); |
| 150 | 150 | |
| 151 | 151 | $serverversion = bigbluebuttonbn_get_server_version(); |
| 152 | - $bbbsession['serverversion'] = (string) $serverversion; |
|
| 152 | + $bbbsession['serverversion'] = (string)$serverversion; |
|
| 153 | 153 | |
| 154 | 154 | // Operation URLs. |
| 155 | 155 | $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $cm->id; |
@@ -187,12 +187,12 @@ discard block |
||
| 187 | 187 | $bbbsession['importrecordings'] = ($bbbsession['managerecordings']); |
| 188 | 188 | $bbbsession['modPW'] = $bbbsession['bigbluebuttonbn']->moderatorpass; |
| 189 | 189 | $bbbsession['viewerPW'] = $bbbsession['bigbluebuttonbn']->viewerpass; |
| 190 | - $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'. |
|
| 190 | + $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' . |
|
| 191 | 191 | $bbbsession['bigbluebuttonbn']->id; |
| 192 | 192 | $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name; |
| 193 | 193 | $bbbsession['meetingdescription'] = $bbbsession['bigbluebuttonbn']->intro; |
| 194 | - $bbbsession['userlimit'] = intval((int) config::get('userlimit_default')); |
|
| 195 | - if ((boolean) config::get('userlimit_editable')) { |
|
| 194 | + $bbbsession['userlimit'] = intval((int)config::get('userlimit_default')); |
|
| 195 | + if ((boolean)config::get('userlimit_editable')) { |
|
| 196 | 196 | $bbbsession['userlimit'] = intval($bbbsession['bigbluebuttonbn']->userlimit); |
| 197 | 197 | } |
| 198 | 198 | $bbbsession['voicebridge'] = $bbbsession['bigbluebuttonbn']->voicebridge; |
@@ -216,10 +216,10 @@ discard block |
||
| 216 | 216 | if ($bbbsession['bigbluebuttonbn']->record) { |
| 217 | 217 | // Check if is enable record all from start. |
| 218 | 218 | if ($bbbsession['recordallfromstart']) { |
| 219 | - $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordallfromstartwarning', |
|
| 219 | + $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordallfromstartwarning', |
|
| 220 | 220 | 'bigbluebuttonbn'); |
| 221 | 221 | } else { |
| 222 | - $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 222 | + $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn'); |
|
| 223 | 223 | } |
| 224 | 224 | } |
| 225 | 225 | $bbbsession['openingtime'] = $bbbsession['bigbluebuttonbn']->openingtime; |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $bbbsession['originServerName'] = $parsedurl['host']; |
| 245 | 245 | $bbbsession['originServerUrl'] = $CFG->wwwroot; |
| 246 | 246 | $bbbsession['originServerCommonName'] = ''; |
| 247 | - $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')'; |
|
| 247 | + $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')'; |
|
| 248 | 248 | $bbbsession['bnserver'] = bigbluebuttonbn_is_bn_server(); |
| 249 | 249 | // Setting for clienttype, assign flash if not enabled, or default if not editable. |
| 250 | 250 | $bbbsession['clienttype'] = config::get('clienttype_default'); |