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.ilObjectDataDeletionLog.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
29
class
ilObjectDataDeletionLog
30
{
31
public
static
function
add
(
ilObject
$object): void
32
{
33
global
$DIC
;
34
$ilDB
= $DIC->database();
35
36
$values = [
37
"obj_id"
=> [
"integer"
, $object->
getId
()],
38
"title"
=> [
"text"
, $object->
getTitle
()],
39
"tstamp"
=> [
"integer"
, time()],
40
"type"
=> [
"text"
, $object->
getType
()],
41
"description"
=> [
"clob"
, $object->
getLongDescription
()]
42
];
43
44
$ilDB
->insert(
"object_data_del"
, $values);
45
}
46
47
public
static
function
get
(
int
$a_object_id): ?array
48
{
49
global
$DIC
;
50
$ilDB
= $DIC->database();
51
52
$sql =
53
"SELECT obj_id, title, tstamp, type, description"
. PHP_EOL
54
.
"FROM object_data_del"
. PHP_EOL
55
.
"WHERE obj_id = "
.
$ilDB
->quote($a_object_id,
"integer"
) . PHP_EOL
56
;
57
58
$set =
$ilDB
->query($sql);
59
return
$ilDB
->fetchAssoc($set);
60
}
61
}
ilObjectDataDeletionLog
Definition:
class.ilObjectDataDeletionLog.php:29
ilObject
$DIC
global $DIC
Definition:
feed.php:28
ilObjectDataDeletionLog\add
static add(ilObject $object)
Definition:
class.ilObjectDataDeletionLog.php:31
$ilDB
$ilDB
Definition:
storeScorm2004.php:26
ilObject\getId
getId()
Definition:
class.ilObject.php:270
ilObject\getTitle
getTitle()
Definition:
class.ilObject.php:311
ilObject\getType
getType()
Definition:
class.ilObject.php:291
ilObject\getLongDescription
getLongDescription()
get object long description (stored in object_description)
Definition:
class.ilObject.php:348
Services
Object
classes
class.ilObjectDataDeletionLog.php
Generated on Tue Apr 1 2025 22:02:29 for ILIAS by
1.8.13 (using
Doxyfile
)