ILIAS  release_8 Revision v8.23
ilStudyProgrammeAutoCategoryTableUpdateSteps 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 ilStudyProgrammeAutoCategoryTableUpdateSteps:
+ Collaboration diagram for ilStudyProgrammeAutoCategoryTableUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Data Fields

const TABLE_NAME = 'prg_auto_content'
 

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 22 of file ilStudyProgrammeAutoCategoryTableUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilStudyProgrammeAutoCategoryTableUpdateSteps::prepare ( ilDBInterface  $db)

Definition at line 28 of file ilStudyProgrammeAutoCategoryTableUpdateSteps.php.

References $db.

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

◆ step_1()

ilStudyProgrammeAutoCategoryTableUpdateSteps::step_1 ( )

Definition at line 33 of file ilStudyProgrammeAutoCategoryTableUpdateSteps.php.

33  : void
34  {
35  $column_name = 'title';
36 
37  if ($this->db->tableColumnExists(self::TABLE_NAME, $column_name)) {
38  $this->db->dropTableColumn(
39  self::TABLE_NAME,
40  $column_name
41  );
42  }
43  }

Field Documentation

◆ $db

ilDBInterface ilStudyProgrammeAutoCategoryTableUpdateSteps::$db
protected

Definition at line 26 of file ilStudyProgrammeAutoCategoryTableUpdateSteps.php.

Referenced by prepare().

◆ TABLE_NAME

const ilStudyProgrammeAutoCategoryTableUpdateSteps::TABLE_NAME = 'prg_auto_content'

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