@@ -137,7 +137,7 @@ |
||
137 | 137 | * Sign a string with a given key and algorithm. |
138 | 138 | * |
139 | 139 | * @param string $msg The message to sign |
140 | - * @param string|resource $key The secret key |
|
140 | + * @param string $key The secret key |
|
141 | 141 | * @param string $alg The signing algorithm. Supported algorithms |
142 | 142 | * are 'HS256', 'HS384', 'HS512' and 'RS256' |
143 | 143 | * |
@@ -66,7 +66,6 @@ discard block |
||
66 | 66 | * will create a new instance and return the id number |
67 | 67 | * of the new instance. |
68 | 68 | * |
69 | - * @param object $bigbluebuttonbn An object from the form in mod_form.php |
|
70 | 69 | * @return int The id of the newly inserted bigbluebuttonbn record |
71 | 70 | */ |
72 | 71 | function bigbluebuttonbn_add_instance($data, $mform) { |
@@ -93,7 +92,6 @@ discard block |
||
93 | 92 | * (defined by the form in mod_form.php) this function |
94 | 93 | * will update an existing instance with new data. |
95 | 94 | * |
96 | - * @param object $bigbluebuttonbn An object from the form in mod_form.php |
|
97 | 95 | * @return boolean Success/Fail |
98 | 96 | */ |
99 | 97 | function bigbluebuttonbn_update_instance($data, $mform) { |
@@ -162,7 +160,7 @@ discard block |
||
162 | 160 | * $return->time = the time they did it |
163 | 161 | * $return->info = a short text description |
164 | 162 | * |
165 | - * @return null |
|
163 | + * @return boolean |
|
166 | 164 | */ |
167 | 165 | function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) { |
168 | 166 | return true; |
@@ -230,7 +228,7 @@ discard block |
||
230 | 228 | * See other modules as example. |
231 | 229 | * |
232 | 230 | * @param int $bigbluebuttonbnid ID of an instance of this module |
233 | - * @return mixed boolean/array of students |
|
231 | + * @return boolean boolean/array of students |
|
234 | 232 | */ |
235 | 233 | function bigbluebuttonbn_get_participants($bigbluebuttonbnid) { |
236 | 234 | return false; |
@@ -238,7 +236,7 @@ discard block |
||
238 | 236 | |
239 | 237 | /** |
240 | 238 | * Returns all other caps used in module |
241 | - * @return array |
|
239 | + * @return string[] |
|
242 | 240 | */ |
243 | 241 | function bigbluebuttonbn_get_extra_capabilities() { |
244 | 242 | return array('moodle/site:accessallgroups'); |
@@ -255,7 +253,7 @@ discard block |
||
255 | 253 | * as reference. |
256 | 254 | * |
257 | 255 | * @param int $bigbluebuttonbnid ID of an instance of this module |
258 | - * @return mixed |
|
256 | + * @return boolean |
|
259 | 257 | */ |
260 | 258 | function bigbluebuttonbn_scale_used($bigbluebuttonbnid, $scaleid) { |
261 | 259 | $return = false; |
@@ -288,7 +286,7 @@ discard block |
||
288 | 286 | |
289 | 287 | /** |
290 | 288 | * List of view style log actions |
291 | - * @return array |
|
289 | + * @return string[] |
|
292 | 290 | */ |
293 | 291 | function bigbluebuttonbn_get_view_actions() { |
294 | 292 | return array('view', 'view all'); |
@@ -296,7 +294,7 @@ discard block |
||
296 | 294 | |
297 | 295 | /** |
298 | 296 | * List of update style log actions |
299 | - * @return array |
|
297 | + * @return string[] |
|
300 | 298 | */ |
301 | 299 | function bigbluebuttonbn_get_post_actions() { |
302 | 300 | return array('update', 'add', 'create', 'join', 'end', 'left', 'publish', 'unpublish', 'delete'); |
@@ -310,7 +308,7 @@ discard block |
||
310 | 308 | * |
311 | 309 | * @global object |
312 | 310 | * @param object $coursemodule |
313 | - * @return object|null |
|
311 | + * @return null|cached_cm_info |
|
314 | 312 | */ |
315 | 313 | function bigbluebuttonbn_get_coursemodule_info($coursemodule) { |
316 | 314 | global $CFG, $DB; |
@@ -502,7 +500,7 @@ discard block |
||
502 | 500 | * @param array $args extra arguments |
503 | 501 | * @param bool $forcedownload whether or not force download |
504 | 502 | * @param array $options additional options affecting the file serving |
505 | - * @return bool false if file not found, does not return if found - justsend the file |
|
503 | + * @return false|null false if file not found, does not return if found - justsend the file |
|
506 | 504 | */ |
507 | 505 | function bigbluebuttonbn_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array()) { |
508 | 506 | global $CFG, $DB; |
@@ -36,6 +36,9 @@ discard block |
||
36 | 36 | const BIGBLUEBUTTONBN_LOG_EVENT_JOIN = "Join"; |
37 | 37 | const BIGBLUEBUTTONBN_LOG_EVENT_LOGOUT = "Logout"; |
38 | 38 | |
39 | +/** |
|
40 | + * @param string $event |
|
41 | + */ |
|
39 | 42 | function bigbluebuttonbn_log(array $bbbsession, $event) { |
40 | 43 | global $DB; |
41 | 44 | |
@@ -181,6 +184,9 @@ discard block |
||
181 | 184 | return $xml; |
182 | 185 | } |
183 | 186 | |
187 | +/** |
|
188 | + * @param string $meetingID |
|
189 | + */ |
|
184 | 190 | function bigbluebuttonbn_getMeetingInfoArray( $meetingID, $modPW, $URL, $SALT ) { |
185 | 191 | $xml = bigbluebuttonbn_wrap_xml_load_file( bigbluebuttonbn_getMeetingInfoURL( $meetingID, $modPW, $URL, $SALT ) ); |
186 | 192 | |
@@ -285,6 +291,10 @@ discard block |
||
285 | 291 | else return 1; |
286 | 292 | } |
287 | 293 | |
294 | +/** |
|
295 | + * @param string $URL |
|
296 | + * @param string $SALT |
|
297 | + */ |
|
288 | 298 | function bigbluebuttonbn_doDeleteRecordings( $recordIDs, $URL, $SALT ) { |
289 | 299 | $ids = explode(",", $recordIDs); |
290 | 300 | foreach( $ids as $id){ |
@@ -295,6 +305,11 @@ discard block |
||
295 | 305 | return true; |
296 | 306 | } |
297 | 307 | |
308 | +/** |
|
309 | + * @param string $set |
|
310 | + * @param string $URL |
|
311 | + * @param string $SALT |
|
312 | + */ |
|
298 | 313 | function bigbluebuttonbn_doPublishRecordings( $recordIDs, $set, $URL, $SALT ) { |
299 | 314 | $ids = explode(",", $recordIDs); |
300 | 315 | foreach( $ids as $id){ |
@@ -305,6 +320,10 @@ discard block |
||
305 | 320 | return true; |
306 | 321 | } |
307 | 322 | |
323 | +/** |
|
324 | + * @param string $URL |
|
325 | + * @param string $SALT |
|
326 | + */ |
|
308 | 327 | function bigbluebuttonbn_doEndMeeting( $meetingID, $modPW, $URL, $SALT ) { |
309 | 328 | $xml = bigbluebuttonbn_wrap_xml_load_file( bigbluebuttonbn_getEndMeetingURL( $meetingID, $modPW, $URL, $SALT ) ); |
310 | 329 | |
@@ -326,6 +345,9 @@ discard block |
||
326 | 345 | } |
327 | 346 | |
328 | 347 | |
348 | +/** |
|
349 | + * @param string $URL |
|
350 | + */ |
|
329 | 351 | function bigbluebuttonbn_getServerVersion( $URL ){ |
330 | 352 | $xml = bigbluebuttonbn_wrap_xml_load_file( $URL."api" ); |
331 | 353 | if ( $xml && $xml->returncode == 'SUCCESS' ) { |
@@ -344,6 +366,9 @@ discard block |
||
344 | 366 | } |
345 | 367 | } |
346 | 368 | |
369 | +/** |
|
370 | + * @param string $url |
|
371 | + */ |
|
347 | 372 | function bigbluebuttonbn_wrap_xml_load_file($url, $method=BIGBLUEBUTTONBN_METHOD_GET, $data=null) { |
348 | 373 | if (extension_loaded('curl')) { |
349 | 374 | $c = new curl(); |
@@ -776,6 +801,9 @@ discard block |
||
776 | 801 | $cache = cache::make_from_params(cache_store::MODE_APPLICATION, 'mod_bigbluebuttonbn', 'meetings_cache'); |
777 | 802 | } |
778 | 803 | |
804 | +/** |
|
805 | + * @param boolean $is_moderator |
|
806 | + */ |
|
779 | 807 | function bigbluebuttonbn_bbb_broker_participant_joined($meetingid, $is_moderator) { |
780 | 808 | $cache = cache::make_from_params(cache_store::MODE_APPLICATION, 'mod_bigbluebuttonbn', 'meetings_cache'); |
781 | 809 | $result = $cache->get($meetingid); |
@@ -1256,6 +1284,9 @@ discard block |
||
1256 | 1284 | return (isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingready_enabled)? $BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingready_enabled: (isset($CFG->bigbluebuttonbn_recordingready_enabled)? $CFG->bigbluebuttonbn_recordingready_enabled: false)); |
1257 | 1285 | } |
1258 | 1286 | |
1287 | +/** |
|
1288 | + * @return string |
|
1289 | + */ |
|
1259 | 1290 | function bigbluebuttonbn_get_cfg_moderator_default() { |
1260 | 1291 | global $BIGBLUEBUTTONBN_CFG, $CFG; |
1261 | 1292 | return (isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_moderator_default)? $BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_moderator_default: (isset($CFG->bigbluebuttonbn_moderator_default)? $CFG->bigbluebuttonbn_moderator_default: 'owner')); |