ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
ilECSCourseSettings Class Reference

Class ilECSCourseSettings. More...

+ Inheritance diagram for ilECSCourseSettings:
+ Collaboration diagram for ilECSCourseSettings:

Protected Member Functions

 getECSObjectType ()
 
 buildJson (ilECSSetting $a_server)
 
- Protected Member Functions inherited from ilECSObjectSettings
 getECSObjectType ()
 Get ECS resource identifier, e.g. More...
 
 isActive ()
 Is ECS (for current object) active? More...
 
 handleSettingsForServer (ilECSSetting $a_server, $a_export, $a_mids)
 Save ECS settings (add- update- deleteResource) More...
 
 doAdd (ilECSSetting $a_server, ilECSExport $a_export_settings, array $a_mids)
 Add resource to ECS. More...
 
 doUpdate (ilECSSetting $a_server, ilECSExport $a_export_settings, array $a_mids=null)
 Update ECS resource. More...
 
 getParticipants ($a_server_id, $a_econtent_id)
 Get participants for server and ecs resource. More...
 
 sendNewContentNotification (ilECSSetting $a_server, $a_econtent_id)
 send notifications about new EContent More...
 
 handlePermissionUpdate (ilECSSetting $server)
 
 getJsonCore ($a_etype)
 Build core json structure. More...
 
 addMetadataToJson (&$a_json, ilECSSetting $a_server, array $a_definition)
 Add advanced metadata to json (export) More...
 
 buildJson (ilECSSetting $a_server)
 Build resource-specific json. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilECSObjectSettings
 __construct (ilObject $a_content_object)
 Constructor. More...
 
 getContentObject ()
 Get content object. More...
 
 addSettingsToForm (ilPropertyFormGUI $a_form, $a_type)
 Fill ECS export settings "multiple servers". More...
 
 handleSettingsUpdate ()
 Update ECS Export Settings. More...
 
 handleContentUpdate ()
 Update ECS Content. More...
 
 doDelete (ilECSSetting $a_server, ilECSExport $a_export_settings)
 Delete ECS resource. More...
 
- Static Public Member Functions inherited from ilECSObjectSettings
static getInstanceByObject (ilObject $a_content_obj)
 Get settings handler for repository object. More...
 
static _handleDelete (array $a_subbtree_nodes)
 handle delete Objects that are moved to the trash call ECS-Remove More...
 
- Data Fields inherited from ilECSObjectSettings
const MAIL_SENDER = 6
 
- Protected Attributes inherited from ilECSObjectSettings
 $content_obj
 

Detailed Description

Class ilECSCourseSettings.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Id
class.ilObjCourseGUI.php 31646 2011-11-14 11:39:37Z jluetzen

Definition at line 15 of file class.ilECSCourseSettings.php.

Member Function Documentation

◆ buildJson()

ilECSCourseSettings::buildJson ( ilECSSetting  $a_server)
protected

Definition at line 22 of file class.ilECSCourseSettings.php.

References $ilLog, $lang, ilMDLanguage\_lookupFirstLanguage(), ilECSObjectSettings\addMetadataToJson(), ilECSObjectSettings\getContentObject(), ilECSUtils\getEContentDefinition(), getECSObjectType(), and ilECSObjectSettings\getJsonCore().

23  {
24  global $ilLog;
25 
26  $json = $this->getJsonCore('application/ecs-course');
27 
28  // meta language
29  include_once('./Services/MetaData/classes/class.ilMDLanguage.php');
30  $lang = ilMDLanguage::_lookupFirstLanguage($this->content_obj->getId(),$this->content_obj->getId(),$this->content_obj->getType());
31  if(strlen($lang))
32  {
33  $json->lang = $lang.'_'.strtoupper($lang);
34  }
35 
36  $json->status = $this->content_obj->isActivated() ? 'online' : 'offline';
37 
38  include_once('./Services/WebServices/ECS/classes/class.ilECSUtils.php');
40  $this->addMetadataToJson($json, $a_server, $definition);
41 
42  $json->courseID = 'il_'.IL_INST_ID.'_'.$this->getContentObject()->getType().'_'.$this->getContentObject()->getId();
43 
44  return $json;
45  }
static getEContentDefinition($a_resource_id)
Get econtent / metadata definition.
static _lookupFirstLanguage($a_rbac_id, $a_obj_id, $a_obj_type)
Lookup first language.
getContentObject()
Get content object.
addMetadataToJson(&$a_json, ilECSSetting $a_server, array $a_definition)
Add advanced metadata to json (export)
getJsonCore($a_etype)
Build core json structure.
+ Here is the call graph for this function:

◆ getECSObjectType()

ilECSCourseSettings::getECSObjectType ( )
protected

Definition at line 17 of file class.ilECSCourseSettings.php.

Referenced by buildJson().

18  {
19  return '/campusconnect/courselinks';
20  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: