23 protected \ilDBInterface
$db;
32 if (!$this->db->tableColumnExists(
'help_module',
'order_nr')) {
33 $this->db->addTableColumn(
'help_module',
'order_nr', array(
44 if (!$this->db->tableColumnExists(
'help_module',
'active')) {
45 $this->db->addTableColumn(
'help_module',
'active', array(
56 $set = $this->db->queryF(
57 "SELECT value FROM settings " .
58 " WHERE module = %s AND keyword = %s",
60 [
"common",
"help_module"]
62 if ($rec = $this->db->fetchAssoc($set)) {
68 "active" => [
"integer", 1]
71 "id" => [
"integer",
$id]
80 if (!$this->db->tableColumnExists(
'help_map',
'full_id')) {
81 $this->db->addTableColumn(
'help_map',
'full_id', array(
91 if (!$this->db->tableExists(
'help_gt_settings')) {
92 $this->db->createTable(
120 $this->db->addPrimaryKey(
'help_gt_settings', [
'obj_id']);
126 if (!$this->db->tableExists(
'help_gt_step')) {
127 $this->db->createTable(
158 $this->db->addPrimaryKey(
'help_gt_step', [
'id']);
164 $this->db->createSequence(
'help_gt_step');
169 if (!$this->db->tableExists(
'help_gt_user_finished')) {
170 $this->db->createTable(
171 'help_gt_user_finished',
185 $this->db->addPrimaryKey(
'help_gt_user_finished', [
'tour_id',
'user_id']);
192 if (!$this->db->tableExists(
'help_gt_settings')) {
193 $this->db->createTable(
221 $this->db->addPrimaryKey(
'help_gt_settings', [
'obj_id']);
223 if (!$this->db->tableColumnExists(
'help_gt_settings',
'lang')) {
224 $this->db->addTableColumn(
'help_gt_settings',
'lang', array(
235 if ($this->db->primaryExistsByFields(
'help_map', array(
236 'chap',
'component',
'screen_id',
'screen_sub_id',
'perm',
'module_id'))) {
237 $this->db->dropPrimaryKey(
'help_map');
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...