@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | * Helper function to retrieve imported recordings from the Moodle database. |
| 308 | 308 | * The references are stored as events in bigbluebuttonbn_logs. |
| 309 | 309 | * |
| 310 | - * @param string $courseid |
|
| 310 | + * @param integer $courseid |
|
| 311 | 311 | * @param string $bigbluebuttonbnid |
| 312 | 312 | * @param bool $subset |
| 313 | 313 | * |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | /** |
| 336 | 336 | * Helper function to retrive the default config.xml file. |
| 337 | 337 | * |
| 338 | - * @return string |
|
| 338 | + * @return null|SimpleXMLElement |
|
| 339 | 339 | */ |
| 340 | 340 | function bigbluebuttonbn_get_default_config_xml() { |
| 341 | 341 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | * @param object $a |
| 418 | 418 | * @param object $b |
| 419 | 419 | * |
| 420 | - * @return array |
|
| 420 | + * @return integer |
|
| 421 | 421 | */ |
| 422 | 422 | function bigbluebuttonbn_recording_build_sorter($a, $b) { |
| 423 | 423 | global $CFG; |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | * @param string $data |
| 532 | 532 | * @param string $contenttype |
| 533 | 533 | * |
| 534 | - * @return object |
|
| 534 | + * @return null|SimpleXMLElement |
|
| 535 | 535 | */ |
| 536 | 536 | function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') { |
| 537 | 537 | if (extension_loaded('curl')) { |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | * @param string $data |
| 573 | 573 | * @param string $contenttype |
| 574 | 574 | * |
| 575 | - * @return object |
|
| 575 | + * @return string |
|
| 576 | 576 | */ |
| 577 | 577 | function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') { |
| 578 | 578 | $c = new curl(); |
@@ -945,7 +945,7 @@ discard block |
||
| 945 | 945 | * @param integer $instance |
| 946 | 946 | * @param integer $voicebridge |
| 947 | 947 | * |
| 948 | - * @return string |
|
| 948 | + * @return boolean |
|
| 949 | 949 | */ |
| 950 | 950 | function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) { |
| 951 | 951 | global $DB; |
@@ -1293,7 +1293,7 @@ discard block |
||
| 1293 | 1293 | * @param string $meetingid |
| 1294 | 1294 | * @param string $configxml |
| 1295 | 1295 | * |
| 1296 | - * @return object |
|
| 1296 | + * @return null|SimpleXMLElement |
|
| 1297 | 1297 | */ |
| 1298 | 1298 | function bigbluebuttonbn_set_config_xml($meetingid, $configxml) { |
| 1299 | 1299 | $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/setConfigXML?'; |
@@ -1347,7 +1347,7 @@ discard block |
||
| 1347 | 1347 | * @param array $recording |
| 1348 | 1348 | * @param array $tools |
| 1349 | 1349 | * |
| 1350 | - * @return array |
|
| 1350 | + * @return null|stdClass |
|
| 1351 | 1351 | */ |
| 1352 | 1352 | function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) { |
| 1353 | 1353 | if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) { |
@@ -1982,7 +1982,7 @@ discard block |
||
| 1982 | 1982 | * |
| 1983 | 1983 | * @param array $bbbsession |
| 1984 | 1984 | * @param array $recording |
| 1985 | - * @param object $rowdata |
|
| 1985 | + * @param stdClass $rowdata |
|
| 1986 | 1986 | * |
| 1987 | 1987 | * @return object |
| 1988 | 1988 | */ |
@@ -2131,6 +2131,11 @@ discard block |
||
| 2131 | 2131 | } |
| 2132 | 2132 | |
| 2133 | 2133 | |
| 2134 | +/** |
|
| 2135 | + * @param boolean $type |
|
| 2136 | + * @param string $key |
|
| 2137 | + * @param string $subkey |
|
| 2138 | + */ |
|
| 2134 | 2139 | function bigbluebuttonbn_validate_completion_state($completioncriteria, $logs, $type, $key, $subkey=null) { |
| 2135 | 2140 | if ($criteria) { |
| 2136 | 2141 | if (!$logs) { |
@@ -2204,7 +2209,7 @@ discard block |
||
| 2204 | 2209 | * |
| 2205 | 2210 | * @param array $bbbsession |
| 2206 | 2211 | * @param array $recordings |
| 2207 | - * @param array $tools |
|
| 2212 | + * @param string[] $tools |
|
| 2208 | 2213 | * |
| 2209 | 2214 | * @return array |
| 2210 | 2215 | */ |
@@ -2285,7 +2290,7 @@ discard block |
||
| 2285 | 2290 | * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included |
| 2286 | 2291 | * in the getRecordings request considering only those that belong to deleted activities. |
| 2287 | 2292 | * |
| 2288 | - * @param string $courseid |
|
| 2293 | + * @param integer $courseid |
|
| 2289 | 2294 | * @param string $bigbluebuttonbnid |
| 2290 | 2295 | * @param bool $subset |
| 2291 | 2296 | * |
@@ -2309,7 +2314,7 @@ discard block |
||
| 2309 | 2314 | * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included |
| 2310 | 2315 | * in the getRecordings request considering only those that belong to imported recordings. |
| 2311 | 2316 | * |
| 2312 | - * @param string $courseid |
|
| 2317 | + * @param integer $courseid |
|
| 2313 | 2318 | * @param string $bigbluebuttonbnid |
| 2314 | 2319 | * @param bool $subset |
| 2315 | 2320 | * |
@@ -2332,7 +2337,7 @@ discard block |
||
| 2332 | 2337 | /** |
| 2333 | 2338 | * Helper function to get recordings and imported recordings together. |
| 2334 | 2339 | * |
| 2335 | - * @param string $courseid |
|
| 2340 | + * @param integer $courseid |
|
| 2336 | 2341 | * @param string $bigbluebuttonbnid |
| 2337 | 2342 | * @param bool $subset |
| 2338 | 2343 | * @param bool $includedeleted |
@@ -2350,7 +2355,7 @@ discard block |
||
| 2350 | 2355 | * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events |
| 2351 | 2356 | * in bigbluebuttonbn_logs. |
| 2352 | 2357 | * |
| 2353 | - * @param string $courseid |
|
| 2358 | + * @param integer $courseid |
|
| 2354 | 2359 | * @param string $bigbluebuttonbnid |
| 2355 | 2360 | * @param bool $subset |
| 2356 | 2361 | * @param bool $includedeleted |