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

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

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 20 of file class.ilAccessControl8DBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilAccessControl8DBUpdateSteps::prepare ( ilDBInterface  $db)

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

References $db.

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

◆ step_1()

ilAccessControl8DBUpdateSteps::step_1 ( )

Definition at line 29 of file class.ilAccessControl8DBUpdateSteps.php.

29  : void
30  {
31  if (!$this->db->indexExistsByFields('rbac_fa', ['assign', 'rol_id'])) {
32  $this->db->addIndex('rbac_fa', ['assign', 'rol_id'], 'i2');
33  }
34  if (!$this->db->indexExistsByFields('rbac_fa', ['assign', 'parent'])) {
35  $this->db->addIndex('rbac_fa', ['assign', 'parent'], 'i3');
36  }
37  }

◆ step_2()

ilAccessControl8DBUpdateSteps::step_2 ( )

Definition at line 38 of file class.ilAccessControl8DBUpdateSteps.php.

38  : void
39  {
40  $this->db->manipulate("DELETE FROM rbac_operations WHERE operation='create_dbk'");
41  }

Field Documentation

◆ $db

ilDBInterface ilAccessControl8DBUpdateSteps::$db
protected

Definition at line 22 of file class.ilAccessControl8DBUpdateSteps.php.

Referenced by prepare().


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