ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilForumDatabaseUpdateSteps Class Reference
+ Inheritance diagram for ilForumDatabaseUpdateSteps:
+ Collaboration diagram for ilForumDatabaseUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
 step_2 ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

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

Member Function Documentation

◆ prepare()

ilForumDatabaseUpdateSteps::prepare ( ilDBInterface  $db)

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

References $db.

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

◆ step_1()

ilForumDatabaseUpdateSteps::step_1 ( )

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

30  : void
31  {
32  if ($this->db->tableExists('frm_settings') && !$this->db->tableColumnExists('frm_settings', 'stylesheet')) {
33  $this->db->addTableColumn(
34  'frm_settings',
35  'stylesheet',
36  [
37  'type' => 'integer',
38  'notnull' => true,
39  'length' => 4,
40  'default' => 0
41  ]
42  );
43  }
44  }

◆ step_2()

ilForumDatabaseUpdateSteps::step_2 ( )

Definition at line 46 of file class.ilForumDatabaseUpdateSteps.php.

46  : void
47  {
48  $this->db->manipulateF("UPDATE object_data SET offline = %s WHERE type = %s", ['integer', 'text'], [0, 'frm']);
49  }

Field Documentation

◆ $db

ilDBInterface ilForumDatabaseUpdateSteps::$db
protected

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

Referenced by prepare().


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