ILIAS  release_8 Revision v8.24
class.ilECSFileSettings.php
Go to the documentation of this file.
1<?php
2
28{
29 protected function getECSObjectType(): string
30 {
31 return '/campusconnect/files';
32 }
33
34
35 protected function buildJson(ilECSSetting $a_server)
36 {
37 $json = $this->getJsonCore('application/ecs-file');
38 $json->version = $this->content_obj->getVersion();
40 $this->content_obj->getId(),
41 $this->content_obj->getType()
42 );
43 if ($entries !== []) {
44 $entry = array_shift($entries);
45 $entry = new ilDateTime($entry["date"], IL_CAL_DATETIME);
46
47 $json->version_date = $entry->get(IL_CAL_UNIX);
48 } else {
49 $json->version_date = time();
50 }
51
52 return $json;
53 }
54}
const IL_CAL_UNIX
const IL_CAL_DATETIME
@classDescription Date and time handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
buildJson(ilECSSetting $a_server)
Build resource-specific json.
getECSObjectType()
Get ECS resource identifier, e.g.
Handles object exports to ECS.
getJsonCore(string $a_etype)
Build core json structure.
static _getEntriesForObject(int $a_obj_id, string $a_obj_type="")
get all history entries for an object