Completed
Push — master ( a815c6...034c94 )
by Jesus
02:58
created
view.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         return $output;
411 411
     }
412 412
     $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in',
413
-      'bigbluebuttonbn_view_general_warning')."\n";
413
+        'bigbluebuttonbn_view_general_warning')."\n";
414 414
     $output .= '  '.$message."\n";
415 415
     $output .= '  <div class="singlebutton">'."\n";
416 416
     if (!empty($href)) {
@@ -507,12 +507,12 @@  discard block
 block discarded – undo
507 507
     $recordings = bigbluebuttonbn_get_recordings(
508 508
         $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom'],
509 509
         $bbbsession['bigbluebuttonbn']->recordings_deleted
510
-      );
510
+        );
511 511
     if ($enabledfeatures['importrecordings']) {
512 512
         // Get recording links.
513 513
         $recordingsimported = bigbluebuttonbn_get_recordings_imported_array(
514 514
             $bbbsession['course']->id, $bigbluebuttonbnid, $enabledfeatures['showroom']
515
-          );
515
+            );
516 516
         /* Perform aritmetic addition instead of merge so the imported recordings corresponding to existent
517 517
          * recordings are not included. */
518 518
         $recordings += $recordingsimported;
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
     // JavaScript variables for recordings.
527 527
     $jsvars += array(
528 528
             'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1',
529
-          );
529
+            );
530 530
     // If there are meetings with recordings load the data to the table.
531 531
     if ($bbbsession['bigbluebuttonbn']->recordings_html) {
532 532
         // Render a plain html table.
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
     $jsvars += array(
537 537
             'columns' => bigbluebuttonbn_get_recording_columns($bbbsession),
538 538
             'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings),
539
-          );
539
+            );
540 540
     // Render a YUI table.
541 541
     return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table'));
542 542
 }
@@ -556,10 +556,10 @@  discard block
 block discarded – undo
556 556
     }
557 557
     $button = html_writer::tag('input', '',
558 558
         array('type' => 'button',
559
-              'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
560
-              'class' => 'btn btn-secondary',
561
-              'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
562
-                  $bbbsession['bigbluebuttonbn']->id.'\''));
559
+                'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'),
560
+                'class' => 'btn btn-secondary',
561
+                'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='.
562
+                    $bbbsession['bigbluebuttonbn']->id.'\''));
563 563
     $output  = html_writer::start_tag('br');
564 564
     $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button'));
565 565
     $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table'));
Please login to merge, or discard this patch.
config-dist.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
  * are 1=checked, 0=unchecked.
69 69
  **/
70 70
 
71
- /* When the value is set to 0 (unchecked) the all the features for recordings
71
+    /* When the value is set to 0 (unchecked) the all the features for recordings
72 72
   *  are ignored. Recording features are enabled by default.
73 73
   *  $CFG->bigbluebuttonbn['recordings_enabled'] = 1;
74 74
   */
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
  * 5. CONFIGURATION FOR "STATIC VOICE BRIDGE" FEATURE
154 154
  *
155 155
  **/
156
- /*
156
+    /*
157 157
  * A conference voice bridge number can be permanently assigned to a room
158 158
  * or activity.
159 159
  * $CFG->bigbluebuttonbn['voicebridge_editable'] = 0;
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
  * 6. CONFIGURATION FOR "PRE-UPLOAD PRESENTATION" FEATURE
164 164
  *
165 165
  **/
166
- /*
166
+    /*
167 167
  * Since version 0.8, BigBluebutton has an implementation for allowing
168 168
  * preuploading presentation. When this feature is enabled, users creating or
169 169
  * editing a room or activity can upload a PDF or Office document to the
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
  * applied to each room or activity, or globally.
181 181
  **/
182 182
 
183
- /*
183
+    /*
184 184
  * The number of users allowed in a session by default when a new room or
185 185
  * conference is added. If the number is set to 0, no limit is established.
186 186
  * $CFG->bigbluebuttonbn['userlimit_default'] = 0;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
  * By default only the owner is assigned.
202 202
  **/
203 203
 
204
- /*
204
+    /*
205 205
  * The values for this parameter can be '0' (which identifies the owner) and/or any of the role IDs defined in
206 206
  * Moodle (including the custom parameters). The value used will be the key for the role.
207 207
  * [owner=0|manager=1|coursecreator=2|editingteacher=3|teacher=4|student=5|guest=6|user=7|frontpage=8|ANY_CUSTOM_ROLE=xx]
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
  * 9. CONFIGURATION FOR "NOTIFICATION SENDING" FEATURE
213 213
  *
214 214
  **/
215
- /*
215
+    /*
216 216
  * When the value is set to 1 (checked) the 'notification sending'
217 217
  * capability can be used by the user creating or editing the room or
218 218
  * activity.
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
  * 10. CONFIGURATION FOR "RECORDING READY" FEATURE
227 227
  *
228 228
  **/
229
- /*
229
+    /*
230 230
  * When the value is set to 1 (checked) the 'notify users when recording ready'
231 231
  * capability is enabled, meaning that a message will be sent to all enrolled
232 232
  * users in a course when a recording is ready
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
  * 12. GENERAL CONFIGURATION FOR RECORDINGS UI
251 251
  *
252 252
  **/
253
- /*
253
+    /*
254 254
  * When the value is set to 1 (checked) the bigbluebuttonbn resources
255 255
  * will show the recodings in an html table by default.
256 256
  * $CFG->bigbluebuttonbn['recordings_html_default'] = 0;
@@ -274,22 +274,22 @@  discard block
 block discarded – undo
274 274
  * $CFG->bigbluebuttonbn['recordings_deleted_editable'] = 0;
275 275
  */
276 276
 
277
- /*
277
+    /*
278 278
   * When the value is set to 1 (checked) the bigbluebuttonbn resources for recordings
279 279
   * will show only the imported links as part of the list.
280 280
   * $CFG->bigbluebuttonbn['recordings_imported_default'] = 0;
281 281
   */
282 282
 
283
- /*
283
+    /*
284 284
   * When the value is set to 1 (checked) the 'show only imported links'
285 285
   * capability can be enabled/disabled by the user creating or editing the resource for recordings.
286 286
   * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1;
287 287
   */
288 288
 
289
-  /*
289
+    /*
290 290
    *  CONFIGURATION FOR FEATURES OFFERED BY BN SERVERS
291 291
   ** ------------------------------------------------------------------ **/
292
-  /*
292
+    /*
293 293
    * When general_warning_message value is different than "", the string is shown
294 294
    * as a warning message to privileged users (administrators and Teachers or users allowed to edit).
295 295
    * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? ";
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
@@ -1517,8 +1517,8 @@  discard block
 block discarded – undo
1517 1517
     }
1518 1518
     $id = 'playbacks-'.$recording['recordID'];
1519 1519
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1520
-          'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1521
-          'title' => $title, $visibility => $visibility));
1520
+            'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1521
+            'title' => $title, $visibility => $visibility));
1522 1522
     foreach ($recording['playbacks'] as $playback) {
1523 1523
         $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bigbluebuttonbnid,
1524 1524
             $playback).'&#32;';
@@ -1541,7 +1541,7 @@  discard block
 block discarded – undo
1541 1541
     $title = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1542 1542
     $onclick = 'M.mod_bigbluebuttonbn.recordings.recordingPlay(this);';
1543 1543
     $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=play&bn='.$bigbluebuttonbnid.
1544
-      '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type'];
1544
+        '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type'];
1545 1545
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1546 1546
         $href .= '&href='.urlencode(trim($playback['url']));
1547 1547
     }
@@ -1553,7 +1553,7 @@  discard block
 block discarded – undo
1553 1553
         'data-target' => $playback['type'],
1554 1554
         'data-href' => $href,
1555 1555
         'class' => 'btn btn-sm btn-default'
1556
-      );
1556
+        );
1557 1557
     return $OUTPUT->action_link('#', $title, null, $linkattributes);
1558 1558
 }
1559 1559
 
@@ -1667,10 +1667,10 @@  discard block
 block discarded – undo
1667 1667
             'id' => $id,
1668 1668
             'onclick' => $onclick,
1669 1669
             'data-action' => $data['action']
1670
-          );
1670
+            );
1671 1671
         if (!isset($recording['imported'])) {
1672 1672
             $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances(
1673
-              $recording['recordID']);
1673
+                $recording['recordID']);
1674 1674
         }
1675 1675
         if (isset($data['disabled'])) {
1676 1676
             $iconattributes['class'] .= ' fa-' . $data['disabled'];
@@ -2181,8 +2181,8 @@  discard block
 block discarded – undo
2181 2181
     $activitytime = '';
2182 2182
     if ($time) {
2183 2183
         $activitytime = calendar_day_representation($time).' '.
2184
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2185
-          calendar_time_representation($time);
2184
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2185
+            calendar_time_representation($time);
2186 2186
     }
2187 2187
     return $activitytime;
2188 2188
 }
@@ -2467,7 +2467,7 @@  discard block
 block discarded – undo
2467 2467
         $renderer->render_group_element('participant_moderator_default',
2468 2468
             $renderer->render_group_element_configmultiselect('participant_moderator_default',
2469 2469
                 array_keys($owner), array_merge($owner, $roles))
2470
-          );
2470
+            );
2471 2471
     }
2472 2472
 }
2473 2473
 
Please login to merge, or discard this patch.