|
@@ 1132-1143 (lines=12) @@
|
| 1129 |
|
* |
| 1130 |
|
* @return boolean |
| 1131 |
|
*/ |
| 1132 |
|
function bigbluebuttonbn_publish_recording_imported($id, $publish = true) { |
| 1133 |
|
global $DB; |
| 1134 |
|
// Locate the record to be updated. |
| 1135 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1136 |
|
$meta = json_decode($record->meta, true); |
| 1137 |
|
// Prepare data for the update. |
| 1138 |
|
$meta['recording']['published'] = ($publish) ? 'true' : 'false'; |
| 1139 |
|
$record->meta = json_encode($meta); |
| 1140 |
|
// Proceed with the update. |
| 1141 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1142 |
|
return true; |
| 1143 |
|
} |
| 1144 |
|
|
| 1145 |
|
/** |
| 1146 |
|
* Delete an imported recording. |
|
@@ 1190-1201 (lines=12) @@
|
| 1187 |
|
* |
| 1188 |
|
* @return boolean |
| 1189 |
|
*/ |
| 1190 |
|
function bigbluebuttonbn_protect_recording_imported($id, $protect = true) { |
| 1191 |
|
global $DB; |
| 1192 |
|
// Locate the record to be updated. |
| 1193 |
|
$record = $DB->get_record('bigbluebuttonbn_logs', array('id' => $id)); |
| 1194 |
|
$meta = json_decode($record->meta, true); |
| 1195 |
|
// Prepare data for the update. |
| 1196 |
|
$meta['recording']['protected'] = ($protect) ? 'true' : 'false'; |
| 1197 |
|
$record->meta = json_encode($meta); |
| 1198 |
|
// Proceed with the update. |
| 1199 |
|
$DB->update_record('bigbluebuttonbn_logs', $record); |
| 1200 |
|
return true; |
| 1201 |
|
} |
| 1202 |
|
|
| 1203 |
|
/** |
| 1204 |
|
* Sets a custom config.xml file for being used on create. |