ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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 Fri Apr 4 2025 23:02:33 for ILIAS by
1.8.13 (using
Doxyfile
)