26 protected \ilDBInterface
$db;
36 if (!$db->tableColumnExists(
'il_media_cast_data',
'autoplaymode')) {
49 if (!$db->tableColumnExists(
'il_media_cast_data',
'nr_initial_videos')) {
50 $db->
addTableColumn(
'il_media_cast_data',
'nr_initial_videos', array(
62 if (!$db->tableColumnExists(
'il_media_cast_data',
'new_items_in_lp')) {
63 $db->
addTableColumn(
'il_media_cast_data',
'new_items_in_lp', array(
75 $analyzer = new \ilDBAnalyzer($db);
76 $info = $analyzer->getFieldInformation(
'settings');
78 if ($info[
'value'][
'type'] ===
'clob') {
86 $db->
manipulate(
"DELETE FROM settings WHERE keyword = " .
87 $db->quote(
"video_threshold",
"text") .
" AND module = " .
88 $db->quote(
"mcst",
"text"));
90 $db->insert(
"settings", array(
91 "module" => array(
"text",
"mcst"),
92 "keyword" => array(
"text",
"video_threshold"),
93 "value" => array(
$type,
"80")));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addTableColumn(string $table_name, string $column_name, array $attributes)
manipulate(string $query)
Run a (write) Query on the database.