ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
All
Functions
Variables
+
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
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Typedefs
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Modules
Pages
class.ilECSFileSettings.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
include_once
'Services/WebServices/ECS/classes/class.ilECSObjectSettings.php'
;
6
15
class
ilECSFileSettings
extends
ilECSObjectSettings
16
{
17
protected
function
getECSObjectType
()
18
{
19
return
'/campusconnect/files'
;
20
}
21
22
protected
function
buildJson
(
ilECSSetting
$a_server)
23
{
24
$json = $this->
getJsonCore
(
'application/ecs-file'
);
25
$json->version = $this->content_obj->getVersion();
26
27
require_once(
"./Services/History/classes/class.ilHistory.php"
);
28
$entries =
ilHistory::_getEntriesForObject
($this->content_obj->getId(),
29
$this->content_obj->getType());
30
if
(count($entries))
31
{
32
$entry = array_shift($entries);
33
$entry =
new
ilDateTime
($entry[
"date"
],
IL_CAL_DATETIME
);
34
35
$json->version_date = $entry->get(
IL_CAL_UNIX
);
36
}
37
else
38
{
39
40
$json->version_date =
time
();
41
}
42
43
return
$json;
44
}
45
}
46
47
?>
ilECSFileSettings
Class ilECSFileSettings.
Definition:
class.ilECSFileSettings.php:15
ilECSSetting
Definition:
class.ilECSSetting.php:33
IL_CAL_DATETIME
const IL_CAL_DATETIME
Definition:
class.ilDateTime.php:9
ilECSFileSettings\buildJson
buildJson(ilECSSetting $a_server)
Definition:
class.ilECSFileSettings.php:22
IL_CAL_UNIX
const IL_CAL_UNIX
Definition:
class.ilDateTime.php:11
ilDateTime
Date and time handling
Definition:
class.ilDateTime.php:32
ilHistory\_getEntriesForObject
static _getEntriesForObject($a_obj_id, $a_obj_type="")
get all history entries for an object
Definition:
class.ilHistory.php:129
ilECSObjectSettings\getJsonCore
getJsonCore($a_etype)
Build core json structure.
Definition:
class.ilECSObjectSettings.php:669
ilECSFileSettings\getECSObjectType
getECSObjectType()
Definition:
class.ilECSFileSettings.php:17
php
time
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
Definition:
40duplicateStyle.php:39
ilECSObjectSettings
Handles object exports to ECS.
Definition:
class.ilECSObjectSettings.php:13
Modules
File
classes
class.ilECSFileSettings.php
Generated on Fri Mar 7 2025 19:00:56 for ILIAS by
1.8.13 (using
Doxyfile
)