19 declare(strict_types=1);
38 $this->db->manipulateF(
'DELETE FROM settings WHERE keyword = %s', [
ilDBConstants::T_TEXT], [
'enable_block_moving']);
39 $this->db->manipulate(
'DELETE FROM il_block_setting WHERE ' . $this->db->like(
'type',
ilDBConstants::T_TEXT,
'pd%'));
44 $this->db->insert(
'settings', [
49 $this->db->insert(
'settings', [
54 $this->db->insert(
'settings', [
60 $sql =
'SELECT * FROM settings WHERE keyword = %s';
61 for ($view = 0; $view <= 4; $view++) {
62 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_active_pres_view_' . $view])) === 0) {
63 $this->db->insert(
'settings', [
69 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_def_pres_view_' . $view])) === 0) {
70 $this->db->insert(
'settings', [
77 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_active_sort_view_1'])) === 0) {
78 $this->db->insert(
'settings', [
84 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_active_sort_view_3'])) === 0) {
85 $this->db->insert(
'settings', [
91 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_active_sort_view_4'])) === 0) {
92 $this->db->insert(
'settings', [
99 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_def_sort_view_1'])) === 0) {
100 $this->db->insert(
'settings', [
106 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_def_sort_view_3'])) === 0) {
107 $this->db->insert(
'settings', [
113 if ($this->db->numRows($this->db->queryF($sql, [
ilDBConstants::T_TEXT], [
'pd_def_sort_view_4'])) === 0) {
114 $this->db->insert(
'settings', [
prepare(ilDBInterface $db)