ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilCourseObjectiveDBUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilCourseObjectiveDBUpdateSteps
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->indexExistsByFields(
'loc_settings'
, [
'itest'
])) {
33
$this->db->addIndex(
'loc_settings'
, [
'itest'
],
'i1'
);
34
}
35
}
36
37
public
function
step_2
(): void
38
{
39
if
(!$this->db->indexExistsByFields(
'loc_settings'
, [
'qtest'
])) {
40
$this->db->addIndex(
'loc_settings'
, [
'qtest'
],
'i2'
);
41
}
42
}
43
}
ilCourseObjectiveDBUpdateSteps
Definition:
ilCourseObjectiveDBUpdateSteps.php:21
ilCourseObjectiveDBUpdateSteps\step_1
step_1()
Definition:
ilCourseObjectiveDBUpdateSteps.php:30
ilDBInterface
ilDatabaseUpdateSteps
ilCourseObjectiveDBUpdateSteps\$db
ilDBInterface $db
Definition:
ilCourseObjectiveDBUpdateSteps.php:23
ilCourseObjectiveDBUpdateSteps\step_2
step_2()
Definition:
ilCourseObjectiveDBUpdateSteps.php:37
ilCourseObjectiveDBUpdateSteps\prepare
prepare(ilDBInterface $db)
Definition:
ilCourseObjectiveDBUpdateSteps.php:25
Modules
Course
classes
Objectives
Setup
ilCourseObjectiveDBUpdateSteps.php
Generated on Tue Apr 1 2025 22:01:24 for ILIAS by
1.8.13 (using
Doxyfile
)