@@ -77,8 +77,8 @@ |
||
| 77 | 77 | $body .= html_writer::start_tag('br'); |
| 78 | 78 | $body .= html_writer::tag('input', '', |
| 79 | 79 | array('type' => 'button', 'class' => 'btn btn-secondary', |
| 80 | - 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
| 81 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
| 80 | + 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
| 81 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
| 82 | 82 | // JavaScript for locales. |
| 83 | 83 | $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn'); |
| 84 | 84 | // Require JavaScript modules. |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | 'alt' => $contents, |
| 105 | 105 | 'title' => $contents, |
| 106 | 106 | 'src' => $jsvars['pix_icon_delete'] |
| 107 | - ); |
|
| 107 | + ); |
|
| 108 | 108 | $jsvars['pix_icon_delete'] = html_writer::tag('img', '', $options); |
| 109 | 109 | } |
| 110 | 110 | $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-modform', |
@@ -224,8 +224,8 @@ discard block |
||
| 224 | 224 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 225 | 225 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
| 226 | 226 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
| 227 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 228 | - ); |
|
| 227 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 228 | + ); |
|
| 229 | 229 | } else { |
| 230 | 230 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 231 | 231 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | */ |
| 264 | 264 | private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
| 265 | 265 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
| 266 | - 'description_key' => null]; |
|
| 266 | + 'description_key' => null]; |
|
| 267 | 267 | if ($cfg['recordings_html_editable']) { |
| 268 | 268 | $field['type'] = 'checkbox'; |
| 269 | 269 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 272 | 272 | $field['description_key'], $cfg['recordings_html_default']); |
| 273 | 273 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
| 274 | - 'description_key' => null]; |
|
| 274 | + 'description_key' => null]; |
|
| 275 | 275 | if ($cfg['recordings_deleted_editable']) { |
| 276 | 276 | $field['type'] = 'checkbox'; |
| 277 | 277 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 280 | 280 | $field['description_key'], $cfg['recordings_deleted_default']); |
| 281 | 281 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
| 282 | - 'description_key' => null]; |
|
| 282 | + 'description_key' => null]; |
|
| 283 | 283 | if ($cfg['recordings_imported_editable']) { |
| 284 | 284 | $field['type'] = 'checkbox'; |
| 285 | 285 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | $htmlselectiontype = html_writer::select($participantselection['type_options'], |
| 350 | 350 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
| 351 | 351 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 352 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 352 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 353 | 353 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 354 | 354 | $participantselection['selected'], array(), |
| 355 | 355 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | 'type' => 'button', 'class' => 'btn btn-secondary', |
| 358 | 358 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
| 359 | 359 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
| 360 | - )); |
|
| 360 | + )); |
|
| 361 | 361 | $htmladdparticipant = html_writer::tag('div', |
| 362 | 362 | $htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
| 363 | 363 | $mform->addElement('html', "\n\n"); |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | return $output; |
| 388 | 388 | } |
| 389 | 389 | $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
| 390 | - 'bigbluebuttonbn_view_general_warning')."\n"; |
|
| 390 | + 'bigbluebuttonbn_view_general_warning')."\n"; |
|
| 391 | 391 | $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>'.$message."\n"; |
| 392 | 392 | $output .= ' <div class="singlebutton">'."\n"; |
| 393 | 393 | if (!empty($href)) { |
@@ -497,12 +497,12 @@ discard block |
||
| 497 | 497 | $recordings = bigbluebuttonbn_get_recordings( |
| 498 | 498 | $bbbsession['course']->id, $bigbluebuttonbnid, $showroom, |
| 499 | 499 | $bbbsession['bigbluebuttonbn']->recordings_deleted |
| 500 | - ); |
|
| 500 | + ); |
|
| 501 | 501 | } |
| 502 | 502 | // Get recording links. |
| 503 | 503 | $recordingsimported = bigbluebuttonbn_get_recordings_imported_array( |
| 504 | 504 | $bbbsession['course']->id, $bigbluebuttonbnid, $showroom |
| 505 | - ); |
|
| 505 | + ); |
|
| 506 | 506 | /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent |
| 507 | 507 | * recordings are not included. */ |
| 508 | 508 | $recordings += $recordingsimported; |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | // JavaScript variables for recordings. |
| 516 | 516 | $jsvars += array( |
| 517 | 517 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
| 518 | - ); |
|
| 518 | + ); |
|
| 519 | 519 | // If there are meetings with recordings load the data to the table. |
| 520 | 520 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
| 521 | 521 | // Render a plain html table. |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | $jsvars += array( |
| 526 | 526 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
| 527 | 527 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
| 528 | - ); |
|
| 528 | + ); |
|
| 529 | 529 | // Render a YUI table. |
| 530 | 530 | return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table')); |
| 531 | 531 | } |
@@ -540,10 +540,10 @@ discard block |
||
| 540 | 540 | global $CFG; |
| 541 | 541 | $button = html_writer::tag('input', '', |
| 542 | 542 | array('type' => 'button', |
| 543 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 544 | - 'class' => 'btn btn-secondary', |
|
| 545 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 546 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 543 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
| 544 | + 'class' => 'btn btn-secondary', |
|
| 545 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
| 546 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
| 547 | 547 | $output = html_writer::start_tag('br'); |
| 548 | 548 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
| 549 | 549 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * Remove this block when restored |
| 69 | 69 | */ |
| 70 | 70 | |
| 71 | - /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 71 | + /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
| 72 | 72 | const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/'; |
| 73 | 73 | /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */ |
| 74 | 74 | const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6'; |
@@ -345,12 +345,12 @@ discard block |
||
| 345 | 345 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
| 346 | 346 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
| 347 | 347 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
| 348 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 348 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
| 349 | 349 | $str .= ' </div>'."\n"; |
| 350 | 350 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
| 351 | 351 | '</div>'."\n"; |
| 352 | 352 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
| 353 | - .'</div>'."\n"; |
|
| 353 | + .'</div>'."\n"; |
|
| 354 | 354 | $str .= '</div>'."\n"; |
| 355 | 355 | return $str; |
| 356 | 356 | } |
@@ -119,9 +119,9 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) { |
| 121 | 121 | $data = ['meetingID' => $meetingid, |
| 122 | - 'fullName' => $username, |
|
| 123 | - 'password' => $pw, |
|
| 124 | - 'logoutURL' => $logouturl, |
|
| 122 | + 'fullName' => $username, |
|
| 123 | + 'password' => $pw, |
|
| 124 | + 'logoutURL' => $logouturl, |
|
| 125 | 125 | ]; |
| 126 | 126 | if (!is_null($configtoken)) { |
| 127 | 127 | $data['configToken'] = $configtoken; |
@@ -173,23 +173,23 @@ discard block |
||
| 173 | 173 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
| 174 | 174 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 175 | 175 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 176 | - ); |
|
| 176 | + ); |
|
| 177 | 177 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
| 178 | 178 | // Meeting info was returned. |
| 179 | 179 | return array('returncode' => $xml->returncode, |
| 180 | - 'meetingID' => $xml->meetingID, |
|
| 181 | - 'moderatorPW' => $xml->moderatorPW, |
|
| 182 | - 'attendeePW' => $xml->attendeePW, |
|
| 183 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 184 | - 'running' => $xml->running, |
|
| 185 | - 'recording' => $xml->recording, |
|
| 186 | - 'startTime' => $xml->startTime, |
|
| 187 | - 'endTime' => $xml->endTime, |
|
| 188 | - 'participantCount' => $xml->participantCount, |
|
| 189 | - 'moderatorCount' => $xml->moderatorCount, |
|
| 190 | - 'attendees' => $xml->attendees, |
|
| 191 | - 'metadata' => $xml->metadata, |
|
| 192 | - ); |
|
| 180 | + 'meetingID' => $xml->meetingID, |
|
| 181 | + 'moderatorPW' => $xml->moderatorPW, |
|
| 182 | + 'attendeePW' => $xml->attendeePW, |
|
| 183 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 184 | + 'running' => $xml->running, |
|
| 185 | + 'recording' => $xml->recording, |
|
| 186 | + 'startTime' => $xml->startTime, |
|
| 187 | + 'endTime' => $xml->endTime, |
|
| 188 | + 'participantCount' => $xml->participantCount, |
|
| 189 | + 'moderatorCount' => $xml->moderatorCount, |
|
| 190 | + 'attendees' => $xml->attendees, |
|
| 191 | + 'metadata' => $xml->metadata, |
|
| 192 | + ); |
|
| 193 | 193 | } |
| 194 | 194 | if ($xml) { |
| 195 | 195 | // Either failure or success without meeting info. |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | function bigbluebuttonbn_get_default_config_xml() { |
| 332 | 332 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 333 | 333 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
| 334 | - ); |
|
| 334 | + ); |
|
| 335 | 335 | return $xml; |
| 336 | 336 | } |
| 337 | 337 | |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | foreach ($ids as $id) { |
| 422 | 422 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 423 | 423 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
| 424 | - ); |
|
| 424 | + ); |
|
| 425 | 425 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 426 | 426 | return false; |
| 427 | 427 | } |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | foreach ($ids as $id) { |
| 441 | 441 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 442 | 442 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
| 443 | - ); |
|
| 443 | + ); |
|
| 444 | 444 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 445 | 445 | return false; |
| 446 | 446 | } |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | foreach ($ids as $id) { |
| 460 | 460 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 461 | 461 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
| 462 | - ); |
|
| 462 | + ); |
|
| 463 | 463 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 464 | 464 | return false; |
| 465 | 465 | } |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
| 477 | 477 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 478 | 478 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
| 479 | - ); |
|
| 479 | + ); |
|
| 480 | 480 | if ($xml) { |
| 481 | 481 | // If the xml packet returned failure it displays the message to the user. |
| 482 | 482 | return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | */ |
| 497 | 497 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 498 | 498 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 499 | - ); |
|
| 499 | + ); |
|
| 500 | 500 | return ($xml && $xml->returncode == 'SUCCESS'); |
| 501 | 501 | } |
| 502 | 502 | |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | function bigbluebuttonbn_get_server_version() { |
| 509 | 509 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 510 | 510 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
| 511 | - ); |
|
| 511 | + ); |
|
| 512 | 512 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 513 | 513 | return $xml->version; |
| 514 | 514 | } |
@@ -576,10 +576,10 @@ discard block |
||
| 576 | 576 | |
| 577 | 577 | $options = array(); |
| 578 | 578 | $options['CURLOPT_HTTPHEADER'] = array( |
| 579 | - 'Content-Type: '.$contenttype, |
|
| 580 | - 'Content-Length: '.strlen($data), |
|
| 581 | - 'Content-Language: en-US', |
|
| 582 | - ); |
|
| 579 | + 'Content-Type: '.$contenttype, |
|
| 580 | + 'Content-Length: '.strlen($data), |
|
| 581 | + 'Content-Language: en-US', |
|
| 582 | + ); |
|
| 583 | 583 | |
| 584 | 584 | return $c->post($url, $data, $options); |
| 585 | 585 | } |
@@ -722,16 +722,16 @@ discard block |
||
| 722 | 722 | 'all' => array( |
| 723 | 723 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 724 | 724 | 'children' => [] |
| 725 | - ) |
|
| 726 | - ); |
|
| 725 | + ) |
|
| 726 | + ); |
|
| 727 | 727 | $data['role'] = array( |
| 728 | 728 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 729 | 729 | 'children' => bigbluebuttonbn_get_roles_select($context) |
| 730 | - ); |
|
| 730 | + ); |
|
| 731 | 731 | $data['user'] = array( |
| 732 | 732 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 733 | 733 | 'children' => bigbluebuttonbn_get_users_select($context) |
| 734 | - ); |
|
| 734 | + ); |
|
| 735 | 735 | return $data; |
| 736 | 736 | } |
| 737 | 737 | |
@@ -776,9 +776,9 @@ discard block |
||
| 776 | 776 | continue; |
| 777 | 777 | } |
| 778 | 778 | $participantlistarray[] = array( |
| 779 | - 'selectiontype' => 'role', |
|
| 780 | - 'selectionid' => $moderatordefault, |
|
| 781 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 779 | + 'selectiontype' => 'role', |
|
| 780 | + 'selectionid' => $moderatordefault, |
|
| 781 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 782 | 782 | } |
| 783 | 783 | return $participantlistarray; |
| 784 | 784 | } |
@@ -821,11 +821,11 @@ discard block |
||
| 821 | 821 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 822 | 822 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 823 | 823 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 824 | - ], |
|
| 824 | + ], |
|
| 825 | 825 | 'type_selected' => 'all', |
| 826 | 826 | 'options' => ['all' => '---------------'], |
| 827 | 827 | 'selected' => 'all', |
| 828 | - ]; |
|
| 828 | + ]; |
|
| 829 | 829 | } |
| 830 | 830 | |
| 831 | 831 | /** |
@@ -1103,7 +1103,7 @@ discard block |
||
| 1103 | 1103 | $eventproperties['other'] = $options['other']; |
| 1104 | 1104 | } |
| 1105 | 1105 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
| 1106 | - array($eventproperties)); |
|
| 1106 | + array($eventproperties)); |
|
| 1107 | 1107 | $event->trigger(); |
| 1108 | 1108 | } |
| 1109 | 1109 | |
@@ -1147,7 +1147,7 @@ discard block |
||
| 1147 | 1147 | // Ping again and refresh the cache. |
| 1148 | 1148 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
| 1149 | 1149 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 1150 | - ); |
|
| 1150 | + ); |
|
| 1151 | 1151 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
| 1152 | 1152 | return $meetinginfo; |
| 1153 | 1153 | } |
@@ -1411,8 +1411,8 @@ discard block |
||
| 1411 | 1411 | } |
| 1412 | 1412 | $id = 'playbacks-'.$recording['recordID']; |
| 1413 | 1413 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1414 | - 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1415 | - 'title' => $title, $visibility => $visibility)); |
|
| 1414 | + 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1415 | + 'title' => $title, $visibility => $visibility)); |
|
| 1416 | 1416 | foreach ($recording['playbacks'] as $playback) { |
| 1417 | 1417 | $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bigbluebuttonbnid, |
| 1418 | 1418 | $playback).' '; |
@@ -1426,7 +1426,7 @@ discard block |
||
| 1426 | 1426 | $title = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn'); |
| 1427 | 1427 | $onclick = 'M.mod_bigbluebuttonbn.recordings.recordingPlay(this);'; |
| 1428 | 1428 | $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=play&bn='.$bigbluebuttonbnid. |
| 1429 | - '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type']; |
|
| 1429 | + '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type']; |
|
| 1430 | 1430 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
| 1431 | 1431 | $href .= '&href='.urlencode(trim($playback['url'])); |
| 1432 | 1432 | } |
@@ -1438,7 +1438,7 @@ discard block |
||
| 1438 | 1438 | 'data-target' => $playback['type'], |
| 1439 | 1439 | 'data-href' => $href, |
| 1440 | 1440 | 'class' => 'btn btn-sm btn-default' |
| 1441 | - ); |
|
| 1441 | + ); |
|
| 1442 | 1442 | return $OUTPUT->action_link('#', $title, null, $linkattributes); |
| 1443 | 1443 | } |
| 1444 | 1444 | |
@@ -1522,7 +1522,7 @@ discard block |
||
| 1522 | 1522 | 'onclick' => $onclick, |
| 1523 | 1523 | 'data-action' => $data['action'], |
| 1524 | 1524 | 'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID']) |
| 1525 | - ); |
|
| 1525 | + ); |
|
| 1526 | 1526 | return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false); |
| 1527 | 1527 | } |
| 1528 | 1528 | // With text for $manageaction. |
@@ -1627,7 +1627,7 @@ discard block |
||
| 1627 | 1627 | $texthead . $rowdata->activity . $texttail, $texthead . $rowdata->description . $texttail, |
| 1628 | 1628 | $rowdata->preview, $texthead . $rowdata->date_formatted . $texttail, |
| 1629 | 1629 | $rowdata->duration_formatted |
| 1630 | - ); |
|
| 1630 | + ); |
|
| 1631 | 1631 | if ($bbbsession['managerecordings']) { |
| 1632 | 1632 | $row->cells[] = $rowdata->actionbar; |
| 1633 | 1633 | } |
@@ -1947,8 +1947,8 @@ discard block |
||
| 1947 | 1947 | $activitytime = ''; |
| 1948 | 1948 | if ($time) { |
| 1949 | 1949 | $activitytime = calendar_day_representation($time).' '. |
| 1950 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 1951 | - calendar_time_representation($time); |
|
| 1950 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 1951 | + calendar_time_representation($time); |
|
| 1952 | 1952 | } |
| 1953 | 1953 | return $activitytime; |
| 1954 | 1954 | } |
@@ -2233,7 +2233,7 @@ discard block |
||
| 2233 | 2233 | $renderer->render_group_element('participant_moderator_default', |
| 2234 | 2234 | $renderer->render_group_element_configmultiselect('participant_moderator_default', |
| 2235 | 2235 | array_keys($owner), array_merge($owner, $roles)) |
| 2236 | - ); |
|
| 2236 | + ); |
|
| 2237 | 2237 | } |
| 2238 | 2238 | } |
| 2239 | 2239 | |