Completed
Pull Request — v2.2-stable (#68)
by
unknown
01:59
created
locallib.php 1 patch
Doc Comments   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
  * Helper function to retrieve recordings from a BigBlueButton server.
174 174
  *
175 175
  * @param string|array $meetingids   list of meetingIDs "mid1,mid2,mid3" or array("mid1","mid2","mid3")
176
- * @param string|array $recordingids list of $recordingids "rid1,rid2,rid3" or array("rid1","rid2","rid3") for filtering
176
+ * @param string $recordingids list of $recordingids "rid1,rid2,rid3" or array("rid1","rid2","rid3") for filtering
177 177
  *
178
- * @return associative array with recordings indexed by recordID, each recording is a non sequential associative array
178
+ * @return string array with recordings indexed by recordID, each recording is a non sequential associative array
179 179
  */
180 180
 function bigbluebuttonbn_get_recordings_array($meetingids, $recordingids = []) {
181 181
     $meetingidsarray = $meetingids;
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
  * Helper function to retrieve imported recordings from the Moodle database.
263 263
  * The references are stored as events in bigbluebuttonbn_logs.
264 264
  *
265
- * @param string $courseid
265
+ * @param integer $courseid
266 266
  * @param string $bigbluebuttonbnid
267 267
  * @param bool   $subset
268 268
  *
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 /**
291 291
  * Helper function to retrive the default config.xml file.
292 292
  *
293
- * @return string
293
+ * @return null|SimpleXMLElement
294 294
  */
295 295
 function bigbluebuttonbn_get_default_config_xml() {
296 296
     $xml = bigbluebuttonbn_wrap_xml_load_file(
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
  * @param object $a
373 373
  * @param object $b
374 374
  *
375
- * @return array
375
+ * @return integer
376 376
  */
377 377
 function bigbluebuttonbn_recording_build_sorter($a, $b) {
378 378
     if ($a['startTime'] < $b['startTime']) {
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
  * @param string $data
484 484
  * @param string $contenttype
485 485
  *
486
- * @return object
486
+ * @return null|SimpleXMLElement
487 487
  */
488 488
 function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
489 489
     if (extension_loaded('curl')) {
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
  * @param string $data
525 525
  * @param string $contenttype
526 526
  *
527
- * @return object
527
+ * @return string
528 528
  */
529 529
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
530 530
     $c = new curl();
@@ -894,7 +894,7 @@  discard block
 block discarded – undo
894 894
  * @param integer $instance
895 895
  * @param integer $voicebridge
896 896
  *
897
- * @return string
897
+ * @return boolean
898 898
  */
899 899
 function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) {
900 900
     global $DB;
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
 /**
998 998
  * Helper returns an array with all possible bigbluebuttonbn events.
999 999
  *
1000
- * @return array
1000
+ * @return string[]
1001 1001
  */
1002 1002
 function bigbluebuttonbn_events() {
1003 1003
     return array(
@@ -1223,7 +1223,7 @@  discard block
 block discarded – undo
1223 1223
  * @param string $meetingid
1224 1224
  * @param string $configxml
1225 1225
  *
1226
- * @return object
1226
+ * @return null|SimpleXMLElement
1227 1227
  */
1228 1228
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1229 1229
     $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?';
@@ -1272,7 +1272,7 @@  discard block
 block discarded – undo
1272 1272
  * @param array $recording
1273 1273
  * @param array $tools
1274 1274
  *
1275
- * @return array
1275
+ * @return null|stdClass
1276 1276
  */
1277 1277
 function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) {
1278 1278
     if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) {
@@ -1836,7 +1836,7 @@  discard block
 block discarded – undo
1836 1836
  *
1837 1837
  * @param array $bbbsession
1838 1838
  * @param array $recording
1839
- * @param object $rowdata
1839
+ * @param stdClass $rowdata
1840 1840
  *
1841 1841
  * @return object
1842 1842
  */
@@ -2031,7 +2031,7 @@  discard block
 block discarded – undo
2031 2031
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2032 2032
  * in the getRecordings request considering only those that belong to deleted activities.
2033 2033
  *
2034
- * @param string $courseid
2034
+ * @param integer $courseid
2035 2035
  * @param string $bigbluebuttonbnid
2036 2036
  * @param bool   $subset
2037 2037
  *
@@ -2055,7 +2055,7 @@  discard block
 block discarded – undo
2055 2055
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2056 2056
  * in the getRecordings request considering only those that belong to imported recordings.
2057 2057
  *
2058
- * @param string $courseid
2058
+ * @param integer $courseid
2059 2059
  * @param string $bigbluebuttonbnid
2060 2060
  * @param bool   $subset
2061 2061
  *
@@ -2078,7 +2078,7 @@  discard block
 block discarded – undo
2078 2078
 /**
2079 2079
  * Helper function to get recordings  and imported recordings together.
2080 2080
  *
2081
- * @param string $courseid
2081
+ * @param integer $courseid
2082 2082
  * @param string $bigbluebuttonbnid
2083 2083
  * @param bool   $subset
2084 2084
  * @param bool   $includedeleted
@@ -2096,7 +2096,7 @@  discard block
 block discarded – undo
2096 2096
  * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events
2097 2097
  * in bigbluebuttonbn_logs.
2098 2098
  *
2099
- * @param string $courseid
2099
+ * @param integer $courseid
2100 2100
  * @param string $bigbluebuttonbnid
2101 2101
  * @param bool   $subset
2102 2102
  * @param bool   $includedeleted
Please login to merge, or discard this patch.