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

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Private Attributes

const TABLE_NAME = "iass_members"
 

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 19 of file class.ilIndividualAssessmentRectifyMembersTableDBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilIndividualAssessmentRectifyMembersTableDBUpdateSteps::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 25 of file class.ilIndividualAssessmentRectifyMembersTableDBUpdateSteps.php.

References $db.

◆ step_1()

ilIndividualAssessmentRectifyMembersTableDBUpdateSteps::step_1 ( )

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

30  : void
31  {
32  $this->db->modifyTableColumn(
33  self::TABLE_NAME,
34  "examiner_id",
35  [
36  "type" => "integer",
37  "length" => 4,
38  "notnull" => false,
39  "default" => null
40  ]
41  );
42  }

◆ step_2()

ilIndividualAssessmentRectifyMembersTableDBUpdateSteps::step_2 ( )

Definition at line 44 of file class.ilIndividualAssessmentRectifyMembersTableDBUpdateSteps.php.

44  : void
45  {
46  $this->db->manipulate(
47  "UPDATE " . self::TABLE_NAME . " SET examiner_id = NULL WHERE examiner_id = 0"
48  );
49  }

Field Documentation

◆ $db

ilDBInterface ilIndividualAssessmentRectifyMembersTableDBUpdateSteps::$db
protected

◆ TABLE_NAME

const ilIndividualAssessmentRectifyMembersTableDBUpdateSteps::TABLE_NAME = "iass_members"
private

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