ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\Setup\AccessControl10DBUpdateSteps Class Reference
+ Inheritance diagram for ILIAS\Setup\AccessControl10DBUpdateSteps:
+ Collaboration diagram for ILIAS\Setup\AccessControl10DBUpdateSteps:

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 23 of file AccessControl10DBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ILIAS\Setup\AccessControl10DBUpdateSteps::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 27 of file AccessControl10DBUpdateSteps.php.

References ILIAS\Setup\AccessControl10DBUpdateSteps\$db.

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

◆ step_1()

ILIAS\Setup\AccessControl10DBUpdateSteps::step_1 ( )

Definition at line 32 of file AccessControl10DBUpdateSteps.php.

32  : void
33  {
34  if (!$this->db->indexExistsByFields('rbac_templates', ['type', 'ops_id'])) {
35  $this->db->addIndex('rbac_templates', ['type', 'ops_id'], 'toi');
36  }
37  }

Field Documentation

◆ $db

ilDBInterface ILIAS\Setup\AccessControl10DBUpdateSteps::$db
protected

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