ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilECSLearningModuleSettings.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
14{
15 protected function getECSObjectType()
16 {
17 return '/campusconnect/learningmodules';
18 }
19
20 protected function buildJson(ilECSSetting $a_server)
21 {
22 $json = $this->getJsonCore('application/ecs-learningmodule');
23
24 $json->availability = $this->content_obj->getOfflineStatus() ? 'offline' : 'online';
25
26 return $json;
27 }
28}
An exception for terminatinating execution or to throw for unit testing.
Class ilECSLearningModuleSettings.
buildJson(ilECSSetting $a_server)
Build resource-specific json.
getECSObjectType()
Get ECS resource identifier, e.g.
Handles object exports to ECS.
getJsonCore($a_etype)
Build core json structure.