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
class.ilWebResourceDBUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilWebResourceDBUpdateSteps
implements
ilDatabaseUpdateSteps
26
{
27
protected \ilDBInterface
$db
;
28
29
public
function
prepare
(\
ilDBInterface
$db): void
30
{
31
$this->db =
$db
;
32
}
33
34
public
function
step_1
(): void
35
{
36
// Add index
37
if
(!$this->db->indexExistsByFields(
'webr_items'
, [
'webr_id'
])) {
38
$this->db->addIndex(
'webr_items'
, [
'webr_id'
],
'i3'
);
39
}
40
}
41
42
public
function
step_2
(): void
43
{
44
// Add combined index
45
// 32201
46
if
(
47
$this->db->tableExists(
'webr_items'
) &&
48
!$this->db->indexExistsByFields(
'webr_items'
, [
'webr_id'
,
'active'
])
49
) {
50
$this->db->addIndex(
'webr_items'
, [
'webr_id'
,
'active'
],
'i4'
);
51
}
52
}
53
}
ilWebResourceDBUpdateSteps\step_1
step_1()
Definition:
class.ilWebResourceDBUpdateSteps.php:34
ilWebResourceDBUpdateSteps\step_2
step_2()
Definition:
class.ilWebResourceDBUpdateSteps.php:42
ilWebResourceDBUpdateSteps\prepare
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
Definition:
class.ilWebResourceDBUpdateSteps.php:29
ilWebResourceDBUpdateSteps\$db
ilDBInterface $db
Definition:
class.ilWebResourceDBUpdateSteps.php:27
ilDBInterface
ilDatabaseUpdateSteps
ilWebResourceDBUpdateSteps
General purpose update steps for weblinks.
Definition:
class.ilWebResourceDBUpdateSteps.php:25
Modules
WebResource
classes
Setup
class.ilWebResourceDBUpdateSteps.php
Generated on Sun Apr 6 2025 22:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)