|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Handles object exports to ECS. More...
Inheritance diagram for ilECSObjectSettings:
Collaboration diagram for ilECSObjectSettings:Public Member Functions | |
| __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... | |
| getSettingsSection (FieldFactory $field_factory, Refinery $refinery) | |
| saveSettingsSection (array $section) | |
| handleSettingsUpdate (ilPropertyFormGUI $form) | |
| 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 | |
| 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 | |
| const | MAIL_SENDER = 6 |
Protected Member Functions | |
| 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... | |
Protected Attributes | |
| ilObject | $content_obj |
Private Member Functions | |
| handleSettings (bool $ecs_export, array $selected_receivers) | |
Private Attributes | |
| ilLogger | $logger |
| ilLanguage | $lng |
| ilTree | $tree |
| ilRbacAdmin | $rbacAdmin |
| ilGlobalTemplateInterface | $main_tpl |
Handles object exports to ECS.
Definition at line 31 of file class.ilECSObjectSettings.php.
| ilECSObjectSettings::__construct | ( | ilObject | $a_content_object | ) |
Constructor.
| ilObject | $a_content_object |
Definition at line 48 of file class.ilECSObjectSettings.php.
References $DIC, ILIAS\Repository\lng(), and ILIAS\Repository\logger().
Here is the call graph for this function:
|
static |
handle delete Objects that are moved to the trash call ECS-Remove
Definition at line 547 of file class.ilECSObjectSettings.php.
References $server, ILIAS\LTI\ToolProvider\$settings, ilECSExportManager\getInstance(), ilECSServerSettings\getInstance(), ilObjectFactory\getInstanceByRefId(), and ilECSSetting\getInstanceByServerId().
Referenced by ilRepUtil\deleteObjects().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Add advanced metadata to json (export)
Definition at line 705 of file class.ilECSObjectSettings.php.
References $id, buildJson(), ilECSUtils\getAdvancedMDValuesForObjId(), ilECSDataMappingSettings\getInstanceByServerId(), ilECSSetting\getServerId(), ILIAS\Repository\int(), ilECSDataMappingSetting\MAPPING_EXPORT, ilECSUtils\TYPE_ARRAY, ilECSUtils\TYPE_INT, ilECSUtils\TYPE_STRING, and ilECSUtils\TYPE_TIMEPLACE.
Referenced by ilECSCourseSettings\buildJson().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSObjectSettings::addSettingsToForm | ( | ilPropertyFormGUI | $a_form, |
| $a_type | |||
| ) |
Fill ECS export settings "multiple servers".
to be used in ilObject->initEditForm()
Definition at line 126 of file class.ilECSObjectSettings.php.
References ILIAS\LTI\ToolProvider\$details, ilPropertyFormGUI\addItem(), ecsCanBeActivatedForObject(), getECSObjectType(), ilECSExportManager\getInstance(), ilECSEContentDetails\getInstanceFromServer(), ILIAS\Repository\lng(), ilFormPropertyGUI\setRequired(), ilRadioOption\setValue(), and ilCheckboxGroupInputGUI\setValue().
Here is the call graph for this function:
|
abstractprotected |
Build resource-specific json.
Referenced by addMetadataToJson(), doAdd(), and doUpdate().
Here is the caller graph for this function:
|
protected |
Add resource to ECS.
Definition at line 454 of file class.ilECSObjectSettings.php.
References buildJson(), getECSObjectType(), handlePermissionUpdate(), ilECSConnector\HEADER_MEMBERSHIPS, ILIAS\Repository\logger(), ilECSExport\save(), sendNewContentNotification(), ilECSExport\setEContentId(), and ilECSExport\setExported().
Referenced by handleSettingsForServer().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSObjectSettings::doDelete | ( | ilECSSetting | $a_server, |
| ilECSExport | $a_export_settings | ||
| ) |
Delete ECS resource.
as it is called from self::_handleDelete() it has to be public...
| ilECSConnectorException |
Definition at line 518 of file class.ilECSObjectSettings.php.
References ilECSExport\getEContentId(), getECSObjectType(), ilECSExport\isExported(), ILIAS\Repository\logger(), ilECSExport\save(), and ilECSExport\setExported().
Referenced by handleSettingsForServer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Update ECS resource.
| ilECSSetting | $a_server | |
| ilECSExport | $a_export_settings | |
| array | $a_mids |
| ilECSConnectorException |
Definition at line 486 of file class.ilECSObjectSettings.php.
References buildJson(), ilECSExport\getEContentId(), getECSObjectType(), getParticipants(), ilECSSetting\getServerId(), handlePermissionUpdate(), ilECSConnector\HEADER_MEMBERSHIPS, and ILIAS\Repository\logger().
Referenced by handleContentUpdate(), and handleSettingsForServer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 235 of file class.ilECSObjectSettings.php.
References ilECSExportManager\_isExported(), getContentObject(), isActive(), and ILIAS\Repository\logger().
Referenced by addSettingsToForm(), and getSettingsSection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSObjectSettings::getContentObject | ( | ) |
Get content object.
Definition at line 95 of file class.ilECSObjectSettings.php.
References $content_obj, and getECSObjectType().
Referenced by ilECSCourseSettings\buildJson(), ecsCanBeActivatedForObject(), and getJsonCore().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Get ECS resource identifier, e.g.
"/campusconnect/courselinks"
Referenced by addSettingsToForm(), doAdd(), doDelete(), doUpdate(), getContentObject(), getParticipants(), getValueForECSExportOptionalGroup(), and sendNewContentNotification().
Here is the caller graph for this function:
|
static |
Get settings handler for repository object.
Definition at line 64 of file class.ilECSObjectSettings.php.
References ilObject\getType().
Here is the call graph for this function:
|
protected |
Build core json structure.
Definition at line 688 of file class.ilECSObjectSettings.php.
References getContentObject(), and IL_INST_ID.
Referenced by ilECSGroupSettings\buildJson(), ilECSGlossarySettings\buildJson(), ilECSWikiSettings\buildJson(), ilECSLearningModuleSettings\buildJson(), ilECSCategorySettings\buildJson(), ilECSFileSettings\buildJson(), ilECSTestSettings\buildJson(), and ilECSCourseSettings\buildJson().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get participants for server and ecs resource.
Definition at line 578 of file class.ilECSObjectSettings.php.
References ILIAS\LTI\ToolProvider\$details, getECSObjectType(), and ilECSEContentDetails\getInstanceFromServer().
Referenced by doUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSObjectSettings::getSettingsSection | ( | FieldFactory | $field_factory, |
| Refinery | $refinery | ||
| ) |
Definition at line 196 of file class.ilECSObjectSettings.php.
References ILIAS\UI\Implementation\Component\Input\$inputs, ecsCanBeActivatedForObject(), ilECSExportManager\getInstance(), getTrafoForECSExportSection(), getValueForECSExportOptionalGroup(), ILIAS\Repository\lng(), ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation(), and ILIAS\UI\Implementation\Component\Input\withValue().
Here is the call graph for this function:
|
protected |
Definition at line 268 of file class.ilECSObjectSettings.php.
Referenced by getSettingsSection().
Here is the caller graph for this function:
|
protected |
Definition at line 286 of file class.ilECSObjectSettings.php.
References ILIAS\LTI\ToolProvider\$details, ILIAS\LTI\ToolProvider\$key, getECSObjectType(), ilECSExportManager\getExportServerIds(), and ilECSEContentDetails\getInstanceFromServer().
Referenced by getSettingsSection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSObjectSettings::handleContentUpdate | ( | ) |
Update ECS Content.
to be used AFTER metadata-/content-updates
Definition at line 425 of file class.ilECSObjectSettings.php.
References $server, doUpdate(), ilECSExportManager\getInstance(), ilECSSetting\getInstanceByServerId(), isActive(), and ILIAS\Repository\logger().
Here is the call graph for this function:
|
protected |
Handle permission update.
Definition at line 670 of file class.ilECSObjectSettings.php.
References ilRbacReview\_getOperationIdsByName(), ilECSSetting\getGlobalRole(), and ILIAS\Repository\logger().
Referenced by doAdd(), and doUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 344 of file class.ilECSObjectSettings.php.
References $server, ilECSSetting\getInstanceByServerId(), handleSettingsForServer(), and isActive().
Referenced by handleSettingsUpdate(), and saveSettingsSection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Save ECS settings (add- update- deleteResource)
| array | array of participant mids |
| ilECSConnectorException |
Definition at line 399 of file class.ilECSObjectSettings.php.
References doAdd(), doDelete(), doUpdate(), and ilECSSetting\getServerId().
Referenced by handleSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSObjectSettings::handleSettingsUpdate | ( | ilPropertyFormGUI | $form | ) |
Update ECS Export Settings.
Processes post data from addSettingstoForm() to be used in ilObject->update() AFTER object data has been updated
Definition at line 335 of file class.ilECSObjectSettings.php.
References ilPropertyFormGUI\getInput(), and handleSettings().
Here is the call graph for this function:
|
protected |
Is ECS (for current object) active?
Definition at line 108 of file class.ilECSObjectSettings.php.
References ilECSServerSettings\getInstance().
Referenced by ecsCanBeActivatedForObject(), handleContentUpdate(), and handleSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSObjectSettings::saveSettingsSection | ( | array | $section | ) |
Definition at line 324 of file class.ilECSObjectSettings.php.
References handleSettings().
Here is the call graph for this function:
|
protected |
send notifications about new EContent
Definition at line 599 of file class.ilECSObjectSettings.php.
References ILIAS\LTI\ToolProvider\$details, Vendor\Package\$e, $lang, $message, ilMail\_getAutoGeneratedMessageString(), ilLanguageFactory\_getLanguage(), ilLink\_getStaticLink(), ilECSSetting\getApprovalRecipients(), ilECSSetting\getApprovalRecipientsAsString(), getECSObjectType(), ilECSCommunityReader\getInstanceByServerId(), ilECSEContentDetails\getInstanceFromServer(), ilECSSetting\getServerId(), and ILIAS\Repository\logger().
Referenced by doAdd().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 33 of file class.ilECSObjectSettings.php.
Referenced by getContentObject().
|
private |
Definition at line 36 of file class.ilECSObjectSettings.php.
|
private |
Definition at line 35 of file class.ilECSObjectSettings.php.
|
private |
Definition at line 41 of file class.ilECSObjectSettings.php.
|
private |
Definition at line 38 of file class.ilECSObjectSettings.php.
|
private |
Definition at line 37 of file class.ilECSObjectSettings.php.
| const ilECSObjectSettings::MAIL_SENDER = 6 |
Definition at line 40 of file class.ilECSObjectSettings.php.