27 protected \ilLanguage
$lng;
28 protected \ILIAS\DI\UIServices
$ui;
33 $this->
lng = $DIC->language();
34 $this->
ui = $DIC->ui();
41 string $export_with_comments_cmd,
47 $mess =
$factory->messageBox()->confirmation($message);
48 $modal =
$factory->modal()->roundtrip($title, [$mess]);
51 ->standard($this->
lng->txt(
"no"),
"")
55 :
"window.location.href='$export_cmd'";
56 return "document.querySelector('#$id').addEventListener('click', (e) => { 57 $('#$id').closest('.modal-content').find('button.close').click(); 63 ->standard($this->
lng->txt(
"yes"),
"")
66 ? $export_with_comments_cmd
67 :
"window.location.href='$export_with_comments_cmd'";
68 return "document.querySelector('#$id').addEventListener('click', (e) => { 69 $('#$id').closest('.modal-content').find('button.close').click(); 74 $modal = $modal->withActionButtons([$b1, $b2]);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withAdditionalOnLoadCode(Closure $binder)
Helper UI class for notes/comments handling in (HTML) exports.
getCommentIncludeModalDialog(string $title, string $message, string $export_cmd, string $export_with_comments_cmd, bool $js=false)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins