19declare(strict_types=1);
36 $query =
"SELECT * FROM il_media_cast_data WHERE id = %s";
37 $set = $this->db->queryF($query, [
"integer"], [
$id]);
38 $record = $this->db->fetchAssoc($set);
49 $this->db->update(
'il_media_cast_data', [
53 'sortmode' => [
'integer', $settings->
getSortMode()],
59 'id' => [
'integer', $settings->
getId()],
65 $this->db->insert(
'il_media_cast_data', [
66 'id' => [
'integer', $settings->
getId()],
70 'sortmode' => [
'integer', $settings->
getSortMode()],
78 public function delete(
int $id):
void
80 $this->db->manipulateF(
81 "DELETE FROM il_media_cast_data WHERE id = %s",
89 return $this->data->settings(
91 (
bool) $record[
'public_files'],
92 (
bool) $record[
'downloadable'],
93 (
int) $record[
'def_access'],
94 (
int) $record[
'sortmode'],
95 (
string) $record[
'viewmode'],
96 (
bool) $record[
'autoplaymode'],
97 (
int) $record[
'nr_initial_videos'],
98 (
bool) $record[
'new_items_in_lp']
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins