ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilECSFileSettings.php
Go to the documentation of this file.
1
<?php
2
27
class
ilECSFileSettings
extends
ilECSObjectSettings
28
{
29
protected
function
getECSObjectType
(): string
30
{
31
return
'/campusconnect/files'
;
32
}
33
34
protected
function
buildJson
(
ilECSSetting
$a_server)
35
{
36
$json = $this->
getJsonCore
(
'application/ecs-file'
);
37
$json->version = $this->content_obj->getVersion();
38
$entries =
ilHistory::_getEntriesForObject
(
39
$this->content_obj->getId(),
40
$this->content_obj->getType()
41
);
42
if
($entries !== []) {
43
$entry = array_shift($entries);
44
$entry =
new
ilDateTime
($entry[
"date"
],
IL_CAL_DATETIME
);
45
46
$json->version_date = $entry->get(
IL_CAL_UNIX
);
47
}
else
{
48
$json->version_date = time();
49
}
50
51
return
$json;
52
}
53
}
ilECSFileSettings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilECSFileSettings.php:27
ilDateTime
ilECSSetting
Definition:
class.ilECSSetting.php:24
IL_CAL_DATETIME
const IL_CAL_DATETIME
Definition:
class.ilDateTime.php:21
ilECSFileSettings\buildJson
buildJson(ilECSSetting $a_server)
Definition:
class.ilECSFileSettings.php:34
ilHistory\_getEntriesForObject
static _getEntriesForObject(int $a_obj_id, string $a_obj_type="")
get all history entries for an object
Definition:
class.ilHistory.php:111
IL_CAL_UNIX
const IL_CAL_UNIX
Definition:
class.ilDateTime.php:23
ilECSObjectSettings\getJsonCore
getJsonCore(string $a_etype)
Build core json structure.
Definition:
class.ilECSObjectSettings.php:684
ilECSFileSettings\getECSObjectType
getECSObjectType()
Definition:
class.ilECSFileSettings.php:29
ilECSObjectSettings
Handles object exports to ECS.
Definition:
class.ilECSObjectSettings.php:31
components
ILIAS
File
classes
class.ilECSFileSettings.php
Generated on Sun Apr 6 2025 23:03:14 for ILIAS by
1.8.13 (using
Doxyfile
)