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

Public Member Functions

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

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
Tim Schmitz schmi.nosp@m.tz@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ prepare()

ilSessionDBUpdateSteps8::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 28 of file class.ilSessionDBUpdateSteps8.php.

References $db.

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

◆ step_1()

ilSessionDBUpdateSteps8::step_1 ( )

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

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

Field Documentation

◆ $db

ilDBInterface ilSessionDBUpdateSteps8::$db
protected

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

Referenced by prepare().


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