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