3 declare(strict_types=1);
31 public function init(): void
33 $this->copy_enabled =
true;
34 $this->delete_enabled =
true;
35 $this->cut_enabled =
true;
36 $this->subscribe_enabled =
true;
37 $this->link_enabled =
true;
38 $this->info_screen_enabled =
true;
40 $this->gui_class_name =
"ilobjbloggui";
51 $permissions = array();
53 if ($item[
"lang_var"] ===
"edit" && $item[
"granted"]) {
54 $permissions[$item[
"permission"]] = $idx;
57 if (count($permissions) === 2) {
58 unset(
$commands[$permissions[
"contribute"]]);
76 && (
bool) $this->
settings->get(
'item_cmd_asynch')) {
78 $cmd =
"forwardExport";
82 parent::insertCommand($href, $text, $frame, $img, $cmd, $onclick);
87 $chksum = md5($href . $text);
89 !in_array($chksum, $this->prevent_duplicate_commands)) {
91 $this->prevent_duplicate_commands[] = $chksum;
94 $prevent_background_click =
false;
97 $comment_export_helper = new \ILIAS\Notes\Export\ExportHelperGUI();
98 $this->
lng->loadLanguageModule(
"note");
99 $this->comment_modal = $comment_export_helper->getCommentIncludeModalDialog(
101 $this->
lng->txt(
"note_html_export_include_comments"),
105 $signal = $this->comment_modal->getShowSignal()->getId();
106 $this->current_selection_list->addItem(
114 $prevent_background_click,
115 "( function() { $(document).trigger('" . $signal .
"', {'id': '" . $signal .
"','triggerer':$(this), 'options': JSON.parse('[]')}); return false;})()" 126 bool $use_async =
false,
127 bool $get_async_commands =
false,
128 string $async_url =
"" 130 $html = parent::getListItemHTML(
140 if (!is_null($this->comment_modal)) {
142 $renderer = $DIC->ui()->renderer();
143 $html .= $renderer->render($this->comment_modal);
This describes commonalities between the different modals.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getListItemHTML(int $ref_id, int $obj_id, string $title, string $description, bool $use_async=false, bool $get_async_commands=false, string $async_url="")
static isCommentsExportPossible(int $blog_id)
insertCommand(string $href, string $text, string $frame="", string $img="", string $cmd="", string $onclick="")
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
Returns a link target for the given information.
getCommandLink(string $cmd)
Get command link url.