ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCmiXapiDatabaseUpdateSteps Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilCmiXapiDatabaseUpdateSteps:
+ Collaboration diagram for ilCmiXapiDatabaseUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
 step_2 ()
 
 step_3 ()
 
 step_4 ()
 
 step_5 ()
 
 step_6 ()
 
 step_7 ()
 
 step_8 ()
 
 step_9 ()
 
 step_10 ()
 
 step_11 ()
 
 step_12 ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 21 of file class.ilCmiXapiDatabaseUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilCmiXapiDatabaseUpdateSteps::prepare ( ilDBInterface  $db)

Definition at line 25 of file class.ilCmiXapiDatabaseUpdateSteps.php.

References $db.

25  : void
26  {
27  $this->db = $db;
28  }

◆ step_1()

ilCmiXapiDatabaseUpdateSteps::step_1 ( )

Definition at line 30 of file class.ilCmiXapiDatabaseUpdateSteps.php.

30  : void
31  {
32  if (!$this->db->tableColumnExists('cmix_users', 'registration')) {
33  $this->db->addTableColumn('cmix_users', 'registration', array(
34  'type' => 'text',
35  'length' => 255,
36  'notnull' => true,
37  'default' => ''
38  ));
39  }
40  }

◆ step_10()

ilCmiXapiDatabaseUpdateSteps::step_10 ( )

Definition at line 135 of file class.ilCmiXapiDatabaseUpdateSteps.php.

135  : void
136  {
137  if (!$this->db->tableColumnExists('cmix_users', 'satisfied')) {
138  $this->db->addTableColumn('cmix_users', 'satisfied', array(
139  'type' => 'integer',
140  'length' => 1,
141  'notnull' => true,
142  'default' => 0
143  ));
144  }
145  }

◆ step_11()

ilCmiXapiDatabaseUpdateSteps::step_11 ( )

Definition at line 147 of file class.ilCmiXapiDatabaseUpdateSteps.php.

147  : void
148  {
149  if (!$this->db->tableColumnExists('cmix_settings', 'switch_to_review')) {
150  $this->db->addTableColumn('cmix_settings', 'switch_to_review', array(
151  'type' => 'integer',
152  'length' => 1,
153  'notnull' => true,
154  'default' => 1
155  ));
156  }
157  }

◆ step_12()

ilCmiXapiDatabaseUpdateSteps::step_12 ( )

Definition at line 159 of file class.ilCmiXapiDatabaseUpdateSteps.php.

159  : void
160  {
161  $this->db->manipulateF('DELETE FROM cmix_users WHERE usr_id = %s', ['integer'], [13]);
162  }

◆ step_2()

ilCmiXapiDatabaseUpdateSteps::step_2 ( )

Definition at line 42 of file class.ilCmiXapiDatabaseUpdateSteps.php.

42  : void
43  {
44  if (!$this->db->tableColumnExists('cmix_settings', 'publisher_id')) {
45  $this->db->addTableColumn('cmix_settings', 'publisher_id', array(
46  'type' => 'text',
47  'length' => 255,
48  'notnull' => true,
49  'default' => ''
50  ));
51  }
52  }

◆ step_3()

ilCmiXapiDatabaseUpdateSteps::step_3 ( )

Definition at line 54 of file class.ilCmiXapiDatabaseUpdateSteps.php.

54  : void
55  {
56  if (!$this->db->tableColumnExists('cmix_settings', 'anonymous_homepage')) {
57  $this->db->addTableColumn('cmix_settings', 'anonymous_homepage', array(
58  'type' => 'integer',
59  'length' => 1,
60  'notnull' => true,
61  'default' => 1
62  ));
63  }
64  }

◆ step_4()

ilCmiXapiDatabaseUpdateSteps::step_4 ( )

Definition at line 66 of file class.ilCmiXapiDatabaseUpdateSteps.php.

66  : void
67  {
68  if (!$this->db->tableColumnExists('cmix_settings', 'moveon')) {
69  $this->db->addTableColumn('cmix_settings', 'moveon', array(
70  'type' => 'text',
71  'length' => 32,
72  'notnull' => true,
73  'default' => ''
74  ));
75  }
76  }

◆ step_5()

ilCmiXapiDatabaseUpdateSteps::step_5 ( )

Definition at line 78 of file class.ilCmiXapiDatabaseUpdateSteps.php.

78  : void
79  {
80  if (!$this->db->tableColumnExists('cmix_token', 'cmi5_session')) {
81  $this->db->addTableColumn("cmix_token", "cmi5_session", [
82  'type' => 'text',
83  'length' => 255,
84  'notnull' => true,
85  'default' => ''
86  ]);
87  }
88  }

◆ step_6()

ilCmiXapiDatabaseUpdateSteps::step_6 ( )

Definition at line 90 of file class.ilCmiXapiDatabaseUpdateSteps.php.

90  : void
91  {
92  if (!$this->db->tableColumnExists('cmix_token', 'returned_for_cmi5_session')) {
93  $this->db->addTableColumn("cmix_token", "returned_for_cmi5_session", [
94  'type' => 'text',
95  'length' => 255,
96  'notnull' => true,
97  'default' => ''
98  ]);
99  }
100  }

◆ step_7()

ilCmiXapiDatabaseUpdateSteps::step_7 ( )

Definition at line 102 of file class.ilCmiXapiDatabaseUpdateSteps.php.

102  : void
103  {
104  if (!$this->db->tableColumnExists('cmix_settings', 'launch_parameters')) {
105  $this->db->addTableColumn('cmix_settings', 'launch_parameters', array(
106  'type' => 'text',
107  'length' => 255,
108  'notnull' => true,
109  'default' => ''
110  ));
111  }
112  }

◆ step_8()

ilCmiXapiDatabaseUpdateSteps::step_8 ( )

Definition at line 114 of file class.ilCmiXapiDatabaseUpdateSteps.php.

114  : void
115  {
116  if (!$this->db->tableColumnExists('cmix_settings', 'entitlement_key')) {
117  $this->db->addTableColumn('cmix_settings', 'entitlement_key', array(
118  'type' => 'text',
119  'length' => 255,
120  'notnull' => true,
121  'default' => ''
122  ));
123  }
124  }

◆ step_9()

ilCmiXapiDatabaseUpdateSteps::step_9 ( )

Definition at line 126 of file class.ilCmiXapiDatabaseUpdateSteps.php.

126  : void
127  {
128  if (!$this->db->tableColumnExists('cmix_token', 'cmi5_session_data')) {
129  $this->db->addTableColumn("cmix_token", "cmi5_session_data", [
130  'type' => 'clob'
131  ]);
132  }
133  }

Field Documentation

◆ $db

ilDBInterface ilCmiXapiDatabaseUpdateSteps::$db
protected

Definition at line 23 of file class.ilCmiXapiDatabaseUpdateSteps.php.

Referenced by prepare().


The documentation for this class was generated from the following file: