Class ilECSCourseSettings.  
 More...
 | 
|   | getECSObjectType () | 
|   | 
|   | buildJson (ilECSSetting $a_server) | 
|   | 
|   | getECSObjectType () | 
|   | Get ECS resource identifier, e.g.  More...
  | 
|   | 
|   | isActive () | 
|   | Is ECS (for current object) active?  More...
  | 
|   | 
|   | ecsCanBeActivatedForObject (ilECSExportManager $export_manager, array $exportable_participants) | 
|   | 
|   | getTrafoForECSExportSection (Refinery $refinery) | 
|   | 
|   | getValueForECSExportOptionalGroup (ilECSExportManager $export_manager, array $potential_receivers) | 
|   | 
|   | handleSettingsForServer (ilECSSetting $a_server, bool $a_export, array $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 (int $a_server_id, int $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) | 
|   | Handle permission update.  More...
  | 
|   | 
|   | getJsonCore (string $a_etype) | 
|   | Build core json structure.  More...
  | 
|   | 
|   | addMetadataToJson (object $a_json, ilECSSetting $a_server, array $a_definition) | 
|   | Add advanced metadata to json (export)  More...
  | 
|   | 
|   | buildJson (ilECSSetting $a_server) | 
|   | Build resource-specific json.  More...
  | 
|   | 
◆ __construct()
      
        
          | ilECSCourseSettings::__construct  | 
          ( | 
          ilObject  | 
          $a_content_object | ) | 
           | 
        
      
 
 
◆ buildJson()
Definition at line 47 of file class.ilECSCourseSettings.php.
References ilECSObjectSettings\addMetadataToJson(), ilECSObjectSettings\getContentObject(), ilECSUtils\getEContentDefinition(), getECSObjectType(), ilECSObjectSettings\getJsonCore(), and IL_INST_ID.
   49         $json = $this->
getJsonCore(
'application/ecs-course');
    52         $lang = $this->lom_services->read(
    53             $this->content_obj->getId(),
    54             $this->content_obj->getId(),
    55             $this->content_obj->getType(),
    56             $this->lom_services->paths()->languages()
    57         )->firstData($this->lom_services->paths()->languages())->value();
    59         if (strlen($lang) !== 0) {
    60             $json->lang = $lang . 
'_' . strtoupper($lang);
    62         $json->status = $this->content_obj->isActivated() ? 
'online' : 
'offline';
 
static getEContentDefinition(string $a_resource_id)
Get econtent / metadata definition. 
 
addMetadataToJson(object $a_json, ilECSSetting $a_server, array $a_definition)
Add advanced metadata to json (export) 
 
getContentObject()
Get content object. 
 
getJsonCore(string $a_etype)
Build core json structure. 
 
 
 
 
◆ getECSObjectType()
  
  
      
        
          | ilECSCourseSettings::getECSObjectType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ $logger
◆ $lom_services
  
  
      
        
          | LOMServices ilECSCourseSettings::$lom_services | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: