ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilECSGlossarySettings.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
11{
12 protected function getECSObjectType()
13 {
14 return '/campusconnect/glossaries';
15 }
16
17 protected function buildJson(ilECSSetting $a_server)
18 {
19 $json = $this->getJsonCore('application/ecs-glossary');
20
21 $json->availability = $this->content_obj->getOnline() ? 'online' : 'offline';
22
23 return $json;
24 }
25}
An exception for terminatinating execution or to throw for unit testing.
Class ilECSGlossarySettings.
getECSObjectType()
Get ECS resource identifier, e.g.
buildJson(ilECSSetting $a_server)
Build resource-specific json.
Handles object exports to ECS.
getJsonCore($a_etype)
Build core json structure.