Completed
Push — master ( 1a424a...349780 )
by Jesus
02:02
created
bbb_broker.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -181,6 +181,9 @@  discard block
 block discarded – undo
181 181
     return "{$params['callback']}({$callbackresponsedata});";
182 182
 }
183 183
 
184
+/**
185
+ * @param boolean $running
186
+ */
184 187
 function bigbluebuttonbn_broker_meeting_info_can_join($bbbsession, $running, $participantcount) {
185 188
     $status = array("can_join" => false);
186 189
     if ($running) {
@@ -201,6 +204,9 @@  discard block
 block discarded – undo
201 204
     return $status;
202 205
 }
203 206
 
207
+/**
208
+ * @param boolean $running
209
+ */
204 210
 function bigbluebuttonbn_broker_meeting_info_can_end($bbbsession, $running) {
205 211
     $status = array("can_end" => false);
206 212
     if ($running && ($bbbsession['administrator'] || $bbbsession['moderator'])) {
@@ -348,6 +354,9 @@  discard block
 block discarded – undo
348 354
     return "{$params['callback']}({$callbackresponsedata});";
349 355
 }
350 356
 
357
+/**
358
+ * @param string $action
359
+ */
351 360
 function bigbluebuttonbn_broker_recording_action_perform($action, $bbbsession, $params, $recordings) {
352 361
     if ($action == 'recording_publish') {
353 362
         return bigbluebuttonbn_broker_recording_action_publish($bbbsession, $params, $recordings);
@@ -377,6 +386,9 @@  discard block
 block discarded – undo
377 386
     return bigbluebuttonbn_broker_recording_action_publishunprotect($bbbsession, $params, $recordings, 'unprotect');
378 387
 }
379 388
 
389
+/**
390
+ * @param string $action
391
+ */
380 392
 function bigbluebuttonbn_broker_recording_action_publishunprotect($bbbsession, $params, $recordings, $action) {
381 393
     $status = true;
382 394
     if (bigbluebuttonbn_broker_recording_is_imported($recordings, $params['id'])) {
@@ -408,6 +420,9 @@  discard block
 block discarded – undo
408 420
     return bigbluebuttonbn_broker_recording_action_unpublishprotect($bbbsession, $params, $recordings, 'protect');
409 421
 }
410 422
 
423
+/**
424
+ * @param string $action
425
+ */
411 426
 function bigbluebuttonbn_broker_recording_action_unpublishprotect($bbbsession, $params, $recordings, $action) {
412 427
     global $DB;
413 428
 
Please login to merge, or discard this patch.
locallib.php 1 patch
Doc Comments   +15 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
 const BIGBLUEBUTTON_EVENT_RECORDING_EDITED = 'recording_edited';
57 57
 const BIGBLUEBUTTON_EVENT_RECORDING_VIEWED = 'recording_viewed';
58 58
 
59
+/**
60
+ * @param string $meta
61
+ */
59 62
 function bigbluebuttonbn_logs(array $bbbsession, $event, array $overrides = [], $meta = null) {
60 63
     global $DB;
61 64
 
@@ -585,6 +588,12 @@  discard block
 block discarded – undo
585 588
     }
586 589
 }
587 590
 
591
+/**
592
+ * @param string $url
593
+ * @param string $data
594
+ *
595
+ * @return string
596
+ */
588 597
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = BIGBLUEBUTTONBN_METHOD_GET,
589 598
     $data = null, $contenttype = 'text/xml') {
590 599
     $c = new curl();
@@ -760,6 +769,9 @@  discard block
 block discarded – undo
760 769
       ];
761 770
 }
762 771
 
772
+/**
773
+ * @param string $participants
774
+ */
763 775
 function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) {
764 776
     global $USER;
765 777
     if (empty($userid)) {
@@ -1023,8 +1035,6 @@  discard block
 block discarded – undo
1023 1035
 }
1024 1036
 
1025 1037
 /**
1026
- * @param string $recordingid
1027
- * @param string $bigbluebuttonbnid
1028 1038
  */
1029 1039
 function bigbluebuttonbn_delete_recording_imported($id) {
1030 1040
     global $DB;
@@ -1475,6 +1485,9 @@  discard block
 block discarded – undo
1475 1485
     return html_writer::div(html_writer::table($table), '', array('id' => 'bigbluebuttonbn_html_table'));
1476 1486
 }
1477 1487
 
1488
+/**
1489
+ * @param integer $len
1490
+ */
1478 1491
 function bigbluebuttonbn_html2text($html, $len) {
1479 1492
     $text = strip_tags($html);
1480 1493
     $text = str_replace(' ', ' ', $text);
Please login to merge, or discard this patch.