|
@@ 1231-1242 (lines=12) @@
|
| 1228 |
|
* |
| 1229 |
|
* @return boolean |
| 1230 |
|
*/ |
| 1231 |
|
function bigbluebuttonbn_publish_recording_imported($id, $publish = true) { |
| 1232 |
|
global $DB; |
| 1233 |
|
// Locate the record to be updated. |
| 1234 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1235 |
|
$meta = json_decode($record->meta, true); |
| 1236 |
|
// Prepare data for the update. |
| 1237 |
|
$meta['recording']['published'] = ($publish) ? 'true' : 'false'; |
| 1238 |
|
$record->meta = json_encode($meta); |
| 1239 |
|
// Proceed with the update. |
| 1240 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1241 |
|
return true; |
| 1242 |
|
} |
| 1243 |
|
|
| 1244 |
|
/** |
| 1245 |
|
* Delete an imported recording. |
|
@@ 1289-1300 (lines=12) @@
|
| 1286 |
|
* |
| 1287 |
|
* @return boolean |
| 1288 |
|
*/ |
| 1289 |
|
function bigbluebuttonbn_protect_recording_imported($id, $protect = true) { |
| 1290 |
|
global $DB; |
| 1291 |
|
// Locate the record to be updated. |
| 1292 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1293 |
|
$meta = json_decode($record->meta, true); |
| 1294 |
|
// Prepare data for the update. |
| 1295 |
|
$meta['recording']['protected'] = ($protect) ? 'true' : 'false'; |
| 1296 |
|
$record->meta = json_encode($meta); |
| 1297 |
|
// Proceed with the update. |
| 1298 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1299 |
|
return true; |
| 1300 |
|
} |
| 1301 |
|
|
| 1302 |
|
/** |
| 1303 |
|
* Sets a custom config.xml file for being used on create. |