ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const IL_CAL_DATETIME
buildJson(ilECSSetting $a_server)
static _getEntriesForObject(int $a_obj_id, string $a_obj_type="")
get all history entries for an object
const IL_CAL_UNIX
getJsonCore(string $a_etype)
Build core json structure.
Handles object exports to ECS.