ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilGlossaryDBUpdateSteps11 Class Reference
+ Inheritance diagram for ilGlossaryDBUpdateSteps11:
+ Collaboration diagram for ilGlossaryDBUpdateSteps11:

Public Member Functions

 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 
 step_1 ()
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

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

Member Function Documentation

◆ prepare()

ilGlossaryDBUpdateSteps11::prepare ( \ilDBInterface  $db)

Prepare the execution of the steps.

Do not use anything from the globals or the DIC inside your steps, only use the instance of the database provided here.

Implements ilDatabaseUpdateSteps.

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

References $db.

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

◆ step_1()

ilGlossaryDBUpdateSteps11::step_1 ( )

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

30  : void
31  {
32  if ($this->db->tableColumnExists('glossary', 'downloads_active')) {
33  $this->db->dropTableColumn('glossary', 'downloads_active');
34  }
35  if ($this->db->tableColumnExists('glossary', 'public_xml_file')) {
36  $this->db->dropTableColumn('glossary', 'public_xml_file');
37  }
38  if ($this->db->tableColumnExists('glossary', 'public_html_file')) {
39  $this->db->dropTableColumn('glossary', 'public_html_file');
40  }
41  }

Field Documentation

◆ $db

ilDBInterface ilGlossaryDBUpdateSteps11::$db
protected

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

Referenced by prepare().


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