ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilECSLearningModuleSettings.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
5include_once 'Services/WebServices/ECS/classes/class.ilECSObjectSettings.php';
6
16{
17 protected function getECSObjectType()
18 {
19 return '/campusconnect/learningmodules';
20 }
21
22 protected function buildJson(ilECSSetting $a_server)
23 {
24 $json = $this->getJsonCore('application/ecs-learningmodule');
25
26 $json->availability = $this->content_obj->getOnline() ? 'online' : 'offline';
27
28 return $json;
29 }
30}
31
32?>
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.