4 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
30 function __construct($a_id = 0, $a_old_nr = 0, $a_wiki_ref_id = 0)
37 parent::__construct(
"wpg", $a_id, $a_old_nr);
41 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
43 $tpl->setCurrentBlock(
"SyntaxStyle");
44 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
46 $tpl->parseCurrentBlock();
59 $ilHelp->setScreenIdComponent(
"copgwpg");
64 $this->wiki_ref_id = $a_ref_id;
69 return $this->wiki_ref_id;
99 $next_class = $this->ctrl->getNextClass($this);
100 $cmd = $this->ctrl->getCmd();
103 $tpl->setHeaderPageTitle($head_title);
105 if ($_GET[
"page"] !=
"")
107 $tpl->setPermanentLink(
"wiki",
"",
"wpage_".$this->
getPageObject()->
getId().
"_".$_GET[
"ref_id"],
"", $head_title);
111 $tpl->setPermanentLink(
"wiki", $_GET[
"ref_id"]);
119 $ilTabs->setTabActive(
"pg");
125 include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
127 $rating_gui->setObject($this->
getPageObject()->getParentId(),
"wiki",
129 $rating_gui->setUpdateCallback(
array($this,
"updateStatsRating"));
130 $this->ctrl->forwardCommand($rating_gui);
131 $ilCtrl->redirect($this,
"preview");
134 case "ilpageobjectgui":
135 die(
"Deprecated. Wikipage gui forwarding to ilpageobject");
138 case "ilcommonactiondispatchergui":
139 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
141 $gui->enableCommentsSettings(
false);
142 $gui->setRatingCallback($this,
"preview");
143 $this->ctrl->forwardCommand($gui);
146 case "ilwikistatgui":
147 if($ilAccess->checkAccess(
"statistics_read",
"", $this->wiki_ref_id))
149 $this->tabs_gui->clearTargets();
152 include_once
"Modules/Wiki/classes/class.ilWikiStatGUI.php";
155 $this->ctrl->forwardCommand($gui);
158 case 'ilobjectmetadatagui':
160 if(!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id))
163 $ilCtrl->redirect($this,
"preview");
165 return parent::executeCommand();
170 if (strtolower($ilCtrl->getNextClass()) ==
"ilpageeditorgui")
172 self::initEditingJS($this->tpl);
177 include_once
"./Services/Notification/classes/class.ilNotification.php";
197 $ilCtrl->redirect($this,
"preview");
201 return parent::executeCommand();
228 static function getGUIForTitle($a_wiki_id, $a_title, $a_old_nr = 0, $a_wiki_ref_id = 0)
232 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
234 $page_gui =
new ilWikiPageGUI($id, $a_old_nr, $a_wiki_ref_id);
252 include_once
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
254 $ilAccess,
"wiki",
$_GET[
"ref_id"], $wiki_id);
255 $dispatcher->setSubObject(
"wpg", $page_id);
257 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
258 ilObjectListGUI::prepareJSLinks($this->ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
259 $this->ctrl->getLinkTargetByClass(
array(
"ilcommonactiondispatchergui",
"ilnotegui"),
"",
"",
true,
false),
260 $this->ctrl->getLinkTargetByClass(
array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false));
262 $lg = $dispatcher->initHeaderAction();
263 $lg->enableNotes(
true);
269 $lg->enableRating(
true, $this->lng->txt(
"wiki_rate_overall"),
272 array(
"ilcommonactiondispatchergui",
"ilratinggui"));
276 if ($ilUser->getId() != ANONYMOUS_USER_ID)
278 include_once
"./Services/Notification/classes/class.ilNotification.php";
281 $this->ctrl->setParameter($this,
"ntf", 1);
282 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_deactivate_wiki");
284 $lg->addHeaderIcon(
"not_icon",
286 $this->lng->txt(
"wiki_notification_activated"));
290 $this->ctrl->setParameter($this,
"ntf", 2);
291 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_activate_wiki");
295 $this->ctrl->setParameter($this,
"ntf", 3);
296 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_deactivate_page");
298 $lg->addHeaderIcon(
"not_icon",
300 $this->lng->txt(
"wiki_page_notification_activated"));
304 $this->ctrl->setParameter($this,
"ntf", 4);
305 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_activate_page");
307 $lg->addHeaderIcon(
"not_icon",
309 $this->lng->txt(
"wiki_notification_deactivated"));
312 $this->ctrl->setParameter($this,
"ntf",
"");
317 $this->tpl->setHeaderActionMenu($lg->getHeaderAction());
322 return $lg->getHeaderAction().
323 $this->tpl->getOnLoadCodeForAsynch();
353 $wtpl =
new ilTemplate(
"tpl.wiki_page_view_main_column.html",
354 true,
true,
"Modules/Wiki");
356 $callback =
array($this,
"observeNoteAction");
359 if (!$ilSetting->get(
"disable_comments") &&
362 $may_delete = ($ilSetting->get(
"comments_del_tutor", 1) &&
363 $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]));
366 $may_delete, $callback));
373 $wtpl->setVariable(
"PAGE", $this->
showPage());
375 $tpl->setLoginTargetPar(
"wiki_".
$_GET[
"ref_id"].$append);
378 include_once(
"./Services/User/classes/class.ilUserUtil.php");
379 $wtpl->setVariable(
"LAST_EDITED_INFO",
380 $lng->txt(
"wiki_last_edited").
": ".
384 false,
true, $ilCtrl->getLinkTarget($this,
"preview")));
386 $tpl->setLoginTargetPar(
"wiki_".
$_GET[
"ref_id"].$append);
389 if (
$_GET[
"srcstring"] !=
"")
391 include_once
'./Services/Search/classes/class.ilUserSearchCache.php';
394 $search_string = $cache->getQuery();
397 if(is_array($search_string))
399 $search_string = $search_string[
"lom_content"];
402 include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
403 include_once(
"./Services/Search/classes/class.ilQueryParser.php");
407 $words = $p->getQuotedWords();
408 if (is_array($words))
410 foreach ($words as
$w)
415 $this->fill_on_load_code =
true;
442 return parent::showPage();
452 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
454 $this->
getWikiPage()->getWikiId(), $ilUser->getId());
456 include_once
"./Modules/Wiki/classes/class.ilWikiStat.php";
468 include_once(
"./Modules/Wiki/classes/class.ilWikiUtil.php");
474 $ilCtrl->setParameterByClass(
"ilobjwikigui",
"from_page",
$_GET[
"from_page"]);
480 include_once(
"./Services/Object/classes/class.ilObjectMetaDataGUI.php");
482 $md = $mdgui->getKeyValueList();
485 $output = str_replace(
"<!--COPage-PageTop-->",
"<p>" . $md .
"</p>",
$output);
500 include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
506 $tpl->setContent($table_gui->getHTML());
511 global $ilTabs,
$ilCtrl, $ilAccess;
513 parent::getTabs($a_activate);
515 if($ilAccess->checkAccess(
"statistics_read",
"",
$_GET[
"ref_id"]))
517 $ilTabs->addTarget(
"statistics",
518 $this->ctrl->getLinkTargetByClass(
array(
"ilwikipagegui",
"ilwikistatgui"),
519 "initial"),
"",
"ilwikistatgui");
522 $ilCtrl->setParameterByClass(
"ilobjwikigui",
"wpg_id",
527 $ilTabs->addTarget(
"wiki_what_links_here",
528 $this->ctrl->getLinkTargetByClass(
"ilwikipagegui",
529 "whatLinksHere"),
"whatLinksHere");
533 $ilTabs->addTarget(
"wiki_print_view",
534 $this->ctrl->getLinkTargetByClass(
"ilwikipagegui",
535 "printViewSelection"),
"printViewSelection");
546 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
549 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
551 $confirmation_gui->setFormAction($ilCtrl->getFormAction($this));
552 $confirmation_gui->setHeaderText($lng->txt(
"wiki_page_deletion_confirmation"));
553 $confirmation_gui->setCancel($lng->txt(
"cancel"),
"cancelWikiPageDeletion");
554 $confirmation_gui->setConfirm($lng->txt(
"delete"),
"confirmWikiPageDeletion");
556 $dtpl =
new ilTemplate(
"tpl.wiki_page_deletion_confirmation.html",
true,
557 true,
"Modules/Wiki");
559 $dtpl->setVariable(
"PAGE_TITLE", $this->
getWikiPage()->getTitle());
562 $dtpl->setVariable(
"TXT_OTHER_PAGES", $lng->txt(
"wiki_other_pages_linking"));
565 if (count($pages) > 0)
567 foreach($pages as $page)
569 $dtpl->setCurrentBlock(
"lpage");
570 $dtpl->setVariable(
"TXT_LINKING_PAGE", $page[
"title"]);
571 $dtpl->parseCurrentBlock();
576 $dtpl->setCurrentBlock(
"lpage");
577 $dtpl->setVariable(
"TXT_LINKING_PAGE",
"-");
578 $dtpl->parseCurrentBlock();
582 $dtpl->setVariable(
"TXT_CONTRIBUTORS", $lng->txt(
"wiki_contributors"));
584 foreach($contributors as $contributor)
586 $dtpl->setCurrentBlock(
"contributor");
587 $dtpl->setVariable(
"TXT_CONTRIBUTOR",
588 $contributor[
"lastname"].
", ".$contributor[
"firstname"]);
589 $dtpl->parseCurrentBlock();
593 include_once(
"./Services/Notes/classes/class.ilNote.php");
596 $dtpl->setVariable(
"TXT_NUMBER_USERS_NOTES_OR_COMMENTS",
597 $lng->txt(
"wiki_number_users_notes_or_comments"));
598 $dtpl->setVariable(
"TXT_NR_NOTES_COMMENTS", $cnt_note_users);
600 $confirmation_gui->addItem(
"",
"", $dtpl->get());
602 $tpl->setContent($confirmation_gui->getHTML());
613 $ilCtrl->redirect($this,
"preview");
624 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
632 $ilCtrl->redirectByClass(
"ilobjwikigui",
"allPages");
656 $tpl->setContent($this->form->getHTML());
668 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
672 $this->form->setPreventDoubleSubmission(
false);
678 $op1 =
new ilRadioOption($lng->txt(
"cont_current_page"),
"page");
679 $radg->addOption($op1);
681 .
" (".$lng->txt(
"wiki_pages").
": ".count($pages).
")",
"wiki");
682 $radg->addOption($op2);
683 $op3=
new ilRadioOption($lng->txt(
"wiki_selected_pages"),
"selection");
684 $radg->addOption($op3);
686 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
688 $op3->addSubItem($nl);
690 foreach ($pages as $p)
692 $nl->addListNode($p[
"id"], $p[
"title"], 0,
false,
false,
696 $this->form->addItem($radg);
698 $this->form->addCommandButton(
"printViewOrder", $lng->txt(
"wiki_show_print_view"));
699 $this->form->addCommandButton(
"pdfExportOrder", $lng->txt(
"wiki_show_pdf_export"));
703 $this->form->setTitle($lng->txt(
"cont_print_selection"));
704 $this->form->setFormAction($ilCtrl->getFormAction($this,
"printViewOrder"));
721 $pg_ids = $all_pages =
array();
724 if(!is_array(
$_POST[
"wordr"]))
726 switch(trim(
$_POST[
"sel_type"]))
729 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
731 foreach ($all_pages as $p)
733 $pg_ids[] = $p[
"id"];
738 if (is_array(
$_POST[
"obj_id"]))
740 $pg_ids =
$_POST[
"obj_id"];
744 $pg_ids[] =
$_GET[
"wpg_id"];
746 if(
sizeof($pg_ids) > 1)
752 $_GET[
"wpg_id"] = array_pop($pg_ids);
759 $this->ctrl->setParameterByClass(
"ilObjWikiGUI",
"wpg_id",
$_GET[
"wpg_id"]);
762 $this->ctrl->redirectByClass(
"ilObjWikiGUI",
"pdfExport");
766 $this->ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
773 $this->ctrl->setParameter($this,
"pexp", 1);
779 $a_pdf_export = (bool)
$_GET[
"pexp"];
782 $pg_ids = array_keys(
$_POST[
"wordr"]);
785 $ilTabs->clearTargets();
786 $ilTabs->setBackTarget($this->lng->txt(
"back"),
787 $this->ctrl->getLinkTarget($this,
"preview"));
789 if(!
sizeof($all_pages))
791 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
795 include_once
"Modules/Wiki/classes/class.ilWikiExportOrderTableGUI.php";
797 $this->tpl->setContent(
$tbl->getHTML());
812 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
821 $ilCtrl->redirect($this,
"preview");
831 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
840 $ilCtrl->redirect($this,
"preview");
855 if (($ilAccess->checkAccess(
"edit_content",
"",
$_GET[
"ref_id"]) && !$this->
getPageObject()->getBlocked())
856 || $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
859 $tpl->setContent($this->form->getHTML());
872 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
876 $ti =
new ilTextInputGUI($lng->txt(
"wiki_new_page_name"),
"new_page_name");
880 $ti->setRequired(
true);
881 $this->form->addItem($ti);
883 $this->form->addCommandButton(
"renamePage", $lng->txt(
"wiki_rename"));
884 $this->form->addCommandButton(
"preview", $lng->txt(
"cancel"));
886 $this->form->setTitle($lng->txt(
"wiki_rename_page"));
887 $this->form->setFormAction($ilCtrl->getFormAction($this));
898 if ($this->form->checkInput())
900 if (($ilAccess->checkAccess(
"edit_content",
"",
$_GET[
"ref_id"]) && !$this->
getPageObject()->getBlocked())
901 || $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
903 $new_name = $this->form->getInput(
"new_page_name");
920 $ilCtrl->redirect($this,
"preview");
925 $this->form->setValuesByPost();
926 $tpl->setContent($this->form->getHtml());
941 $ilCtrl->redirect($this,
"preview");
952 $ilCtrl->redirect($this,
"preview");
959 include_once
"Services/Notes/classes/class.ilNote.php";
960 $note =
new ilNote($a_note_id);
961 $note = $note->getText();
963 include_once
"./Services/Notification/classes/class.ilNotification.php";
969 include_once
"./Modules/Wiki/classes/class.ilWikiStat.php";
984 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
986 $form->setFormAction($ilCtrl->getFormAction($this,
"updateAdvancedMetaData"));
989 $form->setTitle($lng->txt(
"wiki_advmd_block_title").
": ".$page->getTitle());
991 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
994 $this->record_gui->parse();
996 $form->addCommandButton(
"updateAdvancedMetaData", $lng->txt(
"save"));
997 $form->addCommandButton(
"preview", $lng->txt(
"cancel"));
1006 $ilTabs->clearTargets();
1007 $ilTabs->setBackTarget($lng->txt(
"back"),
1008 $ilCtrl->getLinkTarget($this,
"preview"));
1015 $tpl->setContent($a_form->getHTML());
1025 $form->checkInput();
1026 if(!$this->record_gui->importEditFormPostValues())
1032 if($this->record_gui->writeEditForm())
1036 $ilCtrl->redirect($this,
"preview");
1047 $ilCtrl->redirect($this,
"preview");
1058 $ilCtrl->redirect($this,
"preview");
1071 self::initEditingJS($tpl);
1073 return parent::edit();
1085 $a_tpl->addJavascript(
"./Modules/Wiki/js/WikiEdit.js");
1086 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.page_exists = '".$lng->txt(
"wiki_page_exists").
"';");
1087 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.new_page = '".$lng->txt(
"wiki_new_page").
"';");
1098 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1100 $form->addCommandButton(
"addWikiLink", $lng->txt(
"wiki_add_link"));
1101 $form->addCommandButton(
"searchWikiLink", $lng->txt(
"search"));
1104 $tp =
new ilTextInputGUI($this->lng->txt(
"wiki_target_page"),
"target_page");
1106 $tp->setRequired(
true);
1107 $tp->setInfo(
"...");
1108 $tp->setDataSource($ilCtrl->getLinkTarget($this,
"insertWikiLinkAC",
"",
true));
1109 $form->addItem($tp);
1112 $lt =
new ilTextInputGUI($this->lng->txt(
"wiki_link_text"),
"link_text");
1114 $form->addItem($lt);
1118 echo $form->getHTML();
1129 $term =
$_GET[
"term"];
1134 $entry =
new stdClass();
1135 $entry->value = $term;
1136 $entry->label = $term;
1153 $entry =
new stdClass();
1159 include_once
'./Services/JSON/classes/class.ilJsonUtil.php';
1171 $lng->loadLanguageModule(
"wiki");
1173 $tpl =
new ilTemplate(
"tpl.wiki_ac_search_result.html",
true,
true,
"Modules/Wiki");
1174 $term = trim(
$_GET[
"term"]);
1179 foreach ($pages as $page)
1190 foreach ($found as $f)
1192 $tpl->setCurrentBlock(
"item");
1193 $tpl->setVariable(
"WIKI_TITLE", $f[
"title"]);
1194 $tpl->parseCurrentBlock();
1197 if (count($pages) == 0)
1199 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term, $lng->txt(
"wiki_no_page_found")));
1201 else if ($term ==
'')
1203 $tpl->setVariable(
"INFOTEXT", $lng->txt(
"wiki_no_search_term"), $term);
1207 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term, $lng->txt(
"wiki_pages_found")));
1210 $tpl->setVariable(
"TXT_BACK", $lng->txt(
"back"));
static renderSideBlock($a_wpg_id, $a_wiki_ref_id, $a_wp=null)
Side column.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
This class represents an option in a radio group.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
initAdvancedMetaDataForm()
static hasNotification($type, $user_id, $id)
Check notification status for object and user.
static _lookupRatingOverall($a_wiki_id)
Lookup whether rating is activated for whole object.
getPageObject()
Get Page Object.
addHeaderAction($a_redraw=false)
static check($a_perm, $a_ref_id, $a_cmd="")
Check permission.
setTemplateOutput($a_output=true)
setScreenIdComponent()
Set screen id component.
setPropertyForm($form)
set property form object
Wiki statistics GUI class.
static getGUIForTitle($a_wiki_id, $a_title, $a_old_nr=0, $a_wiki_ref_id=0)
Get wiki page gui for id and title.
TableGUI class for wiki pages table.
unblockWikiPage()
Unblock.
static _lookupTitle($a_id)
lookup object title
initRenameForm()
Init renaming form.
observeNoteAction($a_wiki_id, $a_page_id, $a_type, $a_action, $a_note_id)
setPageObject($a_pg_obj)
Set Page Object.
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
updateStatsRating($a_wiki_id, $a_wiki_type, $a_page_id, $a_page_type)
static getPageIdForTitle($a_wiki_id, $a_title)
Get wiki page object for id and title.
postOutputProcessing($a_output)
Finalizing output processing.
static getPagesForSearch($a_wiki_id, $a_term)
Get pages for search.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
static _getInstance($a_usr_id)
Get singleton instance.
static _performSearch($a_wiki_id, $a_searchterm)
Search in Wiki.
static getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
static sendNotification($a_action, $a_type, $a_wiki_ref_id, $a_page_id, $a_comment=null)
printViewOrderList($a_pdf_export=false)
static _getPageIdForWikiTitle($a_wiki_id, $a_title)
Checks whether a page with given title exists.
static encode($mixed, $suppress_native=false)
static getUserCount($a_rep_obj_id, $a_obj_id, $a_type)
How many users have attached a note/comment to a given object?
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
renameWikiPage()
Rename wiki page form.
printViewSelection()
Print view selection.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static initEditingJS(ilTemplate $a_tpl)
Init wiki editing js.
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
deleteWikiPageConfirmationScreen()
Delete wiki page confirmation screen.
static setNotification($type, $user_id, $id, $status=true)
Set notification status for object and user.
setSize($a_size)
Set Size.
This class represents a text property in a property form.
static formatDate(ilDateTime $date)
Format a date public.
Class ilWikiPage GUI class.
setPresentationTitle($a_title="")
static _recordReadEvent($a_type, $a_ref_id, $obj_id, $usr_id, $isCatchupWriteEvents=true, $a_ext_rc=false, $a_ext_time=false)
Records a read event and catches up with write events.
whatLinksHere()
All links to a specific page.
setMaxLength($a_maxlength)
Set Max Length.
setRenderPageContainer($a_val)
Set render page container.
addOnLoadCode($a_code, $a_batch=2)
Add on load code.
static getSyntaxStylePath()
get syntax style path
getAbstractOnly()
Get abstract only.
static handleEvent($a_event, ilWikiPage $a_page_obj, $a_user_id=null, array $a_additional_data=null)
Handle wiki page event.
__construct($a_id=0, $a_old_nr=0, $a_wiki_ref_id=0)
Constructor.
static getAllWikiPages($a_wiki_id)
Get all pages of wiki.
static makeDbTitle($a_par)
Handle page GET parameter.
Create styles array
The data for the language used.
insertWikiLink()
Returns form to insert a wiki link per ajax.
activateWikiPageRating()
Rating /.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
getWikiPage()
Get Wiki Page Object.
static _wikiPageExists($a_wiki_id, $a_title)
Check whether page exists for wiki or not.
const IL_WIKI_WHAT_LINKS_HERE
const IL_PAGE_PRESENTATION
initPrintViewSelectionForm()
Init print view selection form.
insertWikiLinkAC()
Auto complete for insert wiki link.
setWikiPage($a_wikipage)
Set Wiki Page Object.
editAdvancedMetaData(ilPropertyFormGUI $a_form=null)
static highlight($a_dom_node_id, $a_text, $a_tpl=null)
Searches for all occurences of a text (case-insensitive) and highlights it.
deactivateWikiPageRating()
cancelWikiPageDeletion()
Cancel wiki page deletion.
static getLinksToPage($a_wiki_id, $a_page_id)
Get links to a page.
static getWikiPageContributors($a_page_id)
Get all contributors of wiki.
static replaceInternalLinks($s, $a_wiki_id, $a_offline=false)
This one is based on Mediawiki Parser->replaceInternalLinks since we display images in another way...
getNotesHTML($a_content_object=null, $a_enable_private_notes=true, $a_enable_public_notes=false, $a_enable_notes_deletion=false, $a_callback=null)
Get html for public and/or private notes.
confirmWikiPageDeletion()
Delete the wiki page.
TableGUI class for ordering pages to be printed/exported.
Class ilCommonActionDispatcherGUI.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
static _lookupPublicNotes($a_wiki_id)
Lookup whether public notes are activated.
searchWikiLinkAC()
Search wiki link list.
setOutputMode($a_mode=IL_PAGE_PRESENTATION)
Set Output Mode.
Confirmation screen class.
executeCommand()
execute command