|
@@ 2322-2334 (lines=13) @@
|
| 2319 |
|
* |
| 2320 |
|
* @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2321 |
|
*/ |
| 2322 |
|
function bigbluebuttonbn_get_recordings_deleted_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2323 |
|
$sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_DELETE . "' AND meta like '%has_recordings%' AND meta like '%true%'"; |
| 2324 |
|
if (empty($courseid)) { |
| 2325 |
|
$courseid = 0; |
| 2326 |
|
} |
| 2327 |
|
if (empty($bigbluebuttonbnid)) { |
| 2328 |
|
return $sql . " AND courseid = {$courseid}"; |
| 2329 |
|
} |
| 2330 |
|
if ($subset) { |
| 2331 |
|
return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
| 2332 |
|
} |
| 2333 |
|
return $sql . " AND courseid = {$courseid} AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
| 2334 |
|
} |
| 2335 |
|
|
| 2336 |
|
/** |
| 2337 |
|
* Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included |
|
@@ 2346-2358 (lines=13) @@
|
| 2343 |
|
* |
| 2344 |
|
* @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2345 |
|
*/ |
| 2346 |
|
function bigbluebuttonbn_get_recordings_imported_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2347 |
|
$sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_IMPORT . "'"; |
| 2348 |
|
if (empty($courseid)) { |
| 2349 |
|
$courseid = 0; |
| 2350 |
|
} |
| 2351 |
|
if (empty($bigbluebuttonbnid)) { |
| 2352 |
|
return $sql . " AND courseid = '{$courseid}'"; |
| 2353 |
|
} |
| 2354 |
|
if ($subset) { |
| 2355 |
|
return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
| 2356 |
|
} |
| 2357 |
|
return $sql . " AND courseid = '{$courseid}' AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
| 2358 |
|
} |
| 2359 |
|
|
| 2360 |
|
/** |
| 2361 |
|
* Helper function to get recordings and imported recordings together. |