ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilBadgeDBUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilBadgeDBUpdateSteps
implements
ilDatabaseUpdateSteps
22
{
23
protected
ilDBInterface
$db
;
24
25
public
function
prepare
(
ilDBInterface
$db): void
26
{
27
$this->db =
$db
;
28
}
29
30
public
function
step_1
(): void
31
{
32
if
(!$this->db->tableColumnExists(
'badge_badge'
,
'image_rid'
)) {
33
$this->db->addTableColumn(
34
'badge_badge'
,
35
'image_rid'
,
36
[
37
'type'
=>
'text'
,
38
'length'
=> 64,
39
'notnull'
=>
false
,
40
'default'
=>
''
,
41
]
42
);
43
}
44
}
45
46
public
function
step_2
(): void
47
{
48
if
(!$this->db->tableColumnExists(
'badge_image_template'
,
'image_rid'
)) {
49
$this->db->addTableColumn(
50
'badge_image_template'
,
51
'image_rid'
,
52
[
53
'type'
=>
'text'
,
54
'length'
=> 64,
55
'notnull'
=>
false
,
56
'default'
=>
''
,
57
]
58
);
59
}
60
}
61
}
ilBadgeDBUpdateSteps
Definition:
class.ilBadgeDBUpdateSteps.php:21
ilBadgeDBUpdateSteps\step_2
step_2()
Definition:
class.ilBadgeDBUpdateSteps.php:46
ilDBInterface
ilBadgeDBUpdateSteps\step_1
step_1()
Definition:
class.ilBadgeDBUpdateSteps.php:30
ilDatabaseUpdateSteps
ilBadgeDBUpdateSteps\$db
ilDBInterface $db
Definition:
class.ilBadgeDBUpdateSteps.php:23
ilBadgeDBUpdateSteps\prepare
prepare(ilDBInterface $db)
Definition:
class.ilBadgeDBUpdateSteps.php:25
components
ILIAS
Badge
classes
Setup
class.ilBadgeDBUpdateSteps.php
Generated on Sun Aug 31 2025 23:02:18 for ILIAS by
1.8.13 (using
Doxyfile
)