|
@@ 2049-2061 (lines=13) @@
|
| 2046 |
|
* |
| 2047 |
|
* @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2048 |
|
*/ |
| 2049 |
|
function bigbluebuttonbn_get_recordings_deleted_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2050 |
|
$sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_DELETE . "' AND meta like '%has_recordings%' AND meta like '%true%'"; |
| 2051 |
|
if (empty($courseid)) { |
| 2052 |
|
$courseid = 0; |
| 2053 |
|
} |
| 2054 |
|
if (empty($bigbluebuttonbnid)) { |
| 2055 |
|
return $sql . " AND courseid = {$courseid}"; |
| 2056 |
|
} |
| 2057 |
|
if ($subset) { |
| 2058 |
|
return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
| 2059 |
|
} |
| 2060 |
|
return $sql . " AND courseid = {$courseid} AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
| 2061 |
|
} |
| 2062 |
|
|
| 2063 |
|
/** |
| 2064 |
|
* Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included |
|
@@ 2073-2085 (lines=13) @@
|
| 2070 |
|
* |
| 2071 |
|
* @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2072 |
|
*/ |
| 2073 |
|
function bigbluebuttonbn_get_recordings_imported_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2074 |
|
$sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_IMPORT . "'"; |
| 2075 |
|
if (empty($courseid)) { |
| 2076 |
|
$courseid = 0; |
| 2077 |
|
} |
| 2078 |
|
if (empty($bigbluebuttonbnid)) { |
| 2079 |
|
return $sql . " AND courseid = '{$courseid}'"; |
| 2080 |
|
} |
| 2081 |
|
if ($subset) { |
| 2082 |
|
return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
| 2083 |
|
} |
| 2084 |
|
return $sql . " AND courseid = '{$courseid}' AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
| 2085 |
|
} |
| 2086 |
|
|
| 2087 |
|
/** |
| 2088 |
|
* Helper function to get recordings and imported recordings together. |