ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11 Class Reference
+ Inheritance diagram for ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11:
+ Collaboration diagram for ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11:

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 27 of file ProgressBlockUpdateSteps11.php.

Member Function Documentation

◆ prepare()

ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11::prepare ( ilDBInterface  $db)

Definition at line 31 of file ProgressBlockUpdateSteps11.php.

References ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11\$db.

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

◆ step_1()

ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11::step_1 ( )

Create new export file table.

Definition at line 39 of file ProgressBlockUpdateSteps11.php.

References ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.

39  : void
40  {
41  if ($this->db->tableExists('ut_progress_block')) {
42  return;
43  }
44  $this->db->createTable('ut_progress_block', [
45  'obj_id' => [
46  'type' => ilDBConstants::T_TEXT,
47  'length' => 4,
48  'default' => 0,
49  'notnull' => true
50  ],
51  'show_block' => [
52  'type' => ilDBConstants::T_INTEGER,
53  'length' => 1,
54  'default' => 0,
55  'notnull' => true
56  ]
57  ]);
58  $this->db->addPrimaryKey('ut_progress_block', ['obj_id']);
59  }

Field Documentation

◆ $db

ilDBInterface ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11::$db
protected

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