ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTreeDBUpdateSteps8 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 ilTreeDBUpdateSteps8:
+ Collaboration diagram for ilTreeDBUpdateSteps8:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
- 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

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 24 of file class.ilTreeDBUpdateSteps8.php.

Member Function Documentation

◆ prepare()

ilTreeDBUpdateSteps8::prepare ( ilDBInterface  $db)

Definition at line 28 of file class.ilTreeDBUpdateSteps8.php.

References $db.

28  : void
29  {
30  $this->db = $db;
31  }

◆ step_1()

ilTreeDBUpdateSteps8::step_1 ( )

Definition at line 33 of file class.ilTreeDBUpdateSteps8.php.

33  : void
34  {
35  // Add index
36  if ($this->db->indexExistsByFields('tree', ['child'])) {
37  $this->db->dropIndex('tree', 'i1');
38  }
39  }

Field Documentation

◆ $db

ilDBInterface ilTreeDBUpdateSteps8::$db
protected

Definition at line 26 of file class.ilTreeDBUpdateSteps8.php.

Referenced by prepare().


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