34 protected \ILIAS\Wiki\InternalDomainService
$domain;
35 protected \ILIAS\Wiki\Page\PageManager
$wiki_pm;
38 protected \ILIAS\Notes\Service
$notes;
39 protected \ILIAS\HTTP\Services
$http;
50 int $a_wiki_ref_id = 0,
60 $this->
settings = $domain->settings();
67 $this->
ctrl->saveParameterByClass(self::class,
"wpg_id");
71 $this->wiki_request =
$gui->request();
72 $this->notes = $DIC->notes();
73 $this->wiki_gui =
$gui;
74 $this->ot =
$gui->wiki()->translation($a_wiki_ref_id);
75 $this->wiki_pm = $this->domain->page()->page($this->
getWikiRefId());
76 $this->exc_domain = $DIC->exercise()->internal()->domain();
87 $this->wiki_ref_id = $a_ref_id;
117 $next_class = $this->
ctrl->getNextClass($this);
120 ": " . $this->getWikiPage()->getTitle();
124 PageContentProvider::setPermaLink($this->wiki_pm->getPermaLink(
125 $this->getPageObject()->getId(),
133 switch ($next_class) {
137 $ilTabs->setTabActive(
"pg");
143 $rating_gui->setObject(
149 $rating_gui->setUpdateCallback(array($this,
"updateStatsRating"));
150 $this->
ctrl->forwardCommand($rating_gui);
151 $ilCtrl->redirect($this,
"preview");
154 case "ilcommonactiondispatchergui":
156 if (!is_null(
$gui)) {
157 $gui->enableCommentsSettings(
false);
158 $gui->setRatingCallback(
166 case "ilwikistatgui":
167 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->wiki_ref_id)) {
168 $this->tabs_gui->clearTargets();
178 case 'ilobjectmetadatagui':
180 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id)) {
181 $this->tpl->setOnScreenMessage(
'failure',
$lng->
txt(
"permission_denied"),
true);
182 $ilCtrl->redirect($this,
"preview");
184 return parent::executeCommand();
186 case "ilpropertyformgui":
189 $ilCtrl->forwardCommand(
$form);
194 if (strtolower($ilCtrl->getNextClass()) ===
"ilpageeditorgui") {
195 self::initEditingJS($this->tpl);
198 if ($this->wiki_request->getNotification() > 0
200 switch ($this->wiki_request->getNotification()) {
218 $ilCtrl->redirect($this,
"preview");
222 return parent::executeCommand();
242 $this->getWikiPage()->
getId(),
249 bool $a_redraw =
false 261 $this->requested_ref_id,
266 $dispatcher->setSubObject(
"wpg", $page_id);
269 $this->
ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
271 $this->
ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false)
274 $lg = $dispatcher->initHeaderAction();
275 $lg->enableNotes(
true);
282 $this->
lng->txt(
"wiki_rate_overall"),
285 array(
"ilcommonactiondispatchergui",
"ilratinggui"),
293 $this->
ctrl->setParameter($this,
"ntf", 1);
295 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_deactivate_wiki");
301 $this->
lng->txt(
"wiki_notification_activated")
304 $this->
ctrl->setParameter($this,
"ntf", 2);
305 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_activate_wiki");
308 $this->
ctrl->setParameter($this,
"ntf", 3);
309 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_deactivate_page");
314 $this->
lng->txt(
"wiki_page_notification_activated")
317 $this->
ctrl->setParameter($this,
"ntf", 4);
318 $lg->addCustomCommand($this->
ctrl->getLinkTarget($this),
"wiki_notification_activate_page");
323 $this->
lng->txt(
"wiki_notification_deactivated")
327 $this->
ctrl->setParameter($this,
"ntf",
"");
331 $this->tpl->setHeaderActionMenu($lg->getHeaderAction());
334 return $lg->getHeaderAction() .
335 $this->tpl->getOnLoadCodeForAsynch();
360 $this->tpl->setOnScreenMessage(
'info',
$lng->
txt(
"wiki_page_status_blocked"));
368 if (!in_array($ilCtrl->getNextClass(), [
"ilnotegui",
"ilcommentgui"])) {
373 "tpl.wiki_page_view_main_column.html",
376 "components/ILIAS/Wiki" 379 $callback = array($this,
"observeNoteAction");
383 $may_delete = (
$ilSetting->get(
"comments_del_tutor",
'1') &&
384 $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id));
399 $wtpl->setVariable(
"PAGE", $this->
showPage());
406 $lng->
txt(
"wiki_last_edited") .
": " .
414 $ilCtrl->getLinkTarget($this,
"preview")
421 if ($this->wiki_request->getSearchString()) {
424 $search_string = $cache->getQuery();
427 if (is_array($search_string)) {
428 $search_string = $search_string[
"lom_content"];
434 $words = $p->getQuotedWords();
435 if (is_array($words)) {
436 foreach ($words as $w) {
437 ilTextHighlighterGUI::highlight(
"ilCOPageContent", $w,
$tpl);
440 $this->fill_on_load_code =
true;
460 return parent::showPage();
470 $modal_elements = $print_view->getModalElements($this->
ctrl->getLinkTarget(
486 $f = $this->wiki_gui->ui()->factory();
488 $this->
ctrl->setParameterByClass(self::class,
"wpg_id", $this->
getId());
489 $this->
ctrl->setParameterByClass(self::class,
"page",
null);
490 if ($this->ot->getContentActivated()) {
492 foreach ($this->ot->getLanguages() as
$language) {
493 $lang_code = (
$language->getLanguageCode() === $this->ot->getMasterLanguage())
496 $exists = $this->wiki_pm->exists($this->
getId(), $lang_code);
497 $this->
ctrl->setParameterByClass(self::class,
"transl", $lang_code);
498 $action = ($lang_code !==
"-" && !$exists)
501 if ($action ===
"switchToLanguage") {
502 $this->
ctrl->setParameterByClass(self::class,
"transl",
null);
503 $this->
ctrl->setParameterByClass(self::class,
"totransl", $lang_code);
507 :
" (" . $this->
lng->txt(
"wiki_not_existing") .
")";
511 $actions[] =
$f->link()->standard(
513 $this->
ctrl->getLinkTargetByClass(self::class, $action)
516 $this->
ctrl->setParameterByClass(self::class,
"transl", $this->requested_transl);
517 $this->
ctrl->setParameterByClass(self::class,
"totransl",
null);
518 if (count($actions) > 0) {
519 $dd =
$f->dropdown()->standard($actions)
529 $code = $this->ot->getMasterLanguage();
531 return $this->
lng->txt(
"language") .
": " . $this->
lng->txt(
"meta_l_" . $code);
536 $provider = new \ILIAS\Wiki\WikiPrintViewProviderGUI(
543 return new \ILIAS\Export\PrintProcessGUI(
555 $this->getWikiPage()->increaseViewCnt();
561 $this->getWikiPage()->getWikiId(),
573 $ilCtrl->setParameterByClass(
581 $this->getWikiPage()->getWikiId(),
588 $ilCtrl->setParameterByClass(
591 $this->wiki_request->getFromPage()
598 $md = $mdgui->getKeyValueList();
600 $output = str_replace(
"<!--COPage-PageTop-->",
"<p>" . $md .
"</p>", $output);
616 $this->getWikiPage()->getWikiId(),
619 $this->wiki_request->getTranslation()
626 string $a_activate =
"" 632 parent::getTabs($a_activate);
634 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->requested_ref_id)) {
637 $this->
ctrl->getLinkTargetByClass(
638 array(
"ilwikipagegui",
"ilwikistatgui"),
647 "wiki_what_links_here",
648 $this->
ctrl->getLinkTargetByClass(
664 $confirmation_gui->setFormAction($ilCtrl->getFormAction($this));
665 $confirmation_gui->setHeaderText(
$lng->
txt(
"wiki_page_deletion_confirmation"));
666 $confirmation_gui->setCancel(
$lng->
txt(
"cancel"),
"cancelWikiPageDeletion");
667 $confirmation_gui->setConfirm(
$lng->
txt(
"delete"),
"confirmWikiPageDeletion");
670 "tpl.wiki_page_deletion_confirmation.html",
673 "components/ILIAS/Wiki" 676 $dtpl->setVariable(
"PAGE_TITLE", $this->getWikiPage()->
getTitle());
679 $dtpl->setVariable(
"TXT_OTHER_PAGES",
$lng->
txt(
"wiki_other_pages_linking"));
681 $this->getWikiPage()->getWikiId(),
682 $this->getWikiPage()->
getId()
684 if (count($pages) > 0) {
685 foreach ($pages as $page) {
686 $dtpl->setCurrentBlock(
"lpage");
687 $dtpl->setVariable(
"TXT_LINKING_PAGE", $page[
"title"]);
688 $dtpl->parseCurrentBlock();
691 $dtpl->setCurrentBlock(
"lpage");
692 $dtpl->setVariable(
"TXT_LINKING_PAGE",
"-");
693 $dtpl->parseCurrentBlock();
697 $dtpl->setVariable(
"TXT_CONTRIBUTORS",
$lng->
txt(
"wiki_contributors"));
699 foreach ($contributors as $contributor) {
700 $dtpl->setCurrentBlock(
"contributor");
703 $contributor[
"lastname"] .
", " . $contributor[
"firstname"]
705 $dtpl->parseCurrentBlock();
709 $cnt_note_users = $this->notes->domain()->getUserCount(
715 "TXT_NUMBER_USERS_NOTES_OR_COMMENTS",
716 $lng->
txt(
"wiki_number_users_notes_or_comments")
718 $dtpl->setVariable(
"TXT_NR_NOTES_COMMENTS", $cnt_note_users);
720 $confirmation_gui->addItem(
"",
"", $dtpl->get());
730 $ilCtrl->
redirect($this,
"preview");
740 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_page_deleted"),
true);
743 $ilCtrl->redirectByClass(
"ilobjwikigui",
"allPages");
765 $pg_ids = $all_pages = array();
768 $ordering = $this->wiki_request->getPrintOrdering();
769 if (count($ordering) === 0) {
770 switch ($this->wiki_request->getSelectedPrintType()) {
772 foreach ($this->wiki_pm->getWikiPages($this->getLanguage()) as $p) {
773 $pg_ids[] = $p->getId();
778 $pg_ids = $this->wiki_request->getWikiPageIds();
779 if (count($pg_ids) === 0) {
780 $pg_ids = [$this->wiki_request->getWikiPageId()];
782 if (count($pg_ids) > 1) {
785 $wiki_page_id = array_pop($pg_ids);
787 $this->
ctrl->setParameterByClass(
792 $this->
ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
796 $this->
ctrl->setParameterByClass(
799 $this->wiki_request->getWikiPageId()
801 $this->
ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
808 $pg_ids = array_keys($ordering);
811 $ilTabs->clearTargets();
812 $ilTabs->setBackTarget(
813 $this->
lng->txt(
"back"),
814 $this->
ctrl->getLinkTarget($this,
"preview")
817 if (!count($all_pages)) {
823 "printViewOrderList",
827 $this->tpl->setContent($tbl->getHTML());
844 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_page_blocked"),
true);
847 $ilCtrl->redirect($this,
"preview");
859 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_page_unblocked"),
true);
862 $ilCtrl->redirect($this,
"preview");
875 if (($ilAccess->checkAccess(
878 $this->requested_ref_id
880 || $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
881 $this->
ctrl->setParameterByClass(ilWikiPageGUI::class,
"wpg_id", $this->wiki_request->getWikiPageId());
896 $ti->setMaxLength(200);
899 $ti->setRequired(
true);
900 $this->
form->addItem($ti);
902 $this->
form->addCommandButton(
"renamePage",
$lng->
txt(
"wiki_rename"));
903 $this->
form->addCommandButton(
"preview",
$lng->
txt(
"cancel"));
905 $this->
form->setTitle(
$lng->
txt(
"wiki_rename_page"));
906 $this->
form->setFormAction($ilCtrl->getFormAction($this));
917 if ($this->
form->checkInput()) {
918 if (($ilAccess->checkAccess(
"edit_content",
"", $this->requested_ref_id) && !$this->
getPageObject()->getBlocked())
919 || $ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
920 $new_name = $this->
form->getInput(
"new_page_name");
933 $this->tpl->setOnScreenMessage(
'failure',
$lng->
txt(
"wiki_page_already_exists"));
937 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
938 $ilCtrl->redirect($this,
"preview");
943 $this->
form->setValuesByPost();
959 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
960 $ilCtrl->redirect($this,
"preview");
971 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
972 $ilCtrl->redirect($this,
"preview");
984 $note = $this->notes->domain()->getById($a_note_id);
985 $text = $note->getText();
987 $noti = $this->wiki_gui->notification();
1010 $page = $this->getWikiPage();
1026 $this->record_gui->parse();
1043 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1044 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1049 $ilTabs->clearTargets();
1050 $ilTabs->setBackTarget(
1052 $ilCtrl->getLinkTarget($this,
"preview")
1068 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1069 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1077 if (!$this->record_gui->importEditFormPostValues()) {
1082 if ($this->record_gui->writeEditForm()) {
1083 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"settings_saved"),
true);
1085 $ilCtrl->redirect($this,
"preview");
1094 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1095 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1102 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"settings_saved"),
true);
1103 $ilCtrl->redirect($this,
"preview");
1112 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1113 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1120 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"settings_saved"),
true);
1121 $ilCtrl->redirect($this,
"preview");
1128 $this->
ctrl->setParameterByClass(self::class,
"wpg_id", $this->
getId());
1129 self::initEditingJS(
$tpl);
1131 return parent::edit();
1138 $lng = $DIC->language();
1141 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.page_exists = '" .
$lng->
txt(
"wiki_page_exists") .
"';");
1161 $tp->setRequired(
true);
1162 $tp->setInfo(
"...");
1163 $tp->setDataSource($ilCtrl->getLinkTarget($this,
"insertWikiLinkAC",
"",
true));
1184 $term = $this->wiki_request->getTerm();
1189 $entry->value = $term;
1190 $entry->label = $term;
1198 if ($result[0]->value == $r) {
1210 echo json_encode($result, JSON_THROW_ON_ERROR);
1223 $tpl =
new ilTemplate(
"tpl.wiki_ac_search_result.html",
true,
true,
"components/ILIAS/Wiki");
1224 $term = $this->wiki_request->getTerm();
1229 foreach ($pages as $page) {
1238 foreach ($found as
$f) {
1244 if (count($pages) === 0) {
1246 } elseif ($term ===
'') {
1271 $ass_id = $this->wiki_request->getAssignmentId();
1274 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"wiki_finalized"),
true);
1275 $ilCtrl->redirectByClass(
"ilObjWikiGUI",
"gotoStartPage");
1282 $ass_id = $this->wiki_request->getAssignmentId();
1285 $sub_manager = $this->exc_domain->submission(
$ass_id);
1286 $sub = $sub_manager->getSubmissionsOfUser($ilUser->getId())->current();
1287 $team_id = $this->exc_domain->team()->getTeamForMember(
1295 $ass->getTitle() .
" (Team " . $team_id .
").zip";
1297 $sub_manager->deliverFile(
1322 $this->tabs_gui->clearTargets();
1323 $this->tabs_gui->setBackTarget(
1324 $this->
lng->txt(
"back"),
1325 $this->
ctrl->getLinkTarget($this,
"edit")
1328 $l = $this->request->getString(
"totransl");
1329 $this->
ctrl->setParameter($this,
"totransl", $l);
1330 $this->
lng->loadLanguageModule(
"meta");
1332 $r = $this->wiki_gui->ui()->renderer();
1333 $box = $this->wiki_gui->ui()->factory()->messageBox()->confirmation(
1334 $this->
lng->txt(
"cont_page_translation_does_not_exist") .
": " .
1335 $this->
lng->txt(
"meta_l_" . $l)
1340 $content =
$r->render($box) .
$form->render();
1349 $this->tpl->setContent($content);
1354 $f = $this->wiki_gui->form(self::class,
"createPageTranslation")
1355 ->text(
"title", $this->
lng->txt(
"title"));
1362 $l = $this->request->getString(
"totransl");
1367 $p = $this->domain->page()->getWikiPage(
1374 $p->copyPageToTranslation($l);
1383 $p2->setTitle(
$form->getData(
"title"));
1385 $this->
ctrl->setParameter($this,
"transl", $l);
1388 $this->
ctrl->redirect($this,
"edit");
1393 return $this->wiki_pm->exists($id, $lang);
getLanguageLabelForCode(string $code)
finalizeAssignment()
Finalize and submit blog to exercise.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
initAdvancedMetaDataForm()
confirmPageTranslationCreation()
Confirm page translation creation.
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...
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
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)
Interface Observer Contains several chained tasks and infos about them.
ilAdvancedMDRecordGUI $record_gui
Wiki statistics GUI class.
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
static _getInstance(int $a_usr_id)
static renderSideBlock(int $a_wpg_id, int $a_wiki_ref_id, ?ilWikiPage $a_wp=null)
static lookupTitle(int $a_page_id, string $lang="-")
static getLinksToPage(int $a_wiki_id, int $a_page_id, string $lang="-")
static _lookupName(int $a_user_id)
lookup user name
TableGUI class for wiki pages table.
setContent(string $a_html)
Sets content for standard template.
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.
showEditToolbar()
Show edit toolbar.
setWikiRefId(int $a_ref_id)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
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)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ILIAS HTTP Services $http
editAdvancedMetaData(?ilPropertyFormGUI $a_form=null)
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)
ILIAS Exercise InternalDomainService $exc_domain
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
redirect(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
checkLangPageAvailable(int $id, string $lang)
setRenderPageContainer(bool $a_val)
setHeaderPageTitle(string $a_title)
Sets the title of the page (for browser window).
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()
setLoginTargetPar(string $a_val)
Set target parameter for login (public sector).
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Class ilWikiPage GUI class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getSyntaxStylePath()
setPresentationTitle(string $a_title="")
ILIAS Wiki InternalGUIService $wiki_gui
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
insertWikiLink()
Returns form to insert a wiki link per ajax.
activateWikiPageRating()
Rating /.
getTabs(string $a_activate="")
ILIAS Wiki InternalDomainService $domain
static initEditingJS(ilGlobalTemplateInterface $a_tpl)
static handleEvent(int $a_event, ilWikiPage $a_page_obj, ?int $a_user_id=null, ?array $a_additional_data=null)
Handle wiki page event.
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 prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ?ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
static _wikiPageExists(int $a_wiki_id, string $a_title, string $lang="-")
__construct(Container $dic, ilPlugin $plugin)
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.
setWiki(ilObjWiki $a_val)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
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.
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="")
ILIAS Notes Service $notes
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...
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilCommonActionDispatcherGUI.
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)
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.
setWikiPage(ilWikiPage $a_wikipage)
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?