ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Repository\Setup\RepositoryDBUpdateSteps Class Reference
+ Inheritance diagram for ILIAS\Repository\Setup\RepositoryDBUpdateSteps:
+ Collaboration diagram for ILIAS\Repository\Setup\RepositoryDBUpdateSteps:

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ prepare()

ILIAS\Repository\Setup\RepositoryDBUpdateSteps::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 30 of file class.RepositoryDBUpdateSteps.php.

References ILIAS\Repository\Setup\RepositoryDBUpdateSteps\$db.

30  : void
31  {
32  $this->db = $db;
33  }

◆ step_1()

ILIAS\Repository\Setup\RepositoryDBUpdateSteps::step_1 ( )

Definition at line 35 of file class.RepositoryDBUpdateSteps.php.

35  : void
36  {
37  $this->db->manipulateF('DELETE FROM desktop_item WHERE item_id = %s', ['integer'], [1]);
38  $this->db->manipulateF('DELETE FROM rep_rec_content_role WHERE ref_id = %s', ['integer'], [1]);
39  }

◆ step_2()

ILIAS\Repository\Setup\RepositoryDBUpdateSteps::step_2 ( )

Definition at line 41 of file class.RepositoryDBUpdateSteps.php.

41  : void
42  {
43  $this->db->manipulateF('DELETE FROM il_new_item_grp WHERE type = %s', ['integer'], [2]);
44  $this->db->dropTableColumn('il_new_item_grp', 'type');
45  }

Field Documentation

◆ $db

ilDBInterface ILIAS\Repository\Setup\RepositoryDBUpdateSteps::$db
protected

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