33 protected \ILIAS\Wiki\InternalDomainService
$domain;
34 protected \ILIAS\Wiki\Page\PageManager
$wiki_pm;
37 protected \ILIAS\Notes\Service
$notes;
38 protected \ILIAS\HTTP\Services
$http;
49 int $a_wiki_ref_id = 0,
59 $this->
settings = $domain->settings();
66 $this->
ctrl->saveParameterByClass(self::class,
"wpg_id");
70 $this->wiki_request =
$gui->request();
71 $this->notes = $DIC->notes();
72 $this->wiki_gui =
$gui;
73 $this->ot =
$gui->wiki()->translation($a_wiki_ref_id);
74 $this->wiki_pm = $this->domain->page()->page($this->
getWikiRefId());
85 $this->wiki_ref_id = $a_ref_id;
115 $next_class = $this->
ctrl->getNextClass($this);
118 ": " . $this->getWikiPage()->getTitle();
122 PageContentProvider::setPermaLink($this->wiki_pm->getPermaLink(
123 $this->getPageObject()->getId(),
131 switch ($next_class) {
135 $ilTabs->setTabActive(
"pg");
141 $rating_gui->setObject(
147 $rating_gui->setUpdateCallback(array($this,
"updateStatsRating"));
148 $this->
ctrl->forwardCommand($rating_gui);
149 $ilCtrl->redirect($this,
"preview");
152 case "ilcommonactiondispatchergui":
154 if (!is_null(
$gui)) {
155 $gui->enableCommentsSettings(
false);
156 $gui->setRatingCallback(
164 case "ilwikistatgui":
165 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->wiki_ref_id)) {
166 $this->tabs_gui->clearTargets();
176 case 'ilobjectmetadatagui':
178 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id)) {
179 $this->tpl->setOnScreenMessage(
'failure',
$lng->
txt(
"permission_denied"),
true);
180 $ilCtrl->redirect($this,
"preview");
182 return parent::executeCommand();
184 case "ilpropertyformgui":
187 $ilCtrl->forwardCommand(
$form);
192 if (strtolower($ilCtrl->getNextClass()) ===
"ilpageeditorgui") {
193 self::initEditingJS($this->tpl);
196 if ($this->wiki_request->getNotification() > 0
198 switch ($this->wiki_request->getNotification()) {
216 $ilCtrl->redirect($this,
"preview");
220 return parent::executeCommand();
240 $this->getWikiPage()->
getId(),
247 bool $a_redraw =
false 259 $this->requested_ref_id,
264 $dispatcher->setSubObject(
"wpg", $page_id);
267 $this->
ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
269 $this->
ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false)
272 $lg = $dispatcher->initHeaderAction();
273 $lg->enableNotes(
true);
280 $this->
lng->txt(
"wiki_rate_overall"),
283 array(
"ilcommonactiondispatchergui",
"ilratinggui"),
291 $this->
ctrl->setParameter($this,
"ntf", 1);
293 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_deactivate_wiki");
299 $this->
lng->txt(
"wiki_notification_activated")
302 $this->
ctrl->setParameter($this,
"ntf", 2);
303 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_activate_wiki");
306 $this->
ctrl->setParameter($this,
"ntf", 3);
307 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_deactivate_page");
312 $this->
lng->txt(
"wiki_page_notification_activated")
315 $this->
ctrl->setParameter($this,
"ntf", 4);
316 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_activate_page");
321 $this->
lng->txt(
"wiki_notification_deactivated")
325 $this->
ctrl->setParameter($this,
"ntf",
"");
329 $this->tpl->setHeaderActionMenu($lg->getHeaderAction());
332 return $lg->getHeaderAction() .
333 $this->tpl->getOnLoadCodeForAsynch();
358 $this->tpl->setOnScreenMessage(
'info',
$lng->
txt(
"wiki_page_status_blocked"));
366 if (!in_array($ilCtrl->getNextClass(), [
"ilnotegui",
"ilcommentgui"])) {
371 "tpl.wiki_page_view_main_column.html",
377 $callback = array($this,
"observeNoteAction");
381 $may_delete = (
$ilSetting->get(
"comments_del_tutor",
'1') &&
382 $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id));
397 $wtpl->setVariable(
"PAGE", $this->
showPage());
404 $lng->
txt(
"wiki_last_edited") .
": " .
412 $ilCtrl->getLinkTarget($this,
"preview")
419 if ($this->wiki_request->getSearchString()) {
422 $search_string = $cache->getQuery();
425 if (is_array($search_string)) {
426 $search_string = $search_string[
"lom_content"];
432 $words = $p->getQuotedWords();
433 if (is_array($words)) {
434 foreach ($words as $w) {
435 ilTextHighlighterGUI::highlight(
"ilCOPageContent", $w,
$tpl);
438 $this->fill_on_load_code =
true;
458 return parent::showPage();
468 $modal_elements = $print_view->getModalElements($this->
ctrl->getLinkTarget(
484 $f = $this->wiki_gui->ui()->factory();
486 $this->
ctrl->setParameterByClass(self::class,
"wpg_id", $this->
getId());
487 $this->
ctrl->setParameterByClass(self::class,
"page", null);
488 if ($this->ot->getContentActivated()) {
490 foreach ($this->ot->getLanguages() as
$language) {
491 $lang_code = (
$language->getLanguageCode() === $this->ot->getMasterLanguage())
494 $exists = $this->wiki_pm->exists($this->
getId(), $lang_code);
495 $this->
ctrl->setParameterByClass(self::class,
"transl", $lang_code);
496 $action = ($lang_code !==
"-" && !$exists)
499 if ($action ===
"switchToLanguage") {
500 $this->
ctrl->setParameterByClass(self::class,
"transl", null);
501 $this->
ctrl->setParameterByClass(self::class,
"totransl", $lang_code);
505 :
" (" . $this->
lng->txt(
"wiki_not_existing") .
")";
509 $actions[] =
$f->link()->standard(
511 $this->
ctrl->getLinkTargetByClass(self::class, $action)
514 $this->
ctrl->setParameterByClass(self::class,
"transl", $this->requested_transl);
515 $this->
ctrl->setParameterByClass(self::class,
"totransl", null);
516 if (count($actions) > 0) {
517 $dd =
$f->dropdown()->standard($actions)
527 $code = $this->ot->getMasterLanguage();
529 return $this->
lng->txt(
"language") .
": " . $this->
lng->txt(
"meta_l_" . $code);
534 $provider = new \ILIAS\Wiki\WikiPrintViewProviderGUI(
541 return new \ILIAS\Export\PrintProcessGUI(
553 $this->getWikiPage()->increaseViewCnt();
559 $this->getWikiPage()->getWikiId(),
571 $ilCtrl->setParameterByClass(
579 $this->getWikiPage()->getWikiId(),
586 $ilCtrl->setParameterByClass(
589 $this->wiki_request->getFromPage()
596 $md = $mdgui->getKeyValueList();
598 $output = str_replace(
"<!--COPage-PageTop-->",
"<p>" . $md .
"</p>", $output);
614 $this->getWikiPage()->getWikiId(),
617 $this->wiki_request->getTranslation()
624 string $a_activate =
"" 630 parent::getTabs($a_activate);
632 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->requested_ref_id)) {
635 $this->
ctrl->getLinkTargetByClass(
636 array(
"ilwikipagegui",
"ilwikistatgui"),
645 "wiki_what_links_here",
646 $this->
ctrl->getLinkTargetByClass(
662 $confirmation_gui->setFormAction($ilCtrl->getFormAction($this));
663 $confirmation_gui->setHeaderText(
$lng->
txt(
"wiki_page_deletion_confirmation"));
664 $confirmation_gui->setCancel(
$lng->
txt(
"cancel"),
"cancelWikiPageDeletion");
665 $confirmation_gui->setConfirm(
$lng->
txt(
"delete"),
"confirmWikiPageDeletion");
668 "tpl.wiki_page_deletion_confirmation.html",
674 $dtpl->setVariable(
"PAGE_TITLE", $this->getWikiPage()->getTitle());
677 $dtpl->setVariable(
"TXT_OTHER_PAGES",
$lng->
txt(
"wiki_other_pages_linking"));
679 $this->getWikiPage()->getWikiId(),
680 $this->getWikiPage()->
getId()
682 if (count($pages) > 0) {
683 foreach ($pages as $page) {
684 $dtpl->setCurrentBlock(
"lpage");
685 $dtpl->setVariable(
"TXT_LINKING_PAGE", $page[
"title"]);
686 $dtpl->parseCurrentBlock();
689 $dtpl->setCurrentBlock(
"lpage");
690 $dtpl->setVariable(
"TXT_LINKING_PAGE",
"-");
691 $dtpl->parseCurrentBlock();
695 $dtpl->setVariable(
"TXT_CONTRIBUTORS",
$lng->
txt(
"wiki_contributors"));
697 foreach ($contributors as $contributor) {
698 $dtpl->setCurrentBlock(
"contributor");
701 $contributor[
"lastname"] .
", " . $contributor[
"firstname"]
703 $dtpl->parseCurrentBlock();
707 $cnt_note_users = $this->notes->domain()->getUserCount(
713 "TXT_NUMBER_USERS_NOTES_OR_COMMENTS",
714 $lng->
txt(
"wiki_number_users_notes_or_comments")
716 $dtpl->setVariable(
"TXT_NR_NOTES_COMMENTS", $cnt_note_users);
718 $confirmation_gui->addItem(
"",
"", $dtpl->get());
728 $ilCtrl->
redirect($this,
"preview");
738 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_page_deleted"),
true);
741 $ilCtrl->redirectByClass(
"ilobjwikigui",
"allPages");
763 $pg_ids = $all_pages = array();
766 $ordering = $this->wiki_request->getPrintOrdering();
767 if (count($ordering) === 0) {
768 switch ($this->wiki_request->getSelectedPrintType()) {
770 foreach ($this->wiki_pm->getWikiPages($this->getLanguage()) as $p) {
771 $pg_ids[] = $p->getId();
776 $pg_ids = $this->wiki_request->getWikiPageIds();
777 if (count($pg_ids) === 0) {
778 $pg_ids = [$this->wiki_request->getWikiPageId()];
780 if (count($pg_ids) > 1) {
783 $wiki_page_id = array_pop($pg_ids);
785 $this->
ctrl->setParameterByClass(
790 $this->
ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
794 $this->
ctrl->setParameterByClass(
797 $this->wiki_request->getWikiPageId()
799 $this->
ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
806 $pg_ids = array_keys($ordering);
809 $ilTabs->clearTargets();
810 $ilTabs->setBackTarget(
811 $this->
lng->txt(
"back"),
812 $this->
ctrl->getLinkTarget($this,
"preview")
815 if (!count($all_pages)) {
821 "printViewOrderList",
825 $this->tpl->setContent($tbl->getHTML());
842 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_page_blocked"),
true);
845 $ilCtrl->redirect($this,
"preview");
857 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_page_unblocked"),
true);
860 $ilCtrl->redirect($this,
"preview");
873 if (($ilAccess->checkAccess(
876 $this->requested_ref_id
878 || $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
879 $this->
ctrl->setParameterByClass(ilWikiPageGUI::class,
"wpg_id", $this->wiki_request->getWikiPageId());
894 $ti->setMaxLength(200);
897 $ti->setRequired(
true);
898 $this->
form->addItem($ti);
900 $this->
form->addCommandButton(
"renamePage",
$lng->
txt(
"wiki_rename"));
901 $this->
form->addCommandButton(
"preview",
$lng->
txt(
"cancel"));
903 $this->
form->setTitle(
$lng->
txt(
"wiki_rename_page"));
904 $this->
form->setFormAction($ilCtrl->getFormAction($this));
915 if ($this->
form->checkInput()) {
916 if (($ilAccess->checkAccess(
"edit_content",
"", $this->requested_ref_id) && !$this->
getPageObject()->getBlocked())
917 || $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
918 $new_name = $this->
form->getInput(
"new_page_name");
931 $this->tpl->setOnScreenMessage(
'failure',
$lng->
txt(
"wiki_page_already_exists"));
935 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
936 $ilCtrl->redirect($this,
"preview");
941 $this->
form->setValuesByPost();
957 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
958 $ilCtrl->redirect($this,
"preview");
969 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
970 $ilCtrl->redirect($this,
"preview");
982 $note = $this->notes->domain()->getById($a_note_id);
983 $text = $note->getText();
985 $noti = $this->wiki_gui->notification();
1008 $page = $this->getWikiPage();
1024 $this->record_gui->parse();
1041 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1042 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1047 $ilTabs->clearTargets();
1048 $ilTabs->setBackTarget(
1050 $ilCtrl->getLinkTarget($this,
"preview")
1066 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1067 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1075 if (!$this->record_gui->importEditFormPostValues()) {
1080 if ($this->record_gui->writeEditForm()) {
1081 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"settings_saved"),
true);
1083 $ilCtrl->redirect($this,
"preview");
1092 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1093 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1100 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"settings_saved"),
true);
1101 $ilCtrl->redirect($this,
"preview");
1110 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1111 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1118 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"settings_saved"),
true);
1119 $ilCtrl->redirect($this,
"preview");
1126 $this->
ctrl->setParameterByClass(self::class,
"wpg_id", $this->
getId());
1127 self::initEditingJS(
$tpl);
1129 return parent::edit();
1136 $lng = $DIC->language();
1139 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.page_exists = '" .
$lng->
txt(
"wiki_page_exists") .
"';");
1159 $tp->setRequired(
true);
1160 $tp->setInfo(
"...");
1161 $tp->setDataSource($ilCtrl->getLinkTarget($this,
"insertWikiLinkAC",
"",
true));
1182 $term = $this->wiki_request->getTerm();
1187 $entry->value = $term;
1188 $entry->label = $term;
1196 if ($result[0]->value == $r) {
1208 echo json_encode($result, JSON_THROW_ON_ERROR);
1221 $tpl =
new ilTemplate(
"tpl.wiki_ac_search_result.html",
true,
true,
"Modules/Wiki");
1222 $term = $this->wiki_request->getTerm();
1227 foreach ($pages as $page) {
1236 foreach ($found as
$f) {
1242 if (count($pages) === 0) {
1244 } elseif ($term ===
'') {
1269 $ass_id = $this->wiki_request->getAssignmentId();
1270 $wiki_ass->submitWiki($ass_id, $this->
user->getId(), $this->
getWikiRefId());
1272 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_finalized"),
true);
1273 $ilCtrl->redirectByClass(
"ilObjWikiGUI",
"gotoStartPage");
1280 $ass_id = $this->wiki_request->getAssignmentId();
1283 $submitted = $submission->
getFiles();
1284 if (count($submitted) > 0) {
1285 $submitted = array_pop($submitted);
1289 $ass->getTitle() .
" (Team " . $submission->getTeam()->getId() .
").zip";
1312 $this->tabs_gui->clearTargets();
1313 $this->tabs_gui->setBackTarget(
1314 $this->
lng->txt(
"back"),
1315 $this->
ctrl->getLinkTarget($this,
"edit")
1318 $l = $this->request->getString(
"totransl");
1319 $this->
ctrl->setParameter($this,
"totransl", $l);
1320 $this->
lng->loadLanguageModule(
"meta");
1322 $r = $this->wiki_gui->ui()->renderer();
1323 $box = $this->wiki_gui->ui()->factory()->messageBox()->confirmation(
1324 $this->
lng->txt(
"cont_page_translation_does_not_exist") .
": " .
1325 $this->
lng->txt(
"meta_l_" . $l)
1330 $content =
$r->render($box) .
$form->render();
1339 $this->tpl->setContent($content);
1344 $f = $this->wiki_gui->form(self::class,
"createPageTranslation")
1345 ->text(
"title", $this->
lng->txt(
"title"));
1352 $l = $this->request->getString(
"totransl");
1357 $p = $this->domain->page()->getWikiPage(
1364 $p->copyPageToTranslation($l);
1373 $p2->setTitle(
$form->getData(
"title"));
1375 $this->
ctrl->setParameter($this,
"transl", $l);
1378 $this->
ctrl->redirect($this,
"edit");
1383 return $this->wiki_pm->exists($id, $lang);
getLanguageLabelForCode(string $code)
finalizeAssignment()
Finalize and submit blog to exercise.
initAdvancedMetaDataForm()
confirmPageTranslationCreation()
Confirm page translation creation.
getFiles(array $a_file_ids=null, bool $a_only_valid=false, string $a_min_timestamp=null, bool $print_versions=false)
Get submission items (not only files)
setPropertyForm(ilPropertyFormGUI $form)
postOutputProcessing(string $a_output)
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
setHeaderPageTitle(string $a_title)
Sets the title of the page (for browser window).
static getPagesForSearch(int $a_wiki_id, string $a_term)
observeNoteAction(int $a_wiki_id, int $a_page_id, string $a_type, string $a_action, int $a_note_id)
setOutputMode(string $a_mode=self::PRESENTATION)
Class ChatMainBarProvider .
ilAdvancedMDRecordGUI $record_gui
Wiki statistics GUI class.
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
static _getInstance(int $a_usr_id)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static renderSideBlock(int $a_wpg_id, int $a_wiki_ref_id, ?ilWikiPage $a_wp=null)
static lookupTitle(int $a_page_id, string $lang="-")
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
static getLinksToPage(int $a_wiki_id, int $a_page_id, string $lang="-")
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
static _lookupName(int $a_user_id)
lookup user name
TableGUI class for wiki pages table.
static _performSearch(int $a_wiki_id, string $a_searchterm)
Search in Wiki.
ILIAS Wiki WikiGUIRequest $wiki_request
ILIAS COPage InternalGUIService $gui
loadLanguageModule(string $a_module)
Load language module.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
showEditToolbar()
Show edit toolbar.
setWikiRefId(int $a_ref_id)
setLoginTargetPar(string $a_val)
Set target parameter for login (public sector).
static replaceInternalLinks(string $s, int $a_wiki_id, bool $a_offline=false, string $lang="-")
This one is based on Mediawiki Parser->replaceInternalLinks since we display images in another way...
setTemplateOutput(bool $a_output=true)
static _lookupObjId(int $ref_id)
static getWikiPageContributors(int $a_page_id)
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
ILIAS HTTP Services $http
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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 _lookupTitle(int $obj_id)
setContent(string $a_html)
Sets content for standard template.
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
checkLangPageAvailable(int $id, string $lang)
setRenderPageContainer(bool $a_val)
ilGlobalTemplateInterface $tpl
setScreenIdComponent(string $a_comp)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $a_id=0, int $a_old_nr=0, int $a_wiki_ref_id=0, string $lang="-")
setPageObject(ilPageObject $a_pg_obj)
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)
deleteWikiPageConfirmationScreen()
getTranslatePageFormAdapter()
Class ilWikiPage GUI class.
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.
static getSyntaxStylePath()
setPresentationTitle(string $a_title="")
ILIAS Wiki InternalGUIService $wiki_gui
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
insertWikiLink()
Returns form to insert a wiki link per ajax.
activateWikiPageRating()
Rating /.
getTabs(string $a_activate="")
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
ILIAS Wiki InternalDomainService $domain
static initEditingJS(ilGlobalTemplateInterface $a_tpl)
const IL_WIKI_WHAT_LINKS_HERE
static makeUrlTitle(string $a_par)
form( $class_path, string $cmd, string $submit_caption="")
insertWikiLinkAC()
Auto complete for insert wiki link.
addLanguageSelectionToToolbar()
updateStatsRating(int $a_wiki_id, string $a_wiki_type, int $a_page_id, string $a_page_type)
ILIAS Wiki Page PageManager $wiki_pm
static makeDbTitle(string $a_par)
static getPageIdForTitle(int $a_wiki_id, string $a_title, string $lang="-")
Get wiki page object for id and title.
static _wikiPageExists(int $a_wiki_id, string $a_title, string $lang="-")
editAdvancedMetaData(ilPropertyFormGUI $a_form=null)
static handleEvent(int $a_event, ilWikiPage $a_page_obj, ?int $a_user_id=null, array $a_additional_data=null)
Handle wiki page event.
setWiki(ilObjWiki $a_val)
static hasNotification(int $type, int $user_id, int $id)
Check notification status for object and user.
static _lookupRatingOverall(int $a_wiki_id)
Lookup whether rating is activated for whole object.
getNotesHTML(object $a_content_object=null, bool $a_enable_private_notes=true, bool $a_enable_public_notes=false, bool $a_enable_notes_deletion=false, callable $a_callback=null, bool $export=false)
Get html for public and/or private notes.
static _lookupPublicNotes(int $a_wiki_id)
Lookup whether public notes are activated.
deactivateWikiPageRating()
static check(string $a_perm, int $a_ref_id, string $a_cmd="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS Notes Service $notes
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
static getAllWikiPages(int $a_wiki_id, string $lang="-")
confirmWikiPageDeletion()
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...
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
static getInstance(string $a_parent_type, int $a_id=0, int $a_old_nr=0, string $a_lang="-")
Get page object instance.
searchWikiLinkAC()
Search wiki link list.
addHeaderAction(bool $a_redraw=false)
setWikiPage(ilWikiPage $a_wikipage)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
static hasOptOut(int $obj_id)
Is opt out (disable notification) allowed?