| @@ 376-388 (lines=13) @@ | ||
| 373 | /** |
|
| 374 | * @param string $recordids |
|
| 375 | */ |
|
| 376 | function bigbluebuttonbn_delete_recordings($recordids) { |
|
| 377 | $ids = explode(',', $recordids); |
|
| 378 | foreach ($ids as $id) { |
|
| 379 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
|
| 380 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
|
| 381 | ); |
|
| 382 | if ($xml && $xml->returncode != 'SUCCESS') { |
|
| 383 | return false; |
|
| 384 | } |
|
| 385 | } |
|
| 386 | return true; |
|
| 387 | } |
|
| 388 | ||
| 389 | /** |
|
| 390 | * @param string $recordids |
|
| 391 | * @param string $publish |
|
| @@ 393-405 (lines=13) @@ | ||
| 390 | * @param string $recordids |
|
| 391 | * @param string $publish |
|
| 392 | */ |
|
| 393 | function bigbluebuttonbn_publish_recordings($recordids, $publish = 'true') { |
|
| 394 | $ids = explode(',', $recordids); |
|
| 395 | foreach ($ids as $id) { |
|
| 396 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
|
| 397 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
|
| 398 | ); |
|
| 399 | if ($xml && $xml->returncode != 'SUCCESS') { |
|
| 400 | return false; |
|
| 401 | } |
|
| 402 | } |
|
| 403 | return true; |
|
| 404 | } |
|
| 405 | ||
| 406 | /** |
|
| 407 | * @param string $recordids |
|
| 408 | * @param array $params ['key'=>param_key, 'value'] |
|
| @@ 410-422 (lines=13) @@ | ||
| 407 | * @param string $recordids |
|
| 408 | * @param array $params ['key'=>param_key, 'value'] |
|
| 409 | */ |
|
| 410 | function bigbluebuttonbn_update_recordings($recordids, $params) { |
|
| 411 | $ids = explode(',', $recordids); |
|
| 412 | foreach ($ids as $id) { |
|
| 413 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
|
| 414 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
|
| 415 | ); |
|
| 416 | if ($xml && $xml->returncode != 'SUCCESS') { |
|
| 417 | return false; |
|
| 418 | } |
|
| 419 | } |
|
| 420 | return true; |
|
| 421 | } |
|
| 422 | ||
| 423 | /** |
|
| 424 | * @param string $meetingid |
|
| 425 | * @param string $modpw |
|