ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ilMDUpdateSteps11 Class Reference
+ Inheritance diagram for ilMDUpdateSteps11:
+ Collaboration diagram for ilMDUpdateSteps11:

Public Member Functions

 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 
 step_1 ()
 Add deleted column to il_meta_oer_exposed. More...
 
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 21 of file class.ilMDUpdateSteps11.php.

Member Function Documentation

◆ prepare()

ilMDUpdateSteps11::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.ilMDUpdateSteps11.php.

25 : void
26 {
27 $this->db = $db;
28 }

References $db.

◆ step_1()

ilMDUpdateSteps11::step_1 ( )

Add deleted column to il_meta_oer_exposed.

Definition at line 33 of file class.ilMDUpdateSteps11.php.

33 : void
34 {
35 if (!$this->db->tableColumnExists('il_meta_oer_exposed', 'deleted')) {
36 $this->db->addTableColumn(
37 'il_meta_oer_exposed',
38 'deleted',
39 [
41 'notnull' => true,
42 'default' => 0,
43 'length' => 1
44 ]
45 );
46 }
47 }

References ilDBConstants\T_INTEGER.

Field Documentation

◆ $db

ilDBInterface ilMDUpdateSteps11::$db
protected

Definition at line 23 of file class.ilMDUpdateSteps11.php.

Referenced by prepare().


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