ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
ProgressBlockUpdateSteps11.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tracking\Setup
;
22
23
use
ilDatabaseUpdateSteps
;
24
use
ilDBConstants
;
25
use
ilDBInterface
;
26
27
class
ProgressBlockUpdateSteps11
implements
ilDatabaseUpdateSteps
28
{
29
protected
ilDBInterface
$db
;
30
31
public
function
prepare
(
ilDBInterface
$db): void
32
{
33
$this->db =
$db
;
34
}
35
39
public
function
step_1
(): 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
}
60
}
ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11\prepare
prepare(ilDBInterface $db)
Definition:
ProgressBlockUpdateSteps11.php:31
ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11
Definition:
ProgressBlockUpdateSteps11.php:27
ilDBConstants\T_TEXT
const T_TEXT
Definition:
class.ilDBConstants.php:56
ilDBConstants
ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11\$db
ilDBInterface $db
Definition:
ProgressBlockUpdateSteps11.php:29
ilDBInterface
ilDatabaseUpdateSteps
ILIAS\Tracking\Setup
Definition:
Agent.php:21
ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11\step_1
step_1()
Create new export file table.
Definition:
ProgressBlockUpdateSteps11.php:39
ilDBConstants\T_INTEGER
const T_INTEGER
Definition:
class.ilDBConstants.php:55
components
ILIAS
Tracking
classes
Setup
ProgressBlockUpdateSteps11.php
Generated on Mon Sep 1 2025 23:04:16 for ILIAS by
1.8.13 (using
Doxyfile
)