ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilECSCourseSettings Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 __construct (ilObject $a_content_object)
 
- 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...
 

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, 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...
 

Protected Attributes

ilLogger $logger
 
- Protected Attributes inherited from ilECSObjectSettings
ilObject $content_obj
 

Additional Inherited Members

- 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
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilECSCourseSettings

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

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

Constructor & Destructor Documentation

◆ __construct()

ilECSCourseSettings::__construct ( ilObject  $a_content_object)

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

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\logger().

31  {
32  global $DIC;
33 
34  $this->logger = $DIC->logger()->crs();
35  parent::__construct($a_content_object);
36  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ buildJson()

ilECSCourseSettings::buildJson ( ilECSSetting  $a_server)
protected

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

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

44  {
45  $json = $this->getJsonCore('application/ecs-course');
46 
47  // meta language
49  $this->content_obj->getId(),
50  $this->content_obj->getId(),
51  $this->content_obj->getType()
52  );
53  if (strlen($lang) !== 0) {
54  $json->lang = $lang . '_' . strtoupper($lang);
55  }
56  $json->status = $this->content_obj->isActivated() ? 'online' : 'offline';
57 
59  $this->addMetadataToJson($json, $a_server, $definition);
60  $json->courseID = 'il_' . IL_INST_ID . '_' . $this->getContentObject()->getType() . '_' . $this->getContentObject()->getId();
61  return $json;
62  }
const IL_INST_ID
Definition: constants.php:40
static _lookupFirstLanguage(int $a_rbac_id, int $a_obj_id, string $a_obj_type)
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.
$lang
Definition: xapiexit.php:26
+ Here is the call graph for this function:

◆ getECSObjectType()

ilECSCourseSettings::getECSObjectType ( )
protected

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

Referenced by buildJson().

38  : string
39  {
40  return '/campusconnect/courselinks';
41  }
+ Here is the caller graph for this function:

Field Documentation

◆ $logger

ilLogger ilECSCourseSettings::$logger
protected

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


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