@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * recordings from a different activity even from a different course. |
| 99 | 99 | **/ |
| 100 | 100 | |
| 101 | - /* |
|
| 101 | + /* |
|
| 102 | 102 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 103 | 103 | * activities will have the 'import recordings' capability enabled. |
| 104 | 104 | * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * 'Join session' button enabled |
| 120 | 120 | **/ |
| 121 | 121 | |
| 122 | - /* |
|
| 122 | + /* |
|
| 123 | 123 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 124 | 124 | * activities will have the 'wait for moderator' capability enabled by |
| 125 | 125 | * default. |
@@ -298,27 +298,27 @@ discard block |
||
| 298 | 298 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
| 299 | 299 | */ |
| 300 | 300 | |
| 301 | - /* |
|
| 301 | + /* |
|
| 302 | 302 | * The warning box is always shown to administrators, but it is also possible to define other roles |
| 303 | 303 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
| 304 | 304 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
| 305 | 305 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
| 306 | 306 | */ |
| 307 | 307 | |
| 308 | - /* |
|
| 308 | + /* |
|
| 309 | 309 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
| 310 | 310 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
| 311 | 311 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
| 312 | 312 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
| 313 | 313 | */ |
| 314 | 314 | |
| 315 | - /* |
|
| 315 | + /* |
|
| 316 | 316 | * Additionally, when general_warning_button_href value is different than "", a button |
| 317 | 317 | * can also be shown right after the message. |
| 318 | 318 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
| 319 | 319 | */ |
| 320 | 320 | |
| 321 | - /* |
|
| 321 | + /* |
|
| 322 | 322 | * Finally, the text and class for the button can be modified |
| 323 | 323 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
| 324 | 324 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | !isset($CFG->bigbluebuttonbn['recordings_imported_editable']) || |
| 206 | 206 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
| 207 | 207 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) |
| 208 | - ); |
|
| 208 | + ); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | 'objectid' => $this->objectid, |
| 81 | 81 | 'contextinstanceid' => $this->contextinstanceid, |
| 82 | 82 | 'other' => $this->other |
| 83 | - ); |
|
| 83 | + ); |
|
| 84 | 84 | $string = $this->description; |
| 85 | 85 | foreach ($vars as $key => $value) { |
| 86 | 86 | $string = str_replace("##" . $key, $value, $string); |
@@ -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) { |
@@ -219,8 +219,8 @@ discard block |
||
| 219 | 219 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 220 | 220 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
| 221 | 221 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
| 222 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 223 | - ); |
|
| 222 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 223 | + ); |
|
| 224 | 224 | } else { |
| 225 | 225 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 226 | 226 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
| 291 | 291 | $recordingsettings = false; |
| 292 | 292 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
| 293 | - 'description_key' => null]; |
|
| 293 | + 'description_key' => null]; |
|
| 294 | 294 | if ($cfg['recordings_html_editable']) { |
| 295 | 295 | $field['type'] = 'checkbox'; |
| 296 | 296 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 300 | 300 | $field['description_key'], $cfg['recordings_html_default']); |
| 301 | 301 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
| 302 | - 'description_key' => null]; |
|
| 302 | + 'description_key' => null]; |
|
| 303 | 303 | if ($cfg['recordings_deleted_editable']) { |
| 304 | 304 | $field['type'] = 'checkbox'; |
| 305 | 305 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 309 | 309 | $field['description_key'], $cfg['recordings_deleted_default']); |
| 310 | 310 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
| 311 | - 'description_key' => null]; |
|
| 311 | + 'description_key' => null]; |
|
| 312 | 312 | if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) { |
| 313 | 313 | $field['type'] = 'checkbox'; |
| 314 | 314 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 318 | 318 | $field['description_key'], $cfg['recordings_imported_default']); |
| 319 | 319 | $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, |
| 320 | - 'description_key' => null]; |
|
| 320 | + 'description_key' => null]; |
|
| 321 | 321 | if ($cfg['recordings_preview_editable']) { |
| 322 | 322 | $field['type'] = 'checkbox'; |
| 323 | 323 | $field['description_key'] = 'mod_form_field_recordings_preview'; |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | $htmlselectiontype = html_writer::select($participantselection['type_options'], |
| 395 | 395 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
| 396 | 396 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 397 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 397 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 398 | 398 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 399 | 399 | $participantselection['selected'], array(), |
| 400 | 400 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | 'type' => 'button', 'class' => 'btn btn-secondary', |
| 403 | 403 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
| 404 | 404 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
| 405 | - )); |
|
| 405 | + )); |
|
| 406 | 406 | $htmladdparticipant = html_writer::tag('div', |
| 407 | 407 | $htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
| 408 | 408 | $mform->addElement('html', "\n\n"); |
@@ -444,9 +444,9 @@ discard block |
||
| 444 | 444 | $field['type'] = 'select'; |
| 445 | 445 | $field['data_type'] = PARAM_TEXT; |
| 446 | 446 | $field['description_key'] = 'mod_form_field_block_clienttype'; |
| 447 | - $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
|
| 448 | - BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 449 | - $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
|
| 447 | + $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
|
| 448 | + BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 449 | + $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
|
| 450 | 450 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 451 | 451 | $field['description_key'], $cfg['clienttype_default'], $choices); |
| 452 | 452 | return; |
@@ -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) { |
@@ -170,43 +170,43 @@ |
||
| 170 | 170 | */ |
| 171 | 171 | public static function get_options() { |
| 172 | 172 | return array( |
| 173 | - 'version_major' => self::get_moodle_version_major(), |
|
| 174 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 175 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 176 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 177 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 178 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 179 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 180 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 181 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 182 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 183 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 184 | - 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 185 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 186 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 187 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 188 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 189 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 190 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 191 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 192 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 193 | - 'recording_default' => self::get('recording_default'), |
|
| 194 | - 'recording_editable' => self::get('recording_editable'), |
|
| 195 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 196 | - 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 197 | - 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 198 | - 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 199 | - 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 200 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 201 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 202 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 203 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 204 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 205 | - 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 206 | - 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 207 | - 'clienttype_default' => self::get('clienttype_default'), |
|
| 208 | - 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 209 | - 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 210 | - ); |
|
| 173 | + 'version_major' => self::get_moodle_version_major(), |
|
| 174 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 175 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 176 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 177 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 178 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 179 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 180 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 181 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 182 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 183 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 184 | + 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 185 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 186 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 187 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 188 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 189 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 190 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 191 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 192 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 193 | + 'recording_default' => self::get('recording_default'), |
|
| 194 | + 'recording_editable' => self::get('recording_editable'), |
|
| 195 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 196 | + 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 197 | + 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 198 | + 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 199 | + 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 200 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 201 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 202 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 203 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 204 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 205 | + 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 206 | + 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 207 | + 'clienttype_default' => self::get('clienttype_default'), |
|
| 208 | + 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 209 | + 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 210 | + ); |
|
| 211 | 211 | } |
| 212 | 212 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * Remove this block when restored |
| 65 | 65 | */ |
| 66 | 66 | |
| 67 | - /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 67 | + /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 68 | 68 | const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/'; |
| 69 | 69 | /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */ |
| 70 | 70 | const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6'; |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} "; |
| 376 | 376 | $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)"; |
| 377 | 377 | $result = $DB->count_records_sql($sql, array($course->id, $bigbluebuttonbn->id, $user->id, |
| 378 | - BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 378 | + BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED)); |
|
| 379 | 379 | return $result; |
| 380 | 380 | } |
| 381 | 381 | |
@@ -620,12 +620,12 @@ discard block |
||
| 620 | 620 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
| 621 | 621 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
| 622 | 622 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
| 623 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 623 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 624 | 624 | $str .= ' </div>'."\n"; |
| 625 | 625 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
| 626 | 626 | '</div>'."\n"; |
| 627 | 627 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
| 628 | - .'</div>'."\n"; |
|
| 628 | + .'</div>'."\n"; |
|
| 629 | 629 | $str .= '</div>'."\n"; |
| 630 | 630 | return $str; |
| 631 | 631 | } |
@@ -877,7 +877,7 @@ discard block |
||
| 877 | 877 | 'bigbluebuttonbn', |
| 878 | 878 | $bigbluebuttonbn->id, |
| 879 | 879 | $bigbluebuttonbn->completionexpected |
| 880 | - ); |
|
| 880 | + ); |
|
| 881 | 881 | } |
| 882 | 882 | } |
| 883 | 883 | |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | $clienttype = BIGBLUEBUTTON_CLIENTTYPE_FLASH |
| 112 | 112 | ) { |
| 113 | 113 | $data = ['meetingID' => $meetingid, |
| 114 | - 'fullName' => $username, |
|
| 115 | - 'password' => $pw, |
|
| 116 | - 'logoutURL' => $logouturl, |
|
| 114 | + 'fullName' => $username, |
|
| 115 | + 'password' => $pw, |
|
| 116 | + 'logoutURL' => $logouturl, |
|
| 117 | 117 | ]; |
| 118 | 118 | // Choose between Adobe Flash or HTML5 Client. |
| 119 | 119 | if ($clienttype == BIGBLUEBUTTON_CLIENTTYPE_HTML5) { |
@@ -171,23 +171,23 @@ discard block |
||
| 171 | 171 | { |
| 172 | 172 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 173 | 173 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 174 | - ); |
|
| 174 | + ); |
|
| 175 | 175 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
| 176 | 176 | // Meeting info was returned. |
| 177 | 177 | return array('returncode' => $xml->returncode, |
| 178 | - 'meetingID' => $xml->meetingID, |
|
| 179 | - 'moderatorPW' => $xml->moderatorPW, |
|
| 180 | - 'attendeePW' => $xml->attendeePW, |
|
| 181 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 182 | - 'running' => $xml->running, |
|
| 183 | - 'recording' => $xml->recording, |
|
| 184 | - 'startTime' => $xml->startTime, |
|
| 185 | - 'endTime' => $xml->endTime, |
|
| 186 | - 'participantCount' => $xml->participantCount, |
|
| 187 | - 'moderatorCount' => $xml->moderatorCount, |
|
| 188 | - 'attendees' => $xml->attendees, |
|
| 189 | - 'metadata' => $xml->metadata, |
|
| 190 | - ); |
|
| 178 | + 'meetingID' => $xml->meetingID, |
|
| 179 | + 'moderatorPW' => $xml->moderatorPW, |
|
| 180 | + 'attendeePW' => $xml->attendeePW, |
|
| 181 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 182 | + 'running' => $xml->running, |
|
| 183 | + 'recording' => $xml->recording, |
|
| 184 | + 'startTime' => $xml->startTime, |
|
| 185 | + 'endTime' => $xml->endTime, |
|
| 186 | + 'participantCount' => $xml->participantCount, |
|
| 187 | + 'moderatorCount' => $xml->moderatorCount, |
|
| 188 | + 'attendees' => $xml->attendees, |
|
| 189 | + 'metadata' => $xml->metadata, |
|
| 190 | + ); |
|
| 191 | 191 | } |
| 192 | 192 | if ($xml) { |
| 193 | 193 | // Either failure or success without meeting info. |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | { |
| 348 | 348 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 349 | 349 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
| 350 | - ); |
|
| 350 | + ); |
|
| 351 | 351 | return $xml; |
| 352 | 352 | } |
| 353 | 353 | |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | foreach ($ids as $id) { |
| 457 | 457 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 458 | 458 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
| 459 | - ); |
|
| 459 | + ); |
|
| 460 | 460 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 461 | 461 | return false; |
| 462 | 462 | } |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | foreach ($ids as $id) { |
| 477 | 477 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 478 | 478 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
| 479 | - ); |
|
| 479 | + ); |
|
| 480 | 480 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 481 | 481 | return false; |
| 482 | 482 | } |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | foreach ($ids as $id) { |
| 497 | 497 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 498 | 498 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
| 499 | - ); |
|
| 499 | + ); |
|
| 500 | 500 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 501 | 501 | return false; |
| 502 | 502 | } |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | { |
| 515 | 515 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 516 | 516 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
| 517 | - ); |
|
| 517 | + ); |
|
| 518 | 518 | if ($xml) { |
| 519 | 519 | // If the xml packet returned failure it displays the message to the user. |
| 520 | 520 | return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | { |
| 533 | 533 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 534 | 534 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
| 535 | - ); |
|
| 535 | + ); |
|
| 536 | 536 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 537 | 537 | return $xml->version; |
| 538 | 538 | } |
@@ -601,10 +601,10 @@ discard block |
||
| 601 | 601 | } |
| 602 | 602 | $options = array(); |
| 603 | 603 | $options['CURLOPT_HTTPHEADER'] = array( |
| 604 | - 'Content-Type: '.$contenttype, |
|
| 605 | - 'Content-Length: '.strlen($data), |
|
| 606 | - 'Content-Language: en-US', |
|
| 607 | - ); |
|
| 604 | + 'Content-Type: '.$contenttype, |
|
| 605 | + 'Content-Length: '.strlen($data), |
|
| 606 | + 'Content-Language: en-US', |
|
| 607 | + ); |
|
| 608 | 608 | |
| 609 | 609 | return $c->post($url, $data, $options); |
| 610 | 610 | } |
@@ -760,16 +760,16 @@ discard block |
||
| 760 | 760 | 'all' => array( |
| 761 | 761 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 762 | 762 | 'children' => [] |
| 763 | - ) |
|
| 764 | - ); |
|
| 763 | + ) |
|
| 764 | + ); |
|
| 765 | 765 | $data['role'] = array( |
| 766 | 766 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 767 | 767 | 'children' => bigbluebuttonbn_get_roles_select($context) |
| 768 | - ); |
|
| 768 | + ); |
|
| 769 | 769 | $data['user'] = array( |
| 770 | 770 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 771 | 771 | 'children' => bigbluebuttonbn_get_users_select($context) |
| 772 | - ); |
|
| 772 | + ); |
|
| 773 | 773 | return $data; |
| 774 | 774 | } |
| 775 | 775 | |
@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | 'selectiontype' => 'all', |
| 815 | 815 | 'selectionid' => 'all', |
| 816 | 816 | 'role' => BIGBLUEBUTTONBN_ROLE_VIEWER |
| 817 | - ); |
|
| 817 | + ); |
|
| 818 | 818 | $defaultrules = explode(',', \mod_bigbluebuttonbn\locallib\config::get('participant_moderator_default')); |
| 819 | 819 | foreach ($defaultrules as $defaultrule) { |
| 820 | 820 | if ($defaultrule == '0') { |
@@ -827,9 +827,9 @@ discard block |
||
| 827 | 827 | continue; |
| 828 | 828 | } |
| 829 | 829 | $participantlist[] = array( |
| 830 | - 'selectiontype' => 'role', |
|
| 831 | - 'selectionid' => $defaultrule, |
|
| 832 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 830 | + 'selectiontype' => 'role', |
|
| 831 | + 'selectionid' => $defaultrule, |
|
| 832 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 833 | 833 | } |
| 834 | 834 | return $participantlist; |
| 835 | 835 | } |
@@ -870,11 +870,11 @@ discard block |
||
| 870 | 870 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 871 | 871 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 872 | 872 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 873 | - ], |
|
| 873 | + ], |
|
| 874 | 874 | 'type_selected' => 'all', |
| 875 | 875 | 'options' => ['all' => '---------------'], |
| 876 | 876 | 'selected' => 'all', |
| 877 | - ]; |
|
| 877 | + ]; |
|
| 878 | 878 | } |
| 879 | 879 | |
| 880 | 880 | /** |
@@ -1231,7 +1231,7 @@ discard block |
||
| 1231 | 1231 | // Ping again and refresh the cache. |
| 1232 | 1232 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
| 1233 | 1233 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 1234 | - ); |
|
| 1234 | + ); |
|
| 1235 | 1235 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
| 1236 | 1236 | return $meetinginfo; |
| 1237 | 1237 | } |
@@ -1674,8 +1674,8 @@ discard block |
||
| 1674 | 1674 | } |
| 1675 | 1675 | $id = 'playbacks-'.$recording['recordID']; |
| 1676 | 1676 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1677 | - 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1678 | - 'title' => $title, $visibility => $visibility)); |
|
| 1677 | + 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1678 | + 'title' => $title, $visibility => $visibility)); |
|
| 1679 | 1679 | foreach ($recording['playbacks'] as $playback) { |
| 1680 | 1680 | $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback); |
| 1681 | 1681 | } |
@@ -1699,7 +1699,7 @@ discard block |
||
| 1699 | 1699 | } |
| 1700 | 1700 | $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn'); |
| 1701 | 1701 | $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id . |
| 1702 | - '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
| 1702 | + '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
| 1703 | 1703 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
| 1704 | 1704 | $href .= '&href='.urlencode(trim($playback['url'])); |
| 1705 | 1705 | } |
@@ -1710,7 +1710,7 @@ discard block |
||
| 1710 | 1710 | 'data-action' => 'play', |
| 1711 | 1711 | 'data-target' => $playback['type'], |
| 1712 | 1712 | 'data-href' => $href, |
| 1713 | - ); |
|
| 1713 | + ); |
|
| 1714 | 1714 | if (!bigbluebuttonbn_is_bn_server() && !bigbluebuttonbn_is_valid_resource(trim($playback['url']))) { |
| 1715 | 1715 | $linkattributes['class'] = 'btn btn-sm btn-warning'; |
| 1716 | 1716 | $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn'); |
@@ -1875,7 +1875,7 @@ discard block |
||
| 1875 | 1875 | 'id' => $id, |
| 1876 | 1876 | 'onclick' => $onclick, |
| 1877 | 1877 | 'data-action' => $data['action'] |
| 1878 | - ); |
|
| 1878 | + ); |
|
| 1879 | 1879 | if (!isset($recording['imported'])) { |
| 1880 | 1880 | $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances( |
| 1881 | 1881 | $recording['recordID'] |
@@ -2509,17 +2509,17 @@ discard block |
||
| 2509 | 2509 | function bigbluebuttonbn_get_instance_type_profiles() { |
| 2510 | 2510 | $instanceprofiles = array( |
| 2511 | 2511 | BIGBLUEBUTTONBN_TYPE_ALL => array('id' => BIGBLUEBUTTONBN_TYPE_ALL, |
| 2512 | - 'name' => get_string('instance_type_default', 'bigbluebuttonbn'), |
|
| 2513 | - 'features' => array('all')), |
|
| 2512 | + 'name' => get_string('instance_type_default', 'bigbluebuttonbn'), |
|
| 2513 | + 'features' => array('all')), |
|
| 2514 | 2514 | BIGBLUEBUTTONBN_TYPE_ROOM_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_ROOM_ONLY, |
| 2515 | - 'name' => get_string('instance_type_room_only', 'bigbluebuttonbn'), |
|
| 2516 | - 'features' => array('showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit', |
|
| 2517 | - 'recording', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups', |
|
| 2518 | - 'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection', |
|
| 2519 | - 'clienttype', 'completionattendance', 'completionengagement')), |
|
| 2515 | + 'name' => get_string('instance_type_room_only', 'bigbluebuttonbn'), |
|
| 2516 | + 'features' => array('showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit', |
|
| 2517 | + 'recording', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups', |
|
| 2518 | + 'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection', |
|
| 2519 | + 'clienttype', 'completionattendance', 'completionengagement')), |
|
| 2520 | 2520 | BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY, |
| 2521 | - 'name' => get_string('instance_type_recording_only', 'bigbluebuttonbn'), |
|
| 2522 | - 'features' => array('showrecordings', 'importrecordings')) |
|
| 2521 | + 'name' => get_string('instance_type_recording_only', 'bigbluebuttonbn'), |
|
| 2522 | + 'features' => array('showrecordings', 'importrecordings')) |
|
| 2523 | 2523 | ); |
| 2524 | 2524 | return $instanceprofiles; |
| 2525 | 2525 | } |
@@ -2606,8 +2606,8 @@ discard block |
||
| 2606 | 2606 | $activitytime = ''; |
| 2607 | 2607 | if ($time) { |
| 2608 | 2608 | $activitytime = calendar_day_representation($time).' '. |
| 2609 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2610 | - calendar_time_representation($time); |
|
| 2609 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2610 | + calendar_time_representation($time); |
|
| 2611 | 2611 | } |
| 2612 | 2612 | return $activitytime; |
| 2613 | 2613 | } |
@@ -2992,7 +2992,7 @@ discard block |
||
| 2992 | 2992 | array_keys($owner), |
| 2993 | 2993 | array_merge($owner, $roles) |
| 2994 | 2994 | ) |
| 2995 | - ); |
|
| 2995 | + ); |
|
| 2996 | 2996 | } |
| 2997 | 2997 | } |
| 2998 | 2998 | |
@@ -3032,7 +3032,7 @@ discard block |
||
| 3032 | 3032 | // Web Client default. |
| 3033 | 3033 | $default = intval((int)\mod_bigbluebuttonbn\locallib\config::get('clienttype_default')); |
| 3034 | 3034 | $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
| 3035 | - BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 3035 | + BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 3036 | 3036 | $renderer->render_group_element( |
| 3037 | 3037 | 'clienttype_default', |
| 3038 | 3038 | $renderer->render_group_element_configselect( |
@@ -3519,8 +3519,8 @@ discard block |
||
| 3519 | 3519 | array( |
| 3520 | 3520 | 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'), |
| 3521 | 3521 | 'context' => $bbbsession['bigbluebuttonbnURL'] |
| 3522 | - ) |
|
| 3523 | - ); |
|
| 3522 | + ) |
|
| 3523 | + ); |
|
| 3524 | 3524 | } |
| 3525 | 3525 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
| 3526 | 3526 | $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL']; |