ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAccessControl8DBUpdateSteps Class Reference
+ Inheritance diagram for ilAccessControl8DBUpdateSteps:
+ Collaboration diagram for ilAccessControl8DBUpdateSteps:

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

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

Member Function Documentation

◆ prepare()

ilAccessControl8DBUpdateSteps::prepare ( ilDBInterface  $db)

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

References $db.

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

◆ step_1()

ilAccessControl8DBUpdateSteps::step_1 ( )

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

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

Field Documentation

◆ $db

ilDBInterface ilAccessControl8DBUpdateSteps::$db
protected

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

Referenced by prepare().


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