31 protected \ILIAS\Notes\Service
$notes;
32 protected \ILIAS\HTTP\Services
$http;
43 int $a_wiki_ref_id = 0
48 $this->
http = $DIC->http();
58 $this->wiki_request =
$DIC
64 $this->notes =
$DIC->notes();
75 $this->wiki_ref_id = $a_ref_id;
105 $next_class = $this->
ctrl->getNextClass($this);
108 ": " . $this->getWikiPage()->getTitle();
111 if ($this->wiki_request->getPage() !==
"") {
124 switch ($next_class) {
127 $ilTabs->setTabActive(
"pg");
133 $rating_gui->setObject(
139 $rating_gui->setUpdateCallback(array($this,
"updateStatsRating"));
140 $this->
ctrl->forwardCommand($rating_gui);
141 $ilCtrl->redirect($this,
"preview");
144 case "ilcommonactiondispatchergui":
146 if (!is_null($gui)) {
147 $gui->enableCommentsSettings(
false);
148 $gui->setRatingCallback(
152 $this->
ctrl->forwardCommand($gui);
156 case "ilwikistatgui":
157 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->wiki_ref_id)) {
158 $this->tabs_gui->clearTargets();
165 $this->
ctrl->forwardCommand($gui);
168 case 'ilobjectmetadatagui':
170 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id)) {
171 $this->tpl->setOnScreenMessage(
'failure',
$lng->
txt(
"permission_denied"),
true);
172 $ilCtrl->redirect($this,
"preview");
174 return parent::executeCommand();
176 case "ilpropertyformgui":
179 $ilCtrl->forwardCommand(
$form);
184 if (strtolower($ilCtrl->getNextClass()) ===
"ilpageeditorgui") {
188 if ($this->wiki_request->getNotification() > 0
190 switch ($this->wiki_request->getNotification()) {
208 $ilCtrl->redirect($this,
"preview");
212 return parent::executeCommand();
236 int $a_wiki_ref_id = 0
245 $this->getWikiPage()->
getId(),
252 bool $a_redraw =
false
255 $ilAccess = $this->access;
257 $wiki_id = $this->getPageObject()->getParentId();
258 $page_id = $this->getPageObject()->getId();
264 $this->requested_ref_id,
269 $dispatcher->setSubObject(
"wpg", $page_id);
272 $this->
ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
274 $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false)
277 $lg = $dispatcher->initHeaderAction();
278 $lg->enableNotes(
true);
285 $this->
lng->txt(
"wiki_rate_overall"),
288 array(
"ilcommonactiondispatchergui",
"ilratinggui"),
296 $this->
ctrl->setParameter($this,
"ntf", 1);
298 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_deactivate_wiki");
304 $this->
lng->txt(
"wiki_notification_activated")
307 $this->
ctrl->setParameter($this,
"ntf", 2);
308 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_activate_wiki");
311 $this->
ctrl->setParameter($this,
"ntf", 3);
312 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_deactivate_page");
317 $this->
lng->txt(
"wiki_page_notification_activated")
320 $this->
ctrl->setParameter($this,
"ntf", 4);
321 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_activate_page");
326 $this->
lng->txt(
"wiki_notification_deactivated")
330 $this->
ctrl->setParameter($this,
"ntf",
"");
334 $this->tpl->setHeaderActionMenu($lg->getHeaderAction());
337 return $lg->getHeaderAction() .
338 $this->tpl->getOnLoadCodeForAsynch();
345 echo $this->addHeaderAction(
true);
351 $ilCtrl = $this->ctrl;
352 $ilAccess = $this->access;
362 if ($this->getPageObject()->getBlocked()) {
363 $this->tpl->setOnScreenMessage(
'info',
$lng->txt(
"wiki_page_status_blocked"));
367 $this->increaseViewCount();
369 $this->addHeaderAction();
372 if ($ilCtrl->getNextClass() !==
"ilnotegui") {
373 $this->setSideBlock();
377 "tpl.wiki_page_view_main_column.html",
383 $callback = array($this,
"observeNoteAction");
387 $may_delete = (
$ilSetting->get(
"comments_del_tutor",
'1') &&
388 $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id));
389 $wtpl->setVariable(
"NOTES", $this->getNotesHTML(
390 $this->getPageObject(),
401 $this->showEditToolbar();
402 $this->setRenderPageContainer(
true);
403 $wtpl->setVariable(
"PAGE", $this->showPage());
405 $tpl->setLoginTargetPar(
"wiki_" . $this->requested_ref_id . $append);
410 $lng->txt(
"wiki_last_edited") .
": " .
415 $this->getPageObject()->getLastChangeUser(),
418 $ilCtrl->getLinkTarget($this,
"preview")
422 $tpl->setLoginTargetPar(
"wiki_" . $this->requested_ref_id . $append);
425 if ($this->wiki_request->getSearchString()) {
428 $search_string = $cache->getQuery();
431 if (is_array($search_string)) {
432 $search_string = $search_string[
"lom_content"];
438 $words = $p->getQuotedWords();
439 if (is_array($words)) {
440 foreach ($words as $w) {
441 ilTextHighlighterGUI::highlight(
"ilCOPageContent", $w,
$tpl);
444 $this->fill_on_load_code =
true;
453 $this->initToolbar();
455 $this->setTemplateOutput(
false);
457 if (!$this->getAbstractOnly()) {
458 $this->setPresentationTitle($this->getWikiPage()->getTitle());
464 return parent::showPage();
469 $toolbar = $this->toolbar;
471 $print_view = $this->getPrintView();
472 $modal_elements = $print_view->getModalElements($this->
ctrl->getLinkTarget(
476 $toolbar->addComponent($modal_elements->button);
477 $toolbar->addComponent($modal_elements->modal);
482 $provider = new \ILIAS\Wiki\WikiPrintViewProviderGUI(
485 $this->getWikiPage()->getWikiRefId(),
489 return new \ILIAS\Export\PrintProcessGUI(
501 $this->getWikiPage()->increaseViewCnt();
506 $this->getWikiPage()->getWikiRefId(),
507 $this->getWikiPage()->getWikiId(),
516 $ilCtrl = $this->ctrl;
518 $ilCtrl->setParameterByClass(
523 if ($this->getEnabledHref() && $this->getOutputMode() !== self::EDIT) {
526 $this->getWikiPage()->getWikiId(),
527 ($this->getOutputMode() ===
"offline")
532 $ilCtrl->setParameterByClass(
535 $this->wiki_request->getFromPage()
540 if ($this->getOutputMode() ===
"print" && $this->wiki instanceof
ilObjWiki) {
542 $md = $mdgui->getKeyValueList();
544 $output = str_replace(
"<!--COPage-PageTop-->",
"<p>" . $md .
"</p>", $output);
556 $this->setSideBlock();
560 $this->getWikiPage()->getWikiId(),
562 $this->wiki_request->getWikiPageId()
565 $tpl->setContent($table_gui->getHTML());
569 string $a_activate =
""
571 $ilTabs = $this->tabs_gui;
572 $ilCtrl = $this->ctrl;
573 $ilAccess = $this->access;
575 parent::getTabs($a_activate);
577 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->requested_ref_id)) {
580 $this->
ctrl->getLinkTargetByClass(
581 array(
"ilwikipagegui",
"ilwikistatgui"),
589 $ilCtrl->setParameterByClass(
593 $this->getPageObject()->getParentId(),
597 $ilCtrl->setParameterByClass(
604 "wiki_what_links_here",
605 $this->
ctrl->getLinkTargetByClass(
616 $ilCtrl = $this->ctrl;
621 $confirmation_gui->setFormAction($ilCtrl->getFormAction($this));
622 $confirmation_gui->setHeaderText(
$lng->txt(
"wiki_page_deletion_confirmation"));
623 $confirmation_gui->setCancel(
$lng->txt(
"cancel"),
"cancelWikiPageDeletion");
624 $confirmation_gui->setConfirm(
$lng->txt(
"delete"),
"confirmWikiPageDeletion");
627 "tpl.wiki_page_deletion_confirmation.html",
633 $dtpl->setVariable(
"PAGE_TITLE", $this->getWikiPage()->getTitle());
636 $dtpl->setVariable(
"TXT_OTHER_PAGES",
$lng->txt(
"wiki_other_pages_linking"));
638 $this->getWikiPage()->getWikiId(),
639 $this->getWikiPage()->
getId()
641 if (count($pages) > 0) {
642 foreach ($pages as $page) {
643 $dtpl->setCurrentBlock(
"lpage");
644 $dtpl->setVariable(
"TXT_LINKING_PAGE", $page[
"title"]);
645 $dtpl->parseCurrentBlock();
648 $dtpl->setCurrentBlock(
"lpage");
649 $dtpl->setVariable(
"TXT_LINKING_PAGE",
"-");
650 $dtpl->parseCurrentBlock();
654 $dtpl->setVariable(
"TXT_CONTRIBUTORS",
$lng->txt(
"wiki_contributors"));
656 foreach ($contributors as $contributor) {
657 $dtpl->setCurrentBlock(
"contributor");
660 $contributor[
"lastname"] .
", " . $contributor[
"firstname"]
662 $dtpl->parseCurrentBlock();
666 $cnt_note_users = $this->notes->domain()->getUserCount(
667 $this->getPageObject()->getParentId(),
668 $this->getPageObject()->
getId(),
672 "TXT_NUMBER_USERS_NOTES_OR_COMMENTS",
673 $lng->txt(
"wiki_number_users_notes_or_comments")
675 $dtpl->setVariable(
"TXT_NR_NOTES_COMMENTS", $cnt_note_users);
677 $confirmation_gui->addItem(
"",
"", $dtpl->get());
679 $tpl->setContent($confirmation_gui->getHTML());
685 $ilCtrl = $this->ctrl;
687 $ilCtrl->redirect($this,
"preview");
692 $ilCtrl = $this->ctrl;
696 $this->getPageObject()->delete();
698 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"wiki_page_deleted"),
true);
701 $ilCtrl->redirectByClass(
"ilobjwikigui",
"allPages");
710 $view = $this->getPrintView();
716 $this->printViewOrderList();
721 $ilTabs = $this->tabs_gui;
723 $pg_ids = $all_pages = array();
726 $ordering = $this->wiki_request->getPrintOrdering();
727 if (count($ordering) === 0) {
728 switch ($this->wiki_request->getSelectedPrintType()) {
731 foreach ($all_pages as $p) {
732 $pg_ids[] = $p[
"id"];
737 $pg_ids = $this->wiki_request->getWikiPageIds();
738 if (count($pg_ids) === 0) {
739 $pg_ids = [$this->wiki_request->getWikiPageId()];
741 if (count($pg_ids) > 1) {
744 $wiki_page_id = array_pop($pg_ids);
746 $this->
ctrl->setParameterByClass(
751 $this->
ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
755 $this->
ctrl->setParameterByClass(
758 $this->wiki_request->getWikiPageId()
760 $this->
ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
767 $pg_ids = array_keys($ordering);
770 $ilTabs->clearTargets();
771 $ilTabs->setBackTarget(
772 $this->
lng->txt(
"back"),
773 $this->ctrl->getLinkTarget($this,
"preview")
776 if (!count($all_pages)) {
782 "printViewOrderList",
786 $this->tpl->setContent($tbl->getHTML());
796 $ilCtrl = $this->ctrl;
800 $this->getPageObject()->setBlocked(
true);
801 $this->getPageObject()->update();
803 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"wiki_page_blocked"),
true);
806 $ilCtrl->redirect($this,
"preview");
811 $ilCtrl = $this->ctrl;
815 $this->getPageObject()->setBlocked(
false);
816 $this->getPageObject()->update();
818 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"wiki_page_unblocked"),
true);
821 $ilCtrl->redirect($this,
"preview");
831 $ilAccess = $this->access;
834 if (($ilAccess->checkAccess(
837 $this->requested_ref_id
838 ) && !$this->getPageObject()->getBlocked())
839 || $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
840 $this->initRenameForm();
841 $tpl->setContent($this->
form->getHTML());
848 $ilCtrl = $this->ctrl;
854 $ti->setMaxLength(200);
856 $ti->setValue($this->getPageObject()->getTitle());
857 $ti->setRequired(
true);
858 $this->
form->addItem($ti);
860 $this->
form->addCommandButton(
"renamePage",
$lng->txt(
"wiki_rename"));
861 $this->
form->addCommandButton(
"preview",
$lng->txt(
"cancel"));
863 $this->
form->setTitle(
$lng->txt(
"wiki_rename_page"));
864 $this->
form->setFormAction($ilCtrl->getFormAction($this));
871 $ilCtrl = $this->ctrl;
872 $ilAccess = $this->access;
874 $this->initRenameForm();
875 if ($this->
form->checkInput()) {
876 if (($ilAccess->checkAccess(
"edit_content",
"", $this->requested_ref_id) && !$this->getPageObject()->getBlocked())
877 || $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
878 $new_name = $this->
form->getInput(
"new_page_name");
886 if ($pg_id > 0 && $pg_id != $this->getPageObject()->
getId()) {
887 $this->tpl->setOnScreenMessage(
'failure',
$lng->txt(
"wiki_page_already_exists"));
889 $new_name = $this->getPageObject()->rename($new_name);
891 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"msg_obj_modified"),
true);
892 $ilCtrl->redirect($this,
"preview");
897 $this->
form->setValuesByPost();
898 $tpl->setContent($this->
form->getHTML());
908 $ilCtrl = $this->ctrl;
910 $this->getPageObject()->setRating(
true);
911 $this->getPageObject()->update();
913 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"msg_obj_modified"),
true);
914 $ilCtrl->redirect($this,
"preview");
920 $ilCtrl = $this->ctrl;
922 $this->getPageObject()->setRating(
false);
923 $this->getPageObject()->update();
925 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"msg_obj_modified"),
true);
926 $ilCtrl->redirect($this,
"preview");
939 $note = $this->notes->domain()->getById($a_note_id);
940 $text = $note->getText();
961 $ilCtrl = $this->ctrl;
964 $page = $this->getWikiPage();
967 $form->setFormAction($ilCtrl->getFormAction($this,
"updateAdvancedMetaData"));
970 $form->setTitle(
$lng->txt(
"wiki_advmd_block_title") .
": " . $page->getTitle());
979 $this->record_gui->setPropertyForm($form);
980 $this->record_gui->parse();
982 $form->addCommandButton(
"updateAdvancedMetaData",
$lng->txt(
"save"));
983 $form->addCommandButton(
"preview",
$lng->txt(
"cancel"));
991 $ilTabs = $this->tabs_gui;
993 $ilCtrl = $this->ctrl;
995 $ilAccess = $this->access;
997 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
998 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1003 $ilTabs->clearTargets();
1004 $ilTabs->setBackTarget(
1006 $ilCtrl->getLinkTarget($this,
"preview")
1010 $a_form = $this->initAdvancedMetaDataForm();
1013 $tpl->setContent($a_form->getHTML());
1018 $ilCtrl = $this->ctrl;
1020 $ilAccess = $this->access;
1022 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1023 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1027 $form = $this->initAdvancedMetaDataForm();
1030 $form->checkInput();
1031 if (!$this->record_gui->importEditFormPostValues()) {
1032 $this->editAdvancedMetaData($form);
1036 if ($this->record_gui->writeEditForm()) {
1037 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"settings_saved"),
true);
1039 $ilCtrl->redirect($this,
"preview");
1044 $ilCtrl = $this->ctrl;
1046 $ilAccess = $this->access;
1048 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1049 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1053 $this->getPageObject()->hideAdvancedMetadata(
true);
1054 $this->getPageObject()->update();
1056 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"settings_saved"),
true);
1057 $ilCtrl->redirect($this,
"preview");
1062 $ilCtrl = $this->ctrl;
1064 $ilAccess = $this->access;
1066 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1067 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1071 $this->getPageObject()->hideAdvancedMetadata(
false);
1072 $this->getPageObject()->update();
1074 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"settings_saved"),
true);
1075 $ilCtrl->redirect($this,
"preview");
1083 self::initEditingJS(
$tpl);
1085 return parent::edit();
1095 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.page_exists = '" .
$lng->txt(
"wiki_page_exists") .
"';");
1096 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.new_page = '" .
$lng->txt(
"wiki_new_page") .
"';");
1106 $ilCtrl = $this->ctrl;
1109 $form->addCommandButton(
"addWikiLink",
$lng->txt(
"wiki_add_link"));
1110 $form->addCommandButton(
"searchWikiLink",
$lng->txt(
"search"));
1115 $tp->setRequired(
true);
1116 $tp->setInfo(
"...");
1117 $tp->setDataSource($ilCtrl->getLinkTarget($this,
"insertWikiLinkAC",
"",
true));
1118 $form->addItem($tp);
1123 $form->addItem($lt);
1127 echo $form->getHTML();
1138 $term = $this->wiki_request->getTerm();
1142 $entry =
new stdClass();
1143 $entry->value = $term;
1144 $entry->label = $term;
1151 foreach (
$res as $r) {
1152 if ($result[0]->value == $r) {
1158 $entry =
new stdClass();
1164 echo json_encode($result, JSON_THROW_ON_ERROR);
1175 $lng->loadLanguageModule(
"wiki");
1177 $tpl =
new ilTemplate(
"tpl.wiki_ac_search_result.html",
true,
true,
"Modules/Wiki");
1178 $term = $this->wiki_request->getTerm();
1183 foreach ($pages as $page) {
1192 foreach ($found as
$f) {
1193 $tpl->setCurrentBlock(
"item");
1194 $tpl->setVariable(
"WIKI_TITLE",
$f[
"title"]);
1195 $tpl->parseCurrentBlock();
1198 if (count($pages) === 0) {
1199 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term,
$lng->txt(
"wiki_no_page_found")));
1200 } elseif ($term ===
'') {
1201 $tpl->setVariable(
"INFOTEXT",
$lng->txt(
"wiki_no_search_term"));
1203 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term,
$lng->txt(
"wiki_pages_found")));
1206 $tpl->setVariable(
"TXT_BACK",
$lng->txt(
"back"));
1220 $ilCtrl = $this->ctrl;
1225 $ass_id = $this->wiki_request->getAssignmentId();
1226 $wiki_ass->submitWiki($ass_id, $this->
user->getId(), $this->getWikiRefId());
1228 $this->tpl->setOnScreenMessage(
'success',
$lng->txt(
"wiki_finalized"),
true);
1229 $ilCtrl->redirectByClass(
"ilObjWikiGUI",
"gotoStartPage");
1236 $ass_id = $this->wiki_request->getAssignmentId();
1239 $submitted = $submission->getFiles();
1240 if (count($submitted) > 0) {
1241 $submitted = array_pop($submitted);
1245 $ass->getTitle() .
" (Team " . $submission->getTeam()->getId() .
").zip";
1253 return $this->getNotesHTML(
1254 $this->getPageObject(),
const IL_WIKI_WHAT_LINKS_HERE
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, bool $isCatchupWriteEvents=true, $a_ext_rc=null, $a_ext_time=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@classDescription Date and time handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
setScreenIdComponent(string $a_comp)
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...
static hasOptOut(int $obj_id)
Is opt out (disable notification) allowed?
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
static hasNotification(int $type, int $user_id, int $id)
Check notification status for object and user.
static getSyntaxStylePath()
static _lookupName(int $a_user_id)
lookup user name
static renderSideBlock(int $a_wpg_id, int $a_wiki_ref_id, ?ilWikiPage $a_wp=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _performSearch(int $a_wiki_id, string $a_searchterm)
Search in Wiki.
static _lookupPublicNotes(int $a_wiki_id)
Lookup whether public notes are activated.
static _lookupRatingOverall(int $a_wiki_id)
Lookup whether rating is activated for whole object.
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
setPresentationTitle(string $a_title="")
ilGlobalTemplateInterface $tpl
setPageObject(ilPageObject $a_pg_obj)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
special template class to simplify handling of ITX/PEAR
This class represents a text property in a property form.
static _getInstance(int $a_usr_id)
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:
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initAdvancedMetaDataForm()
deactivateWikiPageRating()
static initEditingJS(ilGlobalTemplateInterface $a_tpl)
updateStatsRating(int $a_wiki_id, string $a_wiki_type, int $a_page_id, string $a_page_type)
confirmWikiPageDeletion()
__construct(int $a_id=0, int $a_old_nr=0, int $a_wiki_ref_id=0)
activateWikiPageRating()
Rating /.
setWikiPage(ilWikiPage $a_wikipage)
getTabs(string $a_activate="")
showPage()
display content of page
ILIAS HTTP Services $http
setWikiRefId(int $a_ref_id)
deleteWikiPageConfirmationScreen()
insertWikiLink()
Returns form to insert a wiki link per ajax.
ilAdvancedMDRecordGUI $record_gui
editAdvancedMetaData(ilPropertyFormGUI $a_form=null)
addHeaderAction(bool $a_redraw=false)
finalizeAssignment()
Finalize and submit blog to exercise.
observeNoteAction(int $a_wiki_id, int $a_page_id, string $a_type, string $a_action, int $a_note_id)
insertWikiLinkAC()
Auto complete for insert wiki link.
searchWikiLinkAC()
Search wiki link list.
ILIAS Notes Service $notes
postOutputProcessing(string $a_output)
Finalizing output processing.
setWiki(ilObjWiki $a_val)
static getGUIForTitle(int $a_wiki_id, string $a_title, int $a_old_nr=0, int $a_wiki_ref_id=0)
Get wiki page gui for id and title.
ILIAS Wiki Editing EditingGUIRequest $wiki_request
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getAllWikiPages(int $a_wiki_id)
static getPagesForSearch(int $a_wiki_id, string $a_term)
static getWikiPageContributors(int $a_page_id)
static getLinksToPage(int $a_wiki_id, int $a_page_id)
static getPageIdForTitle(int $a_wiki_id, string $a_title)
Get wiki page object for id and title.
static _wikiPageExists(int $a_wiki_id, string $a_title)
static lookupTitle(int $a_page_id)
static _getPageIdForWikiTitle(int $a_wiki_id, string $a_title)
TableGUI class for wiki pages table.
static check(string $a_perm, int $a_ref_id, string $a_cmd="")
Wiki statistics GUI class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static handleEvent(int $a_event, ilWikiPage $a_page_obj, ?int $a_user_id=null, array $a_additional_data=null)
Handle wiki page event.
static makeUrlTitle(string $a_par)
static replaceInternalLinks(string $s, int $a_wiki_id, bool $a_offline=false)
This one is based on Mediawiki Parser->replaceInternalLinks since we display images in another way,...
static sendNotification(string $a_action, int $a_type, int $a_wiki_ref_id, int $a_page_id, ?string $a_comment=null)
static makeDbTitle(string $a_par)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
setPermanentLink(string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
Generates and sets a permanent ilias link.
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
setHeaderPageTitle(string $a_title)
Sets the title of the page (for browser window).
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
form( $class_path, string $cmd)
Class ChatMainBarProvider \MainMenu\Provider.