ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
DBHTMLExportUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Export\HTML\Setup
;
22
23
use
ilDatabaseUpdateSteps
;
24
use
ilDBConstants
;
25
use
ilDBInterface
;
26
27
class
DBHTMLExportUpdateSteps
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(
"export_files_html"
)) {
42
$this->db->createTable(
"export_files_html"
, [
43
'object_id'
=> [
44
'type'
=>
'integer'
,
45
'length'
=> 8,
46
'default'
=> 0,
47
'notnull'
=>
true
48
],
49
'rid'
=> [
50
'type'
=>
'text'
,
51
'length'
=> 64,
52
'default'
=>
''
,
53
'notnull'
=>
true
54
],
55
'timestamp'
=> [
56
'type'
=>
'timestamp'
,
57
'notnull'
=>
false
58
],
59
'type'
=> [
60
'type'
=>
'text'
,
61
'length'
=> 10,
62
'default'
=>
''
,
63
'notnull'
=>
true
64
],
65
]);
66
$this->db->addPrimaryKey(
"export_files_html"
, [
"object_id"
,
"rid"
]);
67
}
68
}
69
70
public
function
step_2
(): void
71
{
72
}
73
74
public
function
step_3
(): void
75
{
76
}
77
78
public
function
step_4
(): void
79
{
80
$this->db->modifyTableColumn(
"export_files_html"
,
"type"
, [
81
'type'
=>
'text'
,
82
'length'
=> 40,
83
'default'
=>
''
,
84
'notnull'
=>
true
85
]);
86
}
87
}
ILIAS\Data\Text\HTML::Setup\DBHTMLExportUpdateSteps\step_4
step_4()
Definition:
DBHTMLExportUpdateSteps.php:78
ILIAS\Data\Text\HTML::Setup\DBHTMLExportUpdateSteps\prepare
prepare(ilDBInterface $db)
Definition:
DBHTMLExportUpdateSteps.php:31
ILIAS\Data\Text\HTML::Setup\DBHTMLExportUpdateSteps\step_2
step_2()
Definition:
DBHTMLExportUpdateSteps.php:70
ILIAS\Data\Text\HTML::Setup\DBHTMLExportUpdateSteps\step_1
step_1()
Create new export file table.
Definition:
DBHTMLExportUpdateSteps.php:39
ilDBConstants
ilDBInterface
ilDatabaseUpdateSteps
ILIAS\Data\Text\HTML::Setup\DBHTMLExportUpdateSteps\step_3
step_3()
Definition:
DBHTMLExportUpdateSteps.php:74
ILIAS\Export\HTML\Setup
Definition:
Agent.php:21
ILIAS\Data\Text\HTML::Setup\DBHTMLExportUpdateSteps
Definition:
DBHTMLExportUpdateSteps.php:27
ILIAS\Data\Text\HTML::Setup\DBHTMLExportUpdateSteps\$db
ilDBInterface $db
Definition:
DBHTMLExportUpdateSteps.php:29
components
ILIAS
Export
HTML
Setup
DBHTMLExportUpdateSteps.php
Generated on Wed Sep 3 2025 23:03:00 for ILIAS by
1.8.13 (using
Doxyfile
)