ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilStudyProgrammeUDFDefinitionUpdateSteps Class Reference
+ Inheritance diagram for ilStudyProgrammeUDFDefinitionUpdateSteps:
+ Collaboration diagram for ilStudyProgrammeUDFDefinitionUpdateSteps:

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 = 'udf_definition'
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 21 of file ilStudyProgrammeUDFDefinitionUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilStudyProgrammeUDFDefinitionUpdateSteps::prepare ( ilDBInterface  $db)

Definition at line 27 of file ilStudyProgrammeUDFDefinitionUpdateSteps.php.

References $db.

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

◆ step_1()

ilStudyProgrammeUDFDefinitionUpdateSteps::step_1 ( )

Definition at line 32 of file ilStudyProgrammeUDFDefinitionUpdateSteps.php.

32  : void
33  {
34  $column_name = 'prg_export';
35 
36  if (!$this->db->tableColumnExists(self::TABLE_NAME, $column_name)) {
37  $this->db->addTableColumn(
38  self::TABLE_NAME,
39  $column_name,
40  [
41  'type' => 'integer',
42  'length' => 1,
43  'default' => 0,
44  'notnull' => true
45  ]
46  );
47  }
48  }

Field Documentation

◆ $db

ilDBInterface ilStudyProgrammeUDFDefinitionUpdateSteps::$db
protected

Definition at line 25 of file ilStudyProgrammeUDFDefinitionUpdateSteps.php.

Referenced by prepare().

◆ TABLE_NAME

const ilStudyProgrammeUDFDefinitionUpdateSteps::TABLE_NAME = 'udf_definition'

Definition at line 23 of file ilStudyProgrammeUDFDefinitionUpdateSteps.php.


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