|
@@ 2294-2306 (lines=13) @@
|
| 2291 |
|
* |
| 2292 |
|
* @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2293 |
|
*/ |
| 2294 |
|
function bigbluebuttonbn_get_recordings_deleted_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2295 |
|
$sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_DELETE . "' AND meta like '%has_recordings%' AND meta like '%true%'"; |
| 2296 |
|
if (empty($courseid)) { |
| 2297 |
|
$courseid = 0; |
| 2298 |
|
} |
| 2299 |
|
if (empty($bigbluebuttonbnid)) { |
| 2300 |
|
return $sql . " AND courseid = {$courseid}"; |
| 2301 |
|
} |
| 2302 |
|
if ($subset) { |
| 2303 |
|
return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
| 2304 |
|
} |
| 2305 |
|
return $sql . " AND courseid = {$courseid} AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
| 2306 |
|
} |
| 2307 |
|
|
| 2308 |
|
/** |
| 2309 |
|
* Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included |
|
@@ 2318-2330 (lines=13) @@
|
| 2315 |
|
* |
| 2316 |
|
* @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2317 |
|
*/ |
| 2318 |
|
function bigbluebuttonbn_get_recordings_imported_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2319 |
|
$sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_IMPORT . "'"; |
| 2320 |
|
if (empty($courseid)) { |
| 2321 |
|
$courseid = 0; |
| 2322 |
|
} |
| 2323 |
|
if (empty($bigbluebuttonbnid)) { |
| 2324 |
|
return $sql . " AND courseid = '{$courseid}'"; |
| 2325 |
|
} |
| 2326 |
|
if ($subset) { |
| 2327 |
|
return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
| 2328 |
|
} |
| 2329 |
|
return $sql . " AND courseid = '{$courseid}' AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
| 2330 |
|
} |
| 2331 |
|
|
| 2332 |
|
/** |
| 2333 |
|
* Helper function to get recordings and imported recordings together. |