ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
5 include_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 ?>