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