|
@@ 1166-1177 (lines=12) @@
|
| 1163 |
|
* |
| 1164 |
|
* @return boolean |
| 1165 |
|
*/ |
| 1166 |
|
function bigbluebuttonbn_publish_recording_imported($id, $publish = true) { |
| 1167 |
|
global $DB; |
| 1168 |
|
// Locate the record to be updated. |
| 1169 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1170 |
|
$meta = json_decode($record->meta, true); |
| 1171 |
|
// Prepare data for the update. |
| 1172 |
|
$meta['recording']['published'] = ($publish) ? 'true' : 'false'; |
| 1173 |
|
$record->meta = json_encode($meta); |
| 1174 |
|
// Proceed with the update. |
| 1175 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1176 |
|
return true; |
| 1177 |
|
} |
| 1178 |
|
|
| 1179 |
|
/** |
| 1180 |
|
* Delete an imported recording. |
|
@@ 1224-1235 (lines=12) @@
|
| 1221 |
|
* |
| 1222 |
|
* @return boolean |
| 1223 |
|
*/ |
| 1224 |
|
function bigbluebuttonbn_protect_recording_imported($id, $protect = true) { |
| 1225 |
|
global $DB; |
| 1226 |
|
// Locate the record to be updated. |
| 1227 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1228 |
|
$meta = json_decode($record->meta, true); |
| 1229 |
|
// Prepare data for the update. |
| 1230 |
|
$meta['recording']['protected'] = ($protect) ? 'true' : 'false'; |
| 1231 |
|
$record->meta = json_encode($meta); |
| 1232 |
|
// Proceed with the update. |
| 1233 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1234 |
|
return true; |
| 1235 |
|
} |
| 1236 |
|
|
| 1237 |
|
/** |
| 1238 |
|
* Sets a custom config.xml file for being used on create. |