ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 protected function buildJson(ilECSSetting $a_server)
35 {
36 $json = $this->getJsonCore('application/ecs-file');
37 $json->version = $this->content_obj->getVersion();
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}
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