34 protected \ILIAS\Notes\InternalGUIService
$gui;
37 protected \ILIAS\Notes\InternalDataService
$data;
70 protected \ILIAS\DI\UIServices
$ui;
103 string $a_obj_type =
"",
104 bool $a_include_subobjects =
false,
107 string $search_text =
"" 111 $this->
user = $DIC->user();
113 $this->obj_definition = $DIC[
"objDefinition"];
114 $this->tree = $DIC->repositoryTree();
115 $this->
access = $DIC->access();
116 $this->
ui = $DIC->ui();
117 $ilCtrl = $DIC->ctrl();
118 $this->
lng = $DIC->language();
122 $ns = $DIC->notes()->internal();
129 $this->data = $ns->data();
130 $this->gui = $ns->gui();
131 $this->notes_access = $ns->domain()->noteAccess();
133 $this->
lng->loadLanguageModule(
"notes");
135 $ilCtrl->saveParameter($this,
"notes_only");
137 $this->rep_obj_id = $a_rep_obj_id;
138 $this->obj_id = $a_obj_id;
139 $this->obj_type = $a_obj_type;
140 $this->inc_sub = $a_include_subobjects;
141 $this->news_id = $a_news_id;
144 if (!is_array($a_rep_obj_id) && !$this->obj_type && $a_rep_obj_id) {
150 $this->
ctrl = $ilCtrl;
152 $this->add_note_form =
false;
153 $this->edit_note_form =
false;
154 $this->private_enabled =
false;
156 if (!is_array($this->rep_obj_id)) {
157 if ($this->manager->commentsActive($this->rep_obj_id)) {
158 $this->public_enabled =
true;
160 $this->public_enabled =
false;
163 $this->targets_enabled =
false;
164 $this->export_html =
false;
165 $this->print =
false;
166 $this->comments_settings =
false;
171 $this->
ctrl->saveParameter($this,
"note_type");
172 $this->requested_note_type = $this->request->getNoteType();
173 $this->requested_note_id = $this->request->getNoteId();
174 $this->requested_note_mess = $this->request->getNoteMess();
175 $this->requested_news_id = $this->request->getNewsId();
180 $this->show_empty_list_message = $a_val;
190 $this->show_header = $a_val;
201 $this->use_obj_title_header = $a_val;
211 $this->default_command = $a_val;
216 $this->hide_new_form = $a_val;
227 $next_class = $this->
ctrl->getNextClass($this);
228 switch ($next_class) {
230 return $this->$cmd();
236 $this->private_enabled = $a_enable;
241 $this->public_enabled = $a_enable;
246 $this->comments_settings = $a_enable;
251 $this->public_deletion_enabled = $a_enable;
257 $this->targets_enabled = $a_enable;
262 $this->repository_mode = $a_value;
268 $ilCtrl->
setParameter($this,
"notes_type", Note::PRIVATE);
269 $this->requested_note_type = Note::PRIVATE;
276 $this->gui->initJavascript();
279 $ilCtrl->
setParameter($this,
"notes_type", Note::PUBLIC);
280 $this->requested_note_type = Note::PUBLIC;
296 if ($this->requested_note_type === Note::PUBLIC) {
299 if (!is_array($this->rep_obj_id) && $this->news_id === 0) {
305 $active = $this->manager->commentsActive($this->rep_obj_id);
314 $active = $this->manager->commentsActive($this->rep_obj_id);
316 if ($this->news_id === 0) {
319 $lng->
txt(
"notes_deactivate_comments"),
320 "deactivateComments",
328 $lng->
txt(
"notes_activate_comments"),
348 if ($this->
ctrl->isAsynch()) {
349 return $this->
ui->renderer()->renderAsync($components);
351 return $this->
ui->renderer()->render($components);
358 if ($this->comments_settings) {
359 $this->manager->activateComments($this->rep_obj_id,
true);
362 $ilCtrl->
redirectByClass(
"ilnotegui",
"getCommentsHTML",
"", $this->ajax);
369 if ($this->comments_settings) {
370 $this->manager->activateComments($this->rep_obj_id,
false);
373 $ilCtrl->
redirectByClass(
"ilnotegui",
"getCommentsHTML",
"", $this->ajax);
381 if ($this->notes === null) {
384 if ($this->export_html || $this->print) {
385 if ($this->requested_note_id > 0) {
388 $filter = $this->request->getNoteText();
392 $ascending = $this->manager->getSortAscending();
393 if ($this->only_latest) {
396 $author_id = ($a_type === Note::PRIVATE)
400 if (!is_array($this->rep_obj_id)) {
401 $notes = $this->manager->getNotesForContext(
402 $this->data->context(
407 $this->repository_mode
417 $notes = $this->manager->getNotesForRepositoryObjIds(
433 int $a_type = Note::PRIVATE,
434 bool $a_init_form =
true 438 $f = $this->
ui->factory();
443 $suffix = ($a_type === Note::PRIVATE)
449 $tpl =
new ilTemplate(
"tpl.notes_list.html",
true,
true,
"Services/Notes");
452 $cnt_str = (count($notes) > 0)
453 ?
" (" . count($notes) .
")" 458 if ($origin_header !=
"") {
459 $tpl->setCurrentBlock(
"title");
460 $tpl->setVariable(
"TITLE", $origin_header);
461 $tpl->parseCurrentBlock();
464 if ($a_type === Note::PRIVATE) {
465 $tpl->setVariable(
"TXT_NOTES", $lng->
txt(
"private_notes") . $cnt_str);
466 $ilCtrl->setParameterByClass(
"ilnotegui",
"note_type", Note::PRIVATE);
468 $tpl->setVariable(
"TXT_NOTES", $lng->
txt(
"notes_public_comments") . $cnt_str);
469 $ilCtrl->setParameterByClass(
"ilnotegui",
"note_type", Note::PUBLIC);
474 if (!$this->edit_note_form && !is_array($this->rep_obj_id) &&
476 $tpl->setCurrentBlock(
"edit_note_form");
477 $b_caption = ($this->requested_note_type === Note::PRIVATE)
478 ? $this->
lng->txt(
"note_add_note")
479 : $this->
lng->txt(
"note_add_comment");
480 $b = $this->
ui->factory()->button()->standard(
484 $tpl->setVariable(
"EDIT_STYLE",
"display:none;");
487 $ilCtrl->getFormActionByClass(
"ilnotegui",
"addNote",
"",
true)
491 $this->
lng->txt(
"cancel")
501 $tpl->parseCurrentBlock();
508 $notes_given =
false;
511 if ($this->edit_note_form && $a_type === $this->requested_note_type) {
512 $note = $this->manager->getById($this->requested_note_id);
513 $ilCtrl->setParameterByClass(
"ilnotegui",
"note_id", $this->requested_note_id);
516 $ilCtrl->getFormActionByClass(
"ilnotegui",
"updateNote",
"",
true)
519 "CANCEL_FORM_ACTION",
520 $ilCtrl->getFormActionByClass(
"ilnotegui",
"cancelUpdateNote",
"",
true)
522 $tpl->setVariable(
"NOTE_FOCUS",
"1");
525 $this->
lng->txt(
"cancel")
529 $this->
getNoteForm(
"edit", $a_type, $note)->render()
531 $tpl->parseCurrentBlock();
536 $text_placeholders = [];
539 foreach ($notes as $note) {
540 if ($this->only_latest && $notes_given) {
544 $current_obj_id = $note->getContext()->getObjId();
545 if ($last_obj_id !== null && $current_obj_id !== $last_obj_id) {
547 $item_groups[] =
$f->item()->group($it_group_title, $items);
550 $last_obj_id = $current_obj_id;
560 $item_groups[] =
$f->item()->group($it_group_title, $items);
563 if (!is_array($this->rep_obj_id)) {
564 $title = $item_groups[0]->getTitle();
565 $item_groups[0] =
$f->item()->group(
"", $item_groups[0]->getItems());
569 $panel =
$f->panel()->listing()->standard($title, $item_groups);
570 if (!is_array($this->rep_obj_id)) {
574 $html = str_replace($text_placeholders, $texts, $html);
575 $tpl->setVariable(
"NOTES_LIST", $html);
576 } elseif (!is_array($this->rep_obj_id)) {
578 $item_groups = [
$f->item()->group($it_group_title, [])];
579 $panel =
$f->panel()->listing()->standard(
"", $item_groups);
581 if ($this->show_empty_list_message) {
582 if ($this->search_text ===
"") {
583 $mess_txt = ($this->requested_note_type === Note::PRIVATE)
584 ? $lng->
txt(
"notes_no_notes")
585 : $lng->
txt(
"notes_no_comments");
587 $mess_txt = ($this->requested_note_type === Note::PRIVATE)
588 ? $lng->
txt(
"notes_no_notes_found")
589 : $lng->
txt(
"notes_no_comments_found");
591 $mess =
$f->messageBox()->info($mess_txt);
594 $tpl->setVariable(
"NOTES_LIST", $html);
596 } elseif ($this->search_text !==
"") {
597 $mess_txt = ($this->requested_note_type === Note::PRIVATE)
598 ? $lng->
txt(
"notes_no_notes_found")
599 : $lng->
txt(
"notes_no_comments_found");
600 $mess =
$f->messageBox()->info($mess_txt);
608 switch ($this->requested_note_mess !==
"" ? $this->requested_note_mess : $this->note_mess) {
611 $mtxt = $lng->
txt(
"msg_obj_modified");
616 $mtxt = ($a_type === Note::PRIVATE)
617 ? $lng->
txt(
"notes_notes_deleted")
618 : $lng->
txt(
"notes_comments_deleted");
623 $mtxt = ($a_type === Note::PRIVATE)
624 ? $lng->
txt(
"notes_note_deleted")
625 : $lng->
txt(
"notes_comment_deleted");
630 $mtxt = $lng->
txt(
"form_input_not_valid");
635 $mtxt = $lng->
txt(
"info_delete_sure");
640 $mtxt = $lng->
txt(
"no_checkbox");
646 $tpl->setVariable(
"MESS",
"");
649 if ($this->widget_header !==
"") {
650 $tpl->setVariable(
"WIDGET_HEADER", $this->widget_header);
675 if ($this->manager->getSortAscending()) {
678 $this->
lng->txt(
"notes_sort_desc"),
686 $this->
lng->txt(
"notes_sort_asc"),
693 $s = $this->
ui->factory()->dropdown()->standard(
702 if (!$this->show_header) {
706 $it_group_title = ($this->requested_note_type === Note::PRIVATE)
707 ? $this->
lng->txt(
"notes")
708 : $this->
lng->txt(
"notes_comments");
712 : $this->
lng->txt(
"note_without_object");
714 return $it_group_title;
726 $f = $this->
ui->factory();
733 if ($actions && $this->notes_access->canEdit($note)) {
734 if (!$this->export_html && !$this->print
735 && !$this->edit_note_form && !$this->add_note_form && !$this->no_actions) {
739 $this->
lng->txt(
"edit"),
741 "note_" . $note->
getId(),
748 if ($actions && !$this->export_html && !$this->print
749 && !$this->no_actions
750 && $this->notes_access->canDelete($note)) {
754 $this->
lng->txt(
"delete"),
756 "note_" . $note->
getId(),
767 if ($this->targets_enabled) {
769 if ($target[
"title"] !==
"") {
770 if ($target[
"link"] ===
"") {
771 $properties[$this->
lng->txt(
"notes_origin")] = $target[
"title"];
773 $properties[$this->
lng->txt(
"notes_origin")] =
$f 787 if ($note->
getType() === Note::PUBLIC) {
790 $properties[$this->
lng->txt(
"create_date")] = $creation_date;
792 $title = $creation_date;
805 $item =
$f->item()->standard($title)
807 ->withProperties($properties);
808 if (!is_null($avatar)) {
809 $item = $item->withLeadAvatar($avatar);
811 if (count($dd_buttons) > 0) {
812 $item = $item->withActions(
813 $f->dropdown()->standard($dd_buttons)
821 return "##note-text-" . $note->
getId() .
"##";
826 return (trim($note->
getText()) !==
"")
827 ? nl2br(htmlentities($note->
getText()))
828 : $this->
lng->txt(
"note_content_removed");
840 if ($parent_type ===
"") {
843 $parent_class =
"ilObj" . $objDefinition->getClassName($parent_type) .
"GUI";
844 if (method_exists($parent_class,
"lookupSubObjectTitle")) {
845 return call_user_func_array(array($parent_class,
"lookupSubObjectTitle"), array($parent_obj_id, $sub_obj_id));
854 ): \
ILIAS\Repository\
Form\FormAdapterGUI {
858 $label_key .= ($mode ===
"create")
861 $label_key .= ($type === Note::PUBLIC)
864 $cmd = ($mode ===
"create")
871 if ($cmd ===
"updateNote") {
872 $this->
ctrl->setParameter($this,
"note_id", $this->requested_note_id);
874 $action = $this->
ctrl->getFormAction($this, $cmd,
"");
875 $form = $this->gui->form(self::class, $action)
876 ->section(
"props", $this->
lng->txt($label_key))
877 ->textarea(
"note", $this->
lng->txt(
"note_text"),
"", $value);
895 $a_note_id = $note->
getId();
898 $a_obj_id =
$context->getSubObjId();
905 foreach ($ref_ids as
$ref_id) {
906 if ($vis_ref_id > 0) {
909 if ($ilAccess->checkAccess(
"visible",
"", $ref_id)) {
915 if ($vis_ref_id > 0) {
919 if (
$type ===
"poll") {
921 } elseif ($a_obj_type !==
"pg") {
922 if (!isset($this->item_list_gui[
$type])) {
923 $class = $objDefinition->getClassName($type);
924 $full_class =
"ilObj" . $class .
"ListGUI";
925 $this->item_list_gui[
$type] =
new $full_class();
930 if ($a_obj_type ===
"crsr" || $a_obj_type ===
"catr" || $a_obj_type ===
"grpr") {
934 $this->item_list_gui[
$type]->initItem($vis_ref_id,
$context->getObjId(), $title, $a_obj_type);
935 $link = $this->item_list_gui[
$type]->getCommandLink(
"infoScreen");
936 $link = $this->item_list_gui[
$type]->appendRepositoryFrameParameter($link) .
"#note_" . $a_note_id;
939 $link =
"goto.php?target=pg_" . $a_obj_id .
"_" . $vis_ref_id;
943 if (!isset($this->wsp_tree)) {
947 $node_id = $this->wsp_tree->lookupNodeId(
$context->getObjId());
948 if ($this->wsp_access_handler->checkAccess(
"visible",
"", $node_id)) {
949 $path = $this->wsp_tree->getPathFull($node_id);
951 $item = array_pop(
$path);
952 $title = $item[
"title"];
960 $link =
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToWorkspace&dsh=" .
976 bool $a_init_form =
true 978 $this->add_note_form =
true;
1008 $this->requested_note_type
1009 )->getData(
"note") ??
"";
1012 if ($text !==
"" && !is_array($this->rep_obj_id)) {
1018 $this->repository_mode
1020 $note = $this->data->note(
1027 $this->manager->createNote(
1032 $ilCtrl->setParameter($this,
"note_mess",
"mod");
1034 $ilCtrl->redirect($this,
"getListHTML",
"", $this->
ctrl->isAsynch());
1041 $note = $this->manager->getById($this->requested_note_id);
1044 $this->requested_note_type
1045 )->getData(
"note") ??
"";
1047 if ($this->notes_access->canEdit($note)) {
1048 $this->manager->updateNoteText(
1049 $this->requested_note_id,
1053 $ilCtrl->setParameter($this,
"note_mess",
"mod");
1055 $ilCtrl->redirect($this,
"getListHTML",
"", $this->
ctrl->isAsynch());
1062 bool $a_init_form =
true 1064 $this->edit_note_form =
true;
1078 "tpl.notes_and_comments.html",
1085 $ntpl->setVariable(
"OUTER_ID",
" id='notes_embedded_outer' ");
1088 $ntpl->setVariable(
"CONTENT", $content);
1090 if ($ctrl->
isAsynch() && !$this->request->isFilterCommand()) {
1095 return $ntpl->get();
1103 $f = $this->
ui->factory();
1105 $ctrl->
setParameter($this,
"note_id", $this->requested_note_id);
1106 $note = $this->manager->getById($this->requested_note_id);
1108 $text = ($this->requested_note_type === Note::PRIVATE)
1109 ? $this->
lng->txt(
"notes_delete_note")
1110 : $this->
lng->txt(
"notes_delete_comment");
1112 $mess =
$f->messageBox()->confirmation($text);
1117 $this->
lng->txt(
"cancel"),
1122 $this->
lng->txt(
"delete"),
1127 $item_groups = [
$f->item()->group($it_group_title, [$item])];
1128 $panel =
$f->panel()->listing()->standard(
"", $item_groups);
1146 $ids = [$this->request->getNoteId()];
1147 foreach ($ids as
$id) {
1148 $note = $this->manager->getById($id);
1157 $ilCtrl->setParameter($this,
"note_mess",
"ntdel");
1159 $ilCtrl->redirect($this,
"getListHTML",
"", $this->ajax);
1169 $this->export_html =
true;
1173 $authors = array_unique(array_map(
function (
Note $note) {
1175 }, $this->
getNotes($this->requested_note_type)));
1176 $export = new \ILIAS\Notes\Export\NotesHtmlExport(
1177 $this->requested_note_type,
1178 $this->
user->getId(),
1189 string $a_update_code = null
1191 if ($a_update_code === null) {
1192 $a_update_code =
"null";
1194 $a_update_code =
"'" . $a_update_code .
"'";
1197 return "ilNotes.listNotes(event, '" . $a_hash .
"', " . $a_update_code .
");";
1205 string $a_update_code = null
1207 if ($a_update_code === null) {
1208 $a_update_code =
"null";
1210 $a_update_code =
"'" . $a_update_code .
"'";
1213 return "ilNotes.listComments(event, '" . $a_hash .
"', " . $a_update_code .
");";
1223 string $a_anchor =
"",
1227 $f = $this->
ui->factory();
1230 $button =
$f->button()->shy(
1233 )->withOnLoadCode(
function (
$id) use ($ctrl, $a_cmd, $note_id) {
1236 "$('#$id').on('click', () => { ilNotes.cmdAjaxLink(event, '" .
1241 $button =
$f->button()->shy(
1256 string $a_anchor =
"" 1259 $f = $this->
ui->factory();
1262 $button =
$f->button()->standard(
1265 )->withOnLoadCode(
function (
$id) use ($ctrl, $a_cmd) {
1267 "$('#$id').on('click', () => { ilNotes.cmdAjaxLink(event, '" .
1272 $button =
$f->button()->standard(
1284 callable $a_callback
1286 $this->observer[] = $a_callback;
1291 $this->manager->setSortAscending(
true);
1297 $this->manager->setSortAscending(
false);
1306 $this->gui->initJavascript();
1312 $f = $this->
ui->factory();
1313 $r = $this->
ui->renderer();
1338 $tpl =
new ilTemplate(
"tpl.note_widget_header.html",
true,
true,
"Services/Notes");
1339 $widget_el_id =
"notew_" . str_replace(
";",
"_", $hash);
1341 $update_url = $ctrl->
getLinkTarget($this,
"updateWidget",
"",
true,
false);
1344 $c =
$f->counter()->status((
int) $cnt);
1345 $comps[] =
$f->symbol()->glyph()->comment()->withCounter(
$c)->withAdditionalOnLoadCode(
function (
$id) use ($hash, $update_url, $widget_el_id) {
1346 return "$(\"#$id\").click(function(event) { " . self::getListCommentsJSCall($hash,
"ilNotes.updateWidget(\"" . $widget_el_id .
"\",\"" . $update_url .
"\");") .
"});";
1348 $comps[] =
$f->divider()->vertical();
1349 $tpl->setVariable(
"GLYPH", $r->render($comps));
1350 $tpl->setVariable(
"TXT_LATEST", $lng->
txt(
"notes_latest_comment"));
1354 return "$(\"#$id\").click(function(event) { " . self::getListCommentsJSCall($hash,
"ilNotes.updateWidget(\"" . $widget_el_id .
"\",\"" . $update_url .
"\");") .
"});";
1357 $tpl->setVariable(
"SHY_BUTTON", $r->renderAsync(
$b));
1359 $tpl->setVariable(
"SHY_BUTTON", $r->render(
$b));
1362 $this->widget_header =
$tpl->get();
1364 $this->hide_new_form =
true;
1365 $this->only_latest =
true;
1366 $this->no_actions =
true;
1367 $html =
"<div id='" . $widget_el_id .
"'>" . $this->
getNoteListHTML(Note::PUBLIC) .
"</div>";
1368 $ctrl->
setParameter($this,
"news_id", $this->requested_news_id);
1374 $this->hide_new_form =
true;
1375 $this->no_actions =
true;
1376 $this->enable_sorting =
false;
1377 $this->user_img_export_html =
true;
1388 if (!is_array($this->rep_obj_id) && !$this->only_latest && $this->
ctrl->isAsynch()) {
1389 switch ($this->obj_type) {
1404 if ($this->obj_id) {
1407 $title .=
" - " . $sub_title;
1411 return $img .
" " . $title;
getButton(string $a_var, string $a_txt, string $a_cmd, string $a_anchor="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getSystemMessageHTML(string $a_txt, string $a_type="info")
Get HTML for a system message.
enableCommentsSettings(bool $a_enable=true)
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
StandardGUIRequest $request
static _lookupTitle(int $obj_id)
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
ILIAS Notes AccessManager $notes_access
static getLogger(string $a_component_id)
Get component logger.
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
bool $show_empty_list_message
special template class to simplify handling of ITX/PEAR
getItemGroupTitle(int $obj_id=0)
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Class ChatMainBarProvider .
static _getAllReferences(int $id)
get all reference ids for object ID
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getGotoLink(int $a_node_id, int $a_obj_id, string $a_additional="")
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
addNoteForm(bool $a_init_form=true)
get notes list including add note area
withAdditionalOnLoadCode(Closure $binder)
ilWorkspaceAccessHandler $wsp_access_handler
setDefaultCommand(string $a_val)
enablePrivateNotes(bool $a_enable=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setParameterByClass(string $a_class, string $a_parameter, $a_value)
__construct( $a_rep_obj_id=0, int $a_obj_id=0, string $a_obj_type="", bool $a_include_subobjects=false, int $a_news_id=0, bool $ajax=true, string $search_text="")
static _lookupOwner(int $obj_id)
Lookup owner user ID for object ID.
ilObjectDefinition $obj_definition
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
string $requested_note_mess
getShowEmptyListMessage()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static useRelativeDates()
getUseObjectTitleHeader()
getItemForNote(Note $note, bool $actions=true)
ilWorkspaceTree $wsp_tree
static _getAvatar(int $a_usr_id)
ILIAS Notes InternalGUIService $gui
bool $user_img_export_html
enableTargets(bool $a_enable=true)
getNoteTextPlaceholder(Note $note)
exportNotesHTML()
export selected notes to html
parses the objects.xml it handles the xml-description of all ilias objects
bool $public_deletion_enabled
setUseObjectTitleHeader(bool $a_val)
getSubObjectTitle(int $parent_obj_id, int $sub_obj_id)
Get sub object title if available with callback.
setHideNewForm(bool $a_val)
getListHTML(bool $a_init_form=true)
static _lookupTitle(int $obj_id)
setRepositoryMode(bool $a_value)
setShowEmptyListMessage(bool $a_val)
setShowHeader(bool $a_val)
cancelUpdateNote()
cancel edit note
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
enablePublicNotesDeletion(bool $a_enable=true)
getShyButton(string $a_var, string $a_txt, string $a_cmd, string $a_anchor="", int $note_id=0)
bool $use_obj_title_header
addObserver(callable $a_callback)
Add observer.
static buildAjaxHash(int $node_type, ?int $node_id, string $obj_type, int $obj_id, string $sub_type=null, int $sub_id=null, int $news_id=0)
Build ajax hash.
renderContent(string $content)
Render content into notes wrapper.
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
static getListNotesJSCall(string $a_hash, string $a_update_code=null)
Get list notes js call.
getNoteForm(string $mode, int $type, Note $note=null)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static _lookupTargetId(int $a_obj_id)
enablePublicNotes(bool $a_enable=true)
static _lookupOwnerName(int $owner_id)
Lookup owner name for owner id.
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
static getListCommentsJSCall(string $a_hash, string $a_update_code=null)
Get list comments js call.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
static _lookupType(int $id, bool $reference=false)
static setUseRelativeDates(bool $a_status)
set use relative dates
cancelAddNote()
cancel add note
getNoteListHTML(int $a_type=Note::PRIVATE, bool $a_init_form=true)
getTarget(Note $note)
show related objects as links
editNoteForm(bool $a_init_form=true)
get notes list including add note area
ILIAS Notes InternalDataService $data
renderComponents(array $components)