|
@@ 1277-1288 (lines=12) @@
|
| 1274 |
|
* |
| 1275 |
|
* @return boolean |
| 1276 |
|
*/ |
| 1277 |
|
function bigbluebuttonbn_publish_recording_imported($id, $publish = true) { |
| 1278 |
|
global $DB; |
| 1279 |
|
// Locate the record to be updated. |
| 1280 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1281 |
|
$meta = json_decode($record->meta, true); |
| 1282 |
|
// Prepare data for the update. |
| 1283 |
|
$meta['recording']['published'] = ($publish) ? 'true' : 'false'; |
| 1284 |
|
$record->meta = json_encode($meta); |
| 1285 |
|
// Proceed with the update. |
| 1286 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1287 |
|
return true; |
| 1288 |
|
} |
| 1289 |
|
|
| 1290 |
|
/** |
| 1291 |
|
* Delete an imported recording. |
|
@@ 1335-1346 (lines=12) @@
|
| 1332 |
|
* |
| 1333 |
|
* @return boolean |
| 1334 |
|
*/ |
| 1335 |
|
function bigbluebuttonbn_protect_recording_imported($id, $protect = true) { |
| 1336 |
|
global $DB; |
| 1337 |
|
// Locate the record to be updated. |
| 1338 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1339 |
|
$meta = json_decode($record->meta, true); |
| 1340 |
|
// Prepare data for the update. |
| 1341 |
|
$meta['recording']['protected'] = ($protect) ? 'true' : 'false'; |
| 1342 |
|
$record->meta = json_encode($meta); |
| 1343 |
|
// Proceed with the update. |
| 1344 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1345 |
|
return true; |
| 1346 |
|
} |
| 1347 |
|
|
| 1348 |
|
/** |
| 1349 |
|
* Sets a custom config.xml file for being used on create. |