4 require_once
"./classes/class.ilObjectGUI.php";
5 require_once
"./Modules/Wiki/classes/class.ilObjWiki.php";
25 function ilObjWikiGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output =
true)
31 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
32 $lng->loadLanguageModule(
"wiki");
34 if (
$_GET[
"page"] !=
"")
44 $next_class = $this->ctrl->getNextClass($this);
45 $cmd = $this->ctrl->getCmd();
51 case "ilinfoscreengui":
57 case 'ilpermissiongui':
59 $ilTabs->activateTab(
"perm_settings");
60 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
62 $ret =& $this->ctrl->forwardCommand($perm_gui);
67 include_once(
"./Modules/Wiki/classes/class.ilWikiPageGUI.php");
70 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
72 $this->object->getStyleSheetId(),
"wiki"));
74 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()) &&
75 (!$ilAccess->checkAccess(
"edit_content",
"", $this->object->getRefId()) ||
76 $wpage_gui->getPageObject()->getBlocked()
79 $wpage_gui->setEnableEditing(
false);
86 $ret = $this->ctrl->forwardCommand($wpage_gui);
89 $tpl->setContent(
$ret);
93 case 'ilpublicuserprofilegui':
94 require_once
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
96 $ret = $this->ctrl->forwardCommand($profile_gui);
97 $tpl->setContent(
$ret);
100 case "ilobjstylesheetgui":
101 include_once (
"./Services/Style/classes/class.ilObjStyleSheetGUI.php");
102 $this->ctrl->setReturn($this,
"editStyleProperties");
103 $style_gui =
new ilObjStyleSheetGUI(
"", $this->object->getStyleSheetId(),
false,
false);
105 if (
$cmd ==
"create" ||
$_GET[
"new_type"]==
"sty")
107 $style_gui->setCreationMode(
true);
110 if (
$cmd ==
"confirmedDelete")
112 $this->
object->setStyleSheetId(0);
113 $this->
object->update();
116 $ret = $this->ctrl->forwardCommand($style_gui);
118 if (
$cmd ==
"save" ||
$cmd ==
"copyStyle" ||
$cmd ==
"importStyle")
121 $this->
object->setStyleSheetId($style_id);
122 $this->
object->update();
123 $this->ctrl->redirectByClass(
"ilobjstylesheetgui",
"edit");
130 $ilTabs->activateTab(
"export");
131 include_once(
"./Services/Export/classes/class.ilExportGUI.php");
133 $exp_gui->addFormat(
"xml");
134 $exp_gui->addFormat(
"html",
"", $this,
"exportHTML");
135 $ret = $this->ctrl->forwardCommand($exp_gui);
139 case "ilcommonactiondispatchergui":
140 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
142 $this->ctrl->forwardCommand($gui);
152 if (
$cmd !=
"infoScreenObject")
181 $forms = array(self::CFORM_NEW => $this->form_gui,
197 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
201 if ($this->form_gui->checkInput())
205 $short_item = $this->form_gui->getItemByPostVar(
"shorttitle");
206 $short_item->setAlert($lng->txt(
"wiki_short_title_already_in_use"));
211 $_POST[
"title"] = $this->form_gui->getInput(
"title");
212 $_POST[
"desc"] = $this->form_gui->getInput(
"description");
217 $this->form_gui->setValuesByPost();
218 $tpl->setContent($this->form_gui->getHtml());
229 $newObj->setTitle($this->form_gui->getInput(
"title"));
230 $newObj->setDescription($this->form_gui->getInput(
"description"));
231 $newObj->setIntroduction($this->form_gui->getInput(
"intro"));
232 $newObj->setStartPage($this->form_gui->getInput(
"startpage"));
233 $newObj->setShortTitle($this->form_gui->getInput(
"shorttitle"));
234 $newObj->setRating($this->form_gui->getInput(
"rating"));
235 if (!$ilSetting->get(
"disable_comments"))
237 $newObj->setPublicNotes($this->form_gui->getInput(
"public_notes"));
239 $newObj->setOnline($this->form_gui->getInput(
"online"));
255 $this->ctrl->setCmd(
"showSummary");
256 $this->ctrl->setCmdClass(
"ilinfoscreengui");
265 global $ilAccess, $ilUser, $ilTabs,
$lng;
267 $ilTabs->activateTab(
"info_short");
269 if (!$ilAccess->checkAccess(
"visible",
"", $this->object->getRefId()))
271 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
274 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
276 $info->enablePrivateNotes();
277 if (trim($this->object->getIntroduction()) !=
"")
279 $info->addSection($lng->txt(
"wiki_introduction"));
280 $info->addProperty(
"", nl2br($this->object->getIntroduction()));
284 include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
285 include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
291 $info->addSection($this->lng->txt(
"wiki_feedback_from_tutor"));
292 if ($lpcomment !=
"")
294 $info->addProperty($this->lng->txt(
"wiki_comment"),
299 $info->addProperty($this->lng->txt(
"wiki_mark"),
305 $info->addProperty($this->lng->txt(
"status"),
306 $this->lng->txt(
"wiki_passed"));
310 $info->addProperty($this->lng->txt(
"status"),
311 $this->lng->txt(
"wiki_failed"));
323 if ($ilAccess->checkAccess(
"read",
"", $this->object->getRefId()))
329 $this->lng->loadLanguageModule(
"meta");
330 $this->lng->loadLanguageModule(
"wiki");
337 $this->ctrl->forwardCommand($info);
339 if ($ilAccess->checkAccess(
"read",
"", $this->object->getRefId()))
362 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
363 $ilCtrl->setParameter($this,
"wpg_id",
366 $ilTabs->addTarget(
"wiki_what_links_here",
367 $this->ctrl->getLinkTargetByClass(
"ilwikipagegui",
368 "whatLinksHere"),
"whatLinksHere");
372 $ilTabs->addTarget(
"wiki_print_view",
373 $this->ctrl->getLinkTargetByClass(
"ilwikipagegui",
374 "printViewSelection"),
"printViewSelection");
384 $ilTabs->activateTab(
"wiki_pages");
386 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
387 $ilCtrl->setParameter($this,
"wpg_id",
391 $ilTabs->addSubTabTarget(
"wiki_all_pages",
392 $this->ctrl->getLinkTarget($this,
"allPages"),
"allPages");
393 $ilTabs->addSubTabTarget(
"wiki_recent_changes",
394 $this->ctrl->getLinkTarget($this,
"recentChanges"),
"recentChanges");
395 $ilTabs->addSubTabTarget(
"wiki_new_pages",
396 $this->ctrl->getLinkTarget($this,
"newPages"),
"newPages");
397 $ilTabs->addSubTabTarget(
"wiki_popular_pages",
398 $this->ctrl->getLinkTarget($this,
"popularPages"),
"popularPages");
399 $ilTabs->addSubTabTarget(
"wiki_orphaned_pages",
400 $this->ctrl->getLinkTarget($this,
"orphanedPages"),
"orphanedPages");
413 if (in_array($ilCtrl->getCmdClass(), array(
"",
"ilobjwikigui",
414 "ilinfoscreengui",
"ilpermissiongui",
"ilexportgui")))
416 if (
$_GET[
"page"] !=
"")
418 $tabs_gui->setBackTarget($lng->txt(
"wiki_last_visited_page"),
424 if ($ilAccess->checkAccess(
'read',
"", $this->object->getRefId()))
426 $ilTabs->addTab(
"wiki_pages",
427 $lng->txt(
"wiki_pages"),
428 $this->ctrl->getLinkTarget($this,
"allPages"));
432 if ($ilAccess->checkAccess(
'visible',
"", $this->object->getRefId()))
434 $ilTabs->addTab(
"info_short",
435 $lng->txt(
"info_short"),
436 $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui",
"showSummary"));
440 if ($ilAccess->checkAccess(
'write',
"", $this->object->getRefId()))
442 $ilTabs->addTab(
"settings",
443 $lng->txt(
"settings"),
444 $this->ctrl->getLinkTarget($this,
"editSettings"));
448 if ($ilAccess->checkAccess(
'write',
"", $this->object->getRefId()))
450 $ilTabs->addTab(
"wiki_contributors",
451 $lng->txt(
"wiki_contributors"),
452 $this->ctrl->getLinkTarget($this,
"listContributors"));
455 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
457 $ilTabs->addTab(
"export",
459 $this->ctrl->getLinkTargetByClass(
"ilexportgui",
""));
464 if ($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
466 $ilTabs->addTab(
"perm_settings",
467 $lng->txt(
"perm_settings"),
468 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"));
480 if (in_array($a_active,
481 array(
"general_settings",
"style",
"imp_pages")))
484 $ilTabs->addSubTab(
"general_settings",
485 $lng->txt(
"wiki_general_settings"),
486 $ilCtrl->getLinkTarget($this,
'editSettings'));
489 $ilTabs->addSubTab(
"style",
490 $lng->txt(
"wiki_style"),
491 $ilCtrl->getLinkTarget($this,
'editStyleProperties'));
494 $ilTabs->addSubTab(
"imp_pages",
495 $lng->txt(
"wiki_navigation"),
496 $ilCtrl->getLinkTarget($this,
'editImportantPages'));
498 $ilTabs->activateSubTab($a_active);
516 $tpl->setContent($this->form_gui->getHtml());
527 $lng->loadLanguageModule(
"wiki");
528 $ilTabs->activateTab(
"settings");
530 include(
"Services/Form/classes/class.ilPropertyFormGUI.php");
536 $this->form_gui->addItem($tit);
554 $this->form_gui->addItem($des);
560 $this->form_gui->addItem($intro);
563 $sp =
new ilTextInputGUI($lng->txt(
"wiki_start_page"),
"startpage");
565 $sp->setRequired(
true);
566 $this->form_gui->addItem($sp);
570 $this->form_gui->addItem($online);
574 $this->form_gui->addItem($rating);
577 if (!$ilSetting->get(
"disable_comments"))
579 $comments =
new ilCheckboxInputGUI($lng->txt(
"wiki_public_comments"),
"public_notes");
580 $this->form_gui->addItem($comments);
589 $page_toc->
setInfo($lng->txt(
"wiki_page_toc_info"));
590 $this->form_gui->addItem($page_toc);
594 if ($a_mode !=
"create")
596 $this->form_gui->setTitle($lng->txt(
"wiki_settings"));
597 $this->form_gui->addCommandButton(
"saveSettings", $lng->txt(
"save"));
601 $this->form_gui->setTitle($lng->txt(
"wiki_new"));
602 $this->form_gui->addCommandButton(
"save", $lng->txt(
"wiki_add"));
603 $this->form_gui->addCommandButton(
"cancel", $lng->txt(
"cancel"));
607 if ($a_mode ==
"create")
609 $ilCtrl->setParameter($this,
"new_type",
"wiki");
612 $this->form_gui->setFormAction($ilCtrl->getFormAction($this,
"saveSettings"));
617 global
$lng, $ilUser;
620 if ($a_mode ==
"create")
622 $values[
"startpage"] = $lng->txt(
"wiki_main_page");
623 $this->form_gui->setValuesByArray($values);
627 $values[
"online"] = $this->
object->getOnline();
628 $values[
"title"] = $this->
object->getTitle();
629 $values[
"startpage"] = $this->
object->getStartPage();
630 $values[
"shorttitle"] = $this->
object->getShortTitle();
631 $values[
"description"] = $this->
object->getDescription();
632 $values[
"rating"] = $this->
object->getRating();
633 $values[
"public_notes"] = $this->
object->getPublicNotes();
634 $values[
"intro"] = $this->
object->getIntroduction();
636 $values[
"page_toc"] = $this->
object->getPageToc();
638 $this->form_gui->setValuesByArray($values);
654 if ($this->form_gui->checkInput())
657 $this->form_gui->getInput(
"shorttitle") != $this->
object->getShortTitle())
659 $short_item = $this->form_gui->getItemByPostVar(
"shorttitle");
660 $short_item->setAlert($lng->txt(
"wiki_short_title_already_in_use"));
664 $this->
object->setTitle($this->form_gui->getInput(
"title"));
665 $this->
object->setDescription($this->form_gui->getInput(
"description"));
666 $this->
object->setOnline($this->form_gui->getInput(
"online"));
667 $this->
object->setStartPage($this->form_gui->getInput(
"startpage"));
668 $this->
object->setShortTitle($this->form_gui->getInput(
"shorttitle"));
669 $this->
object->setRating($this->form_gui->getInput(
"rating"));
670 if (!$ilSetting->get(
"disable_comments"))
672 $this->
object->setPublicNotes($this->form_gui->getInput(
"public_notes"));
674 $this->
object->setIntroduction($this->form_gui->getInput(
"intro"));
676 $this->
object->setPageToc($this->form_gui->getInput(
"page_toc"));
677 $this->
object->update();
680 $ilCtrl->redirect($this,
"editSettings");
684 $this->form_gui->setValuesByPost();
685 $this->tpl->setContent($this->form_gui->getHTML());
693 global
$tpl, $ilTabs;
696 $ilTabs->activateTab(
"wiki_contributors");
698 include_once(
"./Modules/Wiki/classes/class.ilWikiContributorsTableGUI.php");
701 $this->object->getId());
703 $tpl->setContent($table_gui->getHTML());
717 $users = (is_array(
$_POST[
"sel_user_id"]))
719 : (is_array(
$_POST[
"user_id"])
723 include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
724 include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
726 foreach($users as $user_id)
732 $marks_obj =
new ilLPMarks($this->object->getId(),$user_id);
735 $marks_obj->update();
744 $ilCtrl->redirect($this,
"listContributors");
752 if (is_object($this->
object))
754 $ilLocator->addItem($this->object->getTitle(),
761 global $ilAccess,
$ilErr,
$lng, $ilNavigationHistory;
763 $i = strpos($a_target,
"_");
766 $a_page = substr($a_target, $i+1);
767 $a_target = substr($a_target, 0, $i);
770 if ($ilAccess->checkAccess(
"read",
"", $a_target))
772 $_GET[
"cmd"] =
"viewPage";
773 $_GET[
"ref_id"] = $a_target;
774 $_GET[
"page"] = $a_page;
775 $_GET[
"baseClass"] =
"ilwikihandlergui";
776 $_GET[
"cmdClass"] =
"ilobjwikigui";
783 include(
"ilias.php");
786 else if ($ilAccess->checkAccess(
"visible",
"", $a_target))
788 $_GET[
"cmd"] =
"infoScreen";
789 $_GET[
"ref_id"] = $tarr[0];
790 include(
"repository.php");
793 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
795 $_GET[
"cmd"] =
"frameset";
796 $_GET[
"target"] =
"";
797 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
800 include(
"repository.php");
804 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
817 $goto =
"goto.php?target=wiki_".$a_ref_id.
"_".
832 $ilTabs->clearTargets();
833 $tpl->setHeaderActionMenu(null);
835 $page = (
$_GET[
"page"] !=
"")
837 : $this->object->getStartPage();
838 $_GET[
"page"] = $page;
840 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
843 $page = $this->
object->getStartPage();
849 $ilCtrl->redirect($this,
"infoScreen");
856 include_once(
"./Modules/Wiki/classes/class.ilWikiPageGUI.php");
859 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
861 $this->object->getStyleSheetId(),
"wiki"));
867 $ilCtrl->setCmdClass(
"ilwikipagegui");
868 $ilCtrl->setCmd(
"preview");
869 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()) &&
870 (!$ilAccess->checkAccess(
"edit_content",
"", $this->object->getRefId()) ||
871 $wpage_gui->getPageObject()->getBlocked()
874 $wpage_gui->setEnableEditing(
false);
882 $html = $ilCtrl->forwardCommand($wpage_gui);
885 $tpl->setContent($html);
897 include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
905 $tpl->setContent($table_gui->getHTML());
917 include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
925 $tpl->setContent($table_gui->getHTML());
937 include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
945 $tpl->setContent($table_gui->getHTML());
959 $a_page =
$_GET[
"page"];
962 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
973 $page->setWikiId($this->object->getId());
979 $ilCtrl->redirectByClass(
"ilwikipagegui",
"edit");
992 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
1006 include_once(
"./Modules/Wiki/classes/class.ilWikiRecentChangesTableGUI.php");
1011 $this->object->getId());
1014 $tpl->setContent($table_gui->getHTML());
1033 if ($a_wpg_id > 0 && !$a_wp)
1035 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
1040 include_once(
"./Modules/Wiki/classes/class.ilWikiSearchBlockGUI.php");
1042 $rcontent = $wiki_search_block->getHTML();
1056 include_once(
"./Modules/Wiki/classes/class.ilWikiImportantPagesBlockGUI.php");
1058 $rcontent.= $imp_pages_block->getHTML();
1064 include_once(
"./Modules/Wiki/classes/class.ilWikiFunctionsBlockGUI.php");
1066 $wiki_functions_block->setPageObject($a_wp);
1067 $rcontent.= $wiki_functions_block->getHTML();
1070 $tpl->setRightContent($rcontent);
1082 include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
1090 $tpl->setContent($table_gui->getHTML());
1101 switch (
$_POST[
"sel_type"])
1104 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
1106 foreach ($pages as $p)
1108 $pg_ids[] = $p[
"id"];
1113 if (is_array(
$_POST[
"obj_id"]))
1115 $pg_ids =
$_POST[
"obj_id"];
1119 $pg_ids[] =
$_GET[
"wpg_id"];
1124 $pg_ids[] =
$_GET[
"wpg_id"];
1128 include_once(
"./Modules/Wiki/classes/class.ilWikiPageGUI.php");
1133 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
1138 $tpl->setCurrentBlock(
"SyntaxStyle");
1139 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
1141 $tpl->parseCurrentBlock();
1146 foreach ($pg_ids as $p_id)
1149 $page_gui->setOutputMode(
"print");
1150 $page_content.= $page_gui->showPage();
1152 $tpl->setVariable(
"CONTENT",
'<div class="ilInvisibleBorder">'.$page_content.
'</div>'.
1153 '<script type="text/javascript" language="javascript1.2">
1155 // Do print the page
1156 if (typeof(window.print) != \'undefined\')
1175 include_once(
"./Modules/Wiki/classes/class.ilWikiSearchResultsTableGUI.php");
1177 $ilTabs->setTabActive(
"wiki_search_results");
1179 if (trim(
$_POST[
"search_term"]) ==
"")
1182 $ilCtrl->redirectByClass(
"ilwikipagegui",
"preview");
1188 $this->object->getId(), $search_results);
1191 $tpl->setContent($table_gui->getHTML());
1210 $ctpl->setCurrentBlock(
"ContentStyle");
1211 $ctpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
1213 $ctpl->parseCurrentBlock();
1223 global $ilTabs,
$tpl;
1228 $tpl->setContent($this->form->getHTML());
1230 $ilTabs->activateTab(
"settings");
1243 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
1244 $lng->loadLanguageModule(
"style");
1246 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1249 $fixed_style = $ilSetting->get(
"fixed_content_style_id");
1250 $style_id = $this->
object->getStyleSheetId();
1252 if ($fixed_style > 0)
1256 $this->lng->txt(
"global_fixed").
")");
1257 $this->form->addItem($st);
1264 $st_styles[0] = $this->lng->txt(
"default");
1274 $this->form->addItem($st);
1279 $this->form->addCommandButton(
"editStyle",
1280 $lng->txt(
"style_edit_style"));
1281 $this->form->addCommandButton(
"deleteStyle",
1282 $lng->txt(
"style_delete_style"));
1290 $st_styles,
false,
true);
1291 $style_sel =
new ilSelectInputGUI($lng->txt(
"style_current_style"),
"style_id");
1293 $style_sel->setValue($style_id);
1294 $this->form->addItem($style_sel);
1296 $this->form->addCommandButton(
"saveStyleSettings",
1298 $this->form->addCommandButton(
"createStyle",
1299 $lng->txt(
"sty_create_ind_style"));
1302 $this->form->setTitle($lng->txt(
"wiki_style"));
1303 $this->form->setFormAction($ilCtrl->getFormAction($this));
1313 $ilCtrl->redirectByClass(
"ilobjstylesheetgui",
"create");
1323 $ilCtrl->redirectByClass(
"ilobjstylesheetgui",
"edit");
1333 $ilCtrl->redirectByClass(
"ilobjstylesheetgui",
"delete");
1343 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
1344 if ($ilSetting->get(
"fixed_content_style_id") <= 0 &&
1346 || $this->object->getStyleSheetId() == 0))
1349 $this->
object->update();
1352 $this->ctrl->redirect($this,
"editStyleProperties");
1371 $ipages_ids = array();
1372 foreach ($ipages as $i)
1374 $ipages_ids[] = $i[
"page_id"];
1378 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
1380 $options = array(
"" => $lng->txt(
"please_select"));
1381 foreach ($pages as $p)
1383 if (!in_array($p[
"id"], $ipages_ids))
1388 if (count($options) > 0)
1390 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
1393 $si->setInfo($lng->txt(
""));
1394 $ilToolbar->addInputItem($si);
1395 $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
1396 $ilToolbar->addFormButton($lng->txt(
"add"),
"addImportantPage");
1400 $ilTabs->activateTab(
"settings");
1403 include_once(
"./Modules/Wiki/classes/class.ilImportantPagesTableGUI.php");
1406 $tpl->setContent($imp_table->getHTML());
1421 if (
$_POST[
"imp_page_id"] > 0)
1423 $this->
object->addImportantPage((
int)
$_POST[
"imp_page_id"]);
1426 $ilCtrl->redirect($this,
"editImportantPages");
1436 if (!is_array(
$_POST[
"imp_page_id"]) || count(
$_POST[
"imp_page_id"]) == 0)
1439 $ilCtrl->redirect($this,
"editImportantPages");
1443 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
1445 $cgui->setFormAction($ilCtrl->getFormAction($this));
1446 $cgui->setHeaderText($lng->txt(
"wiki_sure_remove_imp_pages"));
1447 $cgui->setCancel($lng->txt(
"cancel"),
"editImportantPages");
1448 $cgui->setConfirm($lng->txt(
"remove"),
"removeImportantPages");
1450 foreach (
$_POST[
"imp_page_id"] as $i)
1455 $tpl->setContent($cgui->getHTML());
1471 if (is_array(
$_POST[
"imp_page_id"]))
1473 foreach (
$_POST[
"imp_page_id"] as $i)
1475 $this->
object->removeImportantPage((
int) $i);
1479 $ilCtrl->redirect($this,
"editImportantPages");
1494 $this->
object->saveOrderingAndIndentation(
$_POST[
"ord"],
$_POST[
"indent"]);
1496 $ilCtrl->redirect($this,
"editImportantPages");
1504 require_once(
"./Modules/Wiki/classes/class.ilWikiHTMLExport.php");
1506 $cont_exp->buildExportFile();
1518 include_once
"Modules/Wiki/classes/class.ilWikiPage.php";
1520 if($page->getWikiId() == $a_wiki_id)
1522 return $page->getTitle();