ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.LinkDBUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\COPage\IntLink\Setup
;
22
26
class
LinkDBUpdateSteps
implements
\ilDatabaseUpdateSteps
27
{
28
protected \ilDBInterface
$db
;
29
30
public
function
prepare
(\
ilDBInterface
$db): void
31
{
32
$this->db =
$db
;
33
}
34
35
public
function
step_1
(): void
36
{
37
$field = array(
38
'type'
=>
'text'
,
39
'length'
=> 10,
40
'notnull'
=>
true
41
);
42
43
$this->db->modifyTableColumn(
"int_link"
,
"target_type"
, $field);
44
}
45
46
public
function
step_2
(): void
47
{
48
$this->db->update(
49
"int_link"
,
50
[
51
"target_type"
=> [
"text"
,
"wpage"
]
52
],
53
[
// where
54
"target_type"
=> [
"text"
,
"wpag"
]
55
]
56
);
57
}
58
}
ILIAS\COPage\IntLink\Setup\LinkDBUpdateSteps
Definition:
class.LinkDBUpdateSteps.php:26
ILIAS\COPage\IntLink\Setup\LinkDBUpdateSteps\step_1
step_1()
Definition:
class.LinkDBUpdateSteps.php:35
ILIAS\COPage\IntLink\Setup\LinkDBUpdateSteps\step_2
step_2()
Definition:
class.LinkDBUpdateSteps.php:46
ILIAS\COPage\IntLink\Setup\LinkDBUpdateSteps\$db
ilDBInterface $db
Definition:
class.LinkDBUpdateSteps.php:28
ilDatabaseUpdateSteps
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilDatabaseUpdateSteps.php:43
ILIAS\COPage\IntLink\Setup\LinkDBUpdateSteps\prepare
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
Definition:
class.LinkDBUpdateSteps.php:30
ilDBInterface
ILIAS\COPage\IntLink\Setup
Definition:
class.Agent.php:21
components
ILIAS
COPage
IntLink
Setup
class.LinkDBUpdateSteps.php
Generated on Wed Sep 3 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)