ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
RemoveCloudDBUpdate.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Cloud
;
22
23
class
RemoveCloudDBUpdate
implements
\ilDatabaseUpdateSteps
24
{
25
private
?
\ilDBInterface
$db
=
null
;
26
27
public
function
prepare
(\
ilDBInterface
$db
): void
28
{
29
$this->db =
$db
;
30
}
31
32
public
function
step_1
(): void
33
{
34
$this->db->dropTable(
'il_cld_data'
,
false
);
35
}
36
37
public
function
step_2
(): void
38
{
39
$q
=
"SELECT obj_id FROM object_data WHERE type = %s"
;
40
$res
= $this->db->queryF(
$q
, [
'text'
], [
'cld'
]);
41
while
($row = $this->db->fetchAssoc(
$res
)) {
42
$this->db->manipulateF(
'DELETE FROM object_data WHERE id = %s'
, [
'integer'
], [$row[
'obj_id'
]]);
43
$this->db->manipulateF(
'DELETE FROM object_reference WHERE object_id = %s'
, [
'integer'
], [$row[
'obj_id'
]]);
44
// tree?
45
}
46
}
47
}
ILIAS\Cloud\RemoveCloudDBUpdate
Definition:
RemoveCloudDBUpdate.php:24
ILIAS\Cloud\RemoveCloudDBUpdate\prepare
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
Definition:
RemoveCloudDBUpdate.php:27
ILIAS\Cloud\RemoveCloudDBUpdate\$db
ilDBInterface $db
Definition:
RemoveCloudDBUpdate.php:25
ILIAS\Cloud\RemoveCloudDBUpdate\step_1
step_1()
Definition:
RemoveCloudDBUpdate.php:32
ILIAS\Cloud\RemoveCloudDBUpdate\step_2
step_2()
Definition:
RemoveCloudDBUpdate.php:37
ilDBInterface
Interface ilDBInterface.
Definition:
interface.ilDBInterface.php:30
ilDatabaseUpdateSteps
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilDatabaseUpdateSteps.php:44
$res
$res
Definition:
ltiservices.php:69
ILIAS\Cloud
Definition:
Agent.php:21
$q
$q
Definition:
shib_logout.php:23
components
ILIAS
Cloud
src
RemoveCloudDBUpdate.php
Generated on Sat Oct 18 2025 23:02:44 for ILIAS by
1.9.4 (using
Doxyfile
)