|
@@ 1158-1169 (lines=12) @@
|
| 1155 |
|
* |
| 1156 |
|
* @return boolean |
| 1157 |
|
*/ |
| 1158 |
|
function bigbluebuttonbn_publish_recording_imported($id, $publish = true) { |
| 1159 |
|
global $DB; |
| 1160 |
|
// Locate the record to be updated. |
| 1161 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1162 |
|
$meta = json_decode($record->meta, true); |
| 1163 |
|
// Prepare data for the update. |
| 1164 |
|
$meta['recording']['published'] = ($publish) ? 'true' : 'false'; |
| 1165 |
|
$record->meta = json_encode($meta); |
| 1166 |
|
// Proceed with the update. |
| 1167 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1168 |
|
return true; |
| 1169 |
|
} |
| 1170 |
|
|
| 1171 |
|
/** |
| 1172 |
|
* Delete an imported recording. |
|
@@ 1216-1227 (lines=12) @@
|
| 1213 |
|
* |
| 1214 |
|
* @return boolean |
| 1215 |
|
*/ |
| 1216 |
|
function bigbluebuttonbn_protect_recording_imported($id, $protect = true) { |
| 1217 |
|
global $DB; |
| 1218 |
|
// Locate the record to be updated. |
| 1219 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1220 |
|
$meta = json_decode($record->meta, true); |
| 1221 |
|
// Prepare data for the update. |
| 1222 |
|
$meta['recording']['protected'] = ($protect) ? 'true' : 'false'; |
| 1223 |
|
$record->meta = json_encode($meta); |
| 1224 |
|
// Proceed with the update. |
| 1225 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1226 |
|
return true; |
| 1227 |
|
} |
| 1228 |
|
|
| 1229 |
|
/** |
| 1230 |
|
* Sets a custom config.xml file for being used on create. |