ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
◀ ilDoc Overview
class.ilScorm2004DatabaseUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilScorm2004DatabaseUpdateSteps
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
$this->db->modifyTableColumn(
"cmi_interaction"
,
"c_timestamp"
, array(
"type"
=>
"text"
,
"length"
=> 40,
"notnull"
=>
false
,
'default'
=>
null
));
33
}
34
35
public
function
step_2
(): void
36
{
37
$this->db->modifyTableColumn(
"cp_dependency"
,
"resourceid"
, array(
"type"
=>
"text"
,
"length"
=> 200,
"notnull"
=>
false
,
'default'
=>
null
));
38
}
39
40
public
function
step_3
(): void
41
{
42
if
(!$this->db->indexExistsByFields(
'sahs_user'
, [
'user_id'
])) {
43
$this->db->addIndex(
'sahs_user'
, [
'user_id'
],
'i1'
);
44
}
45
}
46
}
ilScorm2004DatabaseUpdateSteps
Definition:
class.ilScorm2004DatabaseUpdateSteps.php:22
ilScorm2004DatabaseUpdateSteps\step_1
step_1()
Definition:
class.ilScorm2004DatabaseUpdateSteps.php:30
ilScorm2004DatabaseUpdateSteps\$db
ilDBInterface $db
Definition:
class.ilScorm2004DatabaseUpdateSteps.php:23
ilScorm2004DatabaseUpdateSteps\step_2
step_2()
Definition:
class.ilScorm2004DatabaseUpdateSteps.php:35
ilScorm2004DatabaseUpdateSteps\step_3
step_3()
Definition:
class.ilScorm2004DatabaseUpdateSteps.php:40
ilScorm2004DatabaseUpdateSteps\prepare
prepare(ilDBInterface $db)
Definition:
class.ilScorm2004DatabaseUpdateSteps.php:25
ilDBInterface
Interface ilDBInterface.
Definition:
ilDBInterface.php:30
ilDatabaseUpdateSteps
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ilDatabaseUpdateSteps.php:44
components
ILIAS
Scorm2004
classes
Setup
class.ilScorm2004DatabaseUpdateSteps.php
Generated on Sun Apr 5 2026 23:03:40 for ILIAS by
1.9.4 (using
Doxyfile
)