|
@@ 1112-1123 (lines=12) @@
|
| 1109 |
|
* |
| 1110 |
|
* @return boolean |
| 1111 |
|
*/ |
| 1112 |
|
function bigbluebuttonbn_publish_recording_imported($id, $publish = true) { |
| 1113 |
|
global $DB; |
| 1114 |
|
// Locate the record to be updated. |
| 1115 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1116 |
|
$meta = json_decode($record->meta, true); |
| 1117 |
|
// Prepare data for the update. |
| 1118 |
|
$meta['recording']['published'] = ($publish) ? 'true' : 'false'; |
| 1119 |
|
$record->meta = json_encode($meta); |
| 1120 |
|
// Proceed with the update. |
| 1121 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1122 |
|
return true; |
| 1123 |
|
} |
| 1124 |
|
|
| 1125 |
|
/** |
| 1126 |
|
* Delete an imported recording. |
|
@@ 1170-1181 (lines=12) @@
|
| 1167 |
|
* |
| 1168 |
|
* @return boolean |
| 1169 |
|
*/ |
| 1170 |
|
function bigbluebuttonbn_protect_recording_imported($id, $protect = true) { |
| 1171 |
|
global $DB; |
| 1172 |
|
// Locate the record to be updated. |
| 1173 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1174 |
|
$meta = json_decode($record->meta, true); |
| 1175 |
|
// Prepare data for the update. |
| 1176 |
|
$meta['recording']['protected'] = ($protect) ? 'true' : 'false'; |
| 1177 |
|
$record->meta = json_encode($meta); |
| 1178 |
|
// Proceed with the update. |
| 1179 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1180 |
|
return true; |
| 1181 |
|
} |
| 1182 |
|
|
| 1183 |
|
/** |
| 1184 |
|
* Sets a custom config.xml file for being used on create. |