| @@ 435-446 (lines=12) @@ | ||
| 432 | * |
|
| 433 | * @return boolean |
|
| 434 | */ |
|
| 435 | function bigbluebuttonbn_delete_recordings($recordids) { |
|
| 436 | $ids = explode(',', $recordids); |
|
| 437 | foreach ($ids as $id) { |
|
| 438 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
|
| 439 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
|
| 440 | ); |
|
| 441 | if ($xml && $xml->returncode != 'SUCCESS') { |
|
| 442 | return false; |
|
| 443 | } |
|
| 444 | } |
|
| 445 | return true; |
|
| 446 | } |
|
| 447 | ||
| 448 | /** |
|
| 449 | * Perform publishRecordings on BBB. |
|
| @@ 454-465 (lines=12) @@ | ||
| 451 | * @param string $recordids |
|
| 452 | * @param string $publish |
|
| 453 | */ |
|
| 454 | function bigbluebuttonbn_publish_recordings($recordids, $publish = 'true') { |
|
| 455 | $ids = explode(',', $recordids); |
|
| 456 | foreach ($ids as $id) { |
|
| 457 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
|
| 458 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
|
| 459 | ); |
|
| 460 | if ($xml && $xml->returncode != 'SUCCESS') { |
|
| 461 | return false; |
|
| 462 | } |
|
| 463 | } |
|
| 464 | return true; |
|
| 465 | } |
|
| 466 | ||
| 467 | /** |
|
| 468 | * Perform updateRecordings on BBB. |
|
| @@ 473-484 (lines=12) @@ | ||
| 470 | * @param string $recordids |
|
| 471 | * @param array $params ['key'=>param_key, 'value'] |
|
| 472 | */ |
|
| 473 | function bigbluebuttonbn_update_recordings($recordids, $params) { |
|
| 474 | $ids = explode(',', $recordids); |
|
| 475 | foreach ($ids as $id) { |
|
| 476 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
|
| 477 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
|
| 478 | ); |
|
| 479 | if ($xml && $xml->returncode != 'SUCCESS') { |
|
| 480 | return false; |
|
| 481 | } |
|
| 482 | } |
|
| 483 | return true; |
|
| 484 | } |
|
| 485 | ||
| 486 | /** |
|
| 487 | * Perform end on BBB. |
|