4 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
45 public function __construct($a_id = 0, $a_old_nr = 0, $a_wiki_ref_id = 0)
49 $this->tpl = $DIC[
"tpl"];
50 $this->help = $DIC[
"ilHelp"];
51 $this->ctrl = $DIC->ctrl();
52 $this->tabs = $DIC->tabs();
53 $this->
user = $DIC->user();
54 $this->access = $DIC->access();
55 $this->lng = $DIC->language();
57 $this->toolbar = $DIC->toolbar();
63 parent::__construct(
"wpg", $a_id, $a_old_nr);
67 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
69 $tpl->setCurrentBlock(
"SyntaxStyle");
71 "LOCATION_SYNTAX_STYLESHEET",
74 $tpl->parseCurrentBlock();
87 $ilHelp->setScreenIdComponent(
"copgwpg");
92 $this->wiki_ref_id = $a_ref_id;
97 return $this->wiki_ref_id;
107 $this->wiki = $a_val;
132 $next_class = $this->ctrl->getNextClass($this);
133 $cmd = $this->ctrl->getCmd();
136 $tpl->setHeaderPageTitle($head_title);
138 if ($_GET[
"page"] !=
"") {
139 $tpl->setPermanentLink(
"wiki",
"",
"wpage_" . $this->
getPageObject()->
getId() .
"_" . $_GET[
"ref_id"],
"", $head_title);
141 $tpl->setPermanentLink(
"wiki", $_GET[
"ref_id"]);
145 switch ($next_class) {
148 $ilTabs->setTabActive(
"pg");
154 include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
156 $rating_gui->setObject(
162 $rating_gui->setUpdateCallback(
array($this,
"updateStatsRating"));
163 $this->ctrl->forwardCommand($rating_gui);
164 $ilCtrl->redirect($this,
"preview");
167 case "ilcommonactiondispatchergui":
168 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
170 $gui->enableCommentsSettings(
false);
171 $gui->setRatingCallback($this,
"preview");
172 $this->ctrl->forwardCommand($gui);
175 case "ilwikistatgui":
176 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->wiki_ref_id)) {
177 $this->tabs_gui->clearTargets();
180 include_once
"Modules/Wiki/classes/class.ilWikiStatGUI.php";
185 $this->ctrl->forwardCommand($gui);
188 case 'ilobjectmetadatagui':
190 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id)) {
192 $ilCtrl->redirect($this,
"preview");
194 return parent::executeCommand();
199 if (strtolower(
$ilCtrl->getNextClass()) ==
"ilpageeditorgui") {
200 self::initEditingJS($this->tpl);
204 include_once
"./Services/Notification/classes/class.ilNotification.php";
205 switch ($_GET[
"ntf"]) {
223 $ilCtrl->redirect($this,
"preview");
227 return parent::executeCommand();
254 public static function getGUIForTitle($a_wiki_id, $a_title, $a_old_nr = 0, $a_wiki_ref_id = 0)
258 $ilDB = $DIC->database();
260 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
284 include_once
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
292 $dispatcher->setSubObject(
"wpg", $page_id);
294 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
295 ilObjectListGUI::prepareJSLinks(
296 $this->ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
297 $this->ctrl->getLinkTargetByClass(
array(
"ilcommonactiondispatchergui",
"ilnotegui"),
"",
"",
true,
false),
298 $this->ctrl->getLinkTargetByClass(
array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false)
301 $lg = $dispatcher->initHeaderAction();
302 $lg->enableNotes(
true);
309 $this->lng->txt(
"wiki_rate_overall"),
312 array(
"ilcommonactiondispatchergui",
"ilratinggui")
317 if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
318 include_once
"./Services/Notification/classes/class.ilNotification.php";
320 $this->ctrl->setParameter($this,
"ntf", 1);
322 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_deactivate_wiki");
328 $this->lng->txt(
"wiki_notification_activated")
331 $this->ctrl->setParameter($this,
"ntf", 2);
332 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_activate_wiki");
335 $this->ctrl->setParameter($this,
"ntf", 3);
336 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_deactivate_page");
341 $this->lng->txt(
"wiki_page_notification_activated")
344 $this->ctrl->setParameter($this,
"ntf", 4);
345 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_activate_page");
350 $this->lng->txt(
"wiki_notification_deactivated")
354 $this->ctrl->setParameter($this,
"ntf",
"");
358 $this->tpl->setHeaderActionMenu($lg->getHeaderAction());
361 return $lg->getHeaderAction() .
362 $this->tpl->getOnLoadCodeForAsynch();
398 "tpl.wiki_page_view_main_column.html",
404 $callback =
array($this,
"observeNoteAction");
409 $may_delete = (
$ilSetting->get(
"comments_del_tutor", 1) &&
410 $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]));
424 $wtpl->setVariable(
"PAGE", $this->
showPage());
426 $tpl->setLoginTargetPar(
"wiki_" .
$_GET[
"ref_id"] . $append);
429 include_once(
"./Services/User/classes/class.ilUserUtil.php");
432 $lng->txt(
"wiki_last_edited") .
": " .
440 $ilCtrl->getLinkTarget($this,
"preview")
444 $tpl->setLoginTargetPar(
"wiki_" .
$_GET[
"ref_id"] . $append);
447 if (
$_GET[
"srcstring"] !=
"") {
448 include_once
'./Services/Search/classes/class.ilUserSearchCache.php';
451 $search_string = $cache->getQuery();
454 if (is_array($search_string)) {
455 $search_string = $search_string[
"lom_content"];
458 include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
459 include_once(
"./Services/Search/classes/class.ilQueryParser.php");
463 $words = $p->getQuotedWords();
464 if (is_array($words)) {
465 foreach ($words as
$w) {
469 $this->fill_on_load_code =
true;
496 return parent::showPage();
506 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
514 include_once
"./Modules/Wiki/classes/class.ilWikiStat.php";
526 include_once(
"./Modules/Wiki/classes/class.ilWikiUtil.php");
534 $ilCtrl->setParameterByClass(
"ilobjwikigui",
"from_page",
$_GET[
"from_page"]);
539 include_once(
"./Services/Object/classes/class.ilObjectMetaDataGUI.php");
541 $md = $mdgui->getKeyValueList();
543 $output = str_replace(
"<!--COPage-PageTop-->",
"<p>" . $md .
"</p>",
$output);
558 include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
569 $tpl->setContent($table_gui->getHTML());
578 parent::getTabs($a_activate);
580 if ($ilAccess->checkAccess(
"statistics_read",
"",
$_GET[
"ref_id"])) {
583 $this->ctrl->getLinkTargetByClass(
584 array(
"ilwikipagegui",
"ilwikistatgui"),
603 "wiki_what_links_here",
604 $this->ctrl->getLinkTargetByClass(
615 $this->ctrl->getLinkTargetByClass(
633 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
635 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
637 $confirmation_gui->setFormAction(
$ilCtrl->getFormAction($this));
638 $confirmation_gui->setHeaderText(
$lng->txt(
"wiki_page_deletion_confirmation"));
639 $confirmation_gui->setCancel(
$lng->txt(
"cancel"),
"cancelWikiPageDeletion");
640 $confirmation_gui->setConfirm(
$lng->txt(
"delete"),
"confirmWikiPageDeletion");
643 "tpl.wiki_page_deletion_confirmation.html",
649 $dtpl->setVariable(
"PAGE_TITLE", $this->
getWikiPage()->getTitle());
652 $dtpl->setVariable(
"TXT_OTHER_PAGES",
$lng->txt(
"wiki_other_pages_linking"));
657 if (count($pages) > 0) {
658 foreach ($pages as $page) {
659 $dtpl->setCurrentBlock(
"lpage");
660 $dtpl->setVariable(
"TXT_LINKING_PAGE", $page[
"title"]);
661 $dtpl->parseCurrentBlock();
664 $dtpl->setCurrentBlock(
"lpage");
665 $dtpl->setVariable(
"TXT_LINKING_PAGE",
"-");
666 $dtpl->parseCurrentBlock();
670 $dtpl->setVariable(
"TXT_CONTRIBUTORS",
$lng->txt(
"wiki_contributors"));
672 foreach ($contributors as $contributor) {
673 $dtpl->setCurrentBlock(
"contributor");
676 $contributor[
"lastname"] .
", " . $contributor[
"firstname"]
678 $dtpl->parseCurrentBlock();
682 include_once(
"./Services/Notes/classes/class.ilNote.php");
689 "TXT_NUMBER_USERS_NOTES_OR_COMMENTS",
690 $lng->txt(
"wiki_number_users_notes_or_comments")
692 $dtpl->setVariable(
"TXT_NR_NOTES_COMMENTS", $cnt_note_users);
694 $confirmation_gui->addItem(
"",
"", $dtpl->get());
696 $tpl->setContent($confirmation_gui->getHTML());
708 $ilCtrl->redirect($this,
"preview");
721 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
728 $ilCtrl->redirectByClass(
"ilobjwikigui",
"allPages");
756 $tpl->setContent($this->form->getHTML());
769 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
773 $this->form->setPreventDoubleSubmission(
false);
780 $radg->addOption($op1);
782 .
" (" .
$lng->txt(
"wiki_pages") .
": " . count($pages) .
")",
"wiki");
783 $radg->addOption($op2);
785 $radg->addOption($op3);
787 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
789 $op3->addSubItem($nl);
791 foreach ($pages as $p) {
799 $lng->txt(
"wiki_page")
803 $this->form->addItem($radg);
805 $this->form->addCommandButton(
"printViewOrder",
$lng->txt(
"wiki_show_print_view"));
806 $this->form->addCommandButton(
"pdfExportOrder",
$lng->txt(
"wiki_show_pdf_export"));
810 $this->form->setTitle(
$lng->txt(
"cont_print_selection"));
811 $this->form->setFormAction(
$ilCtrl->getFormAction($this,
"printViewOrder"));
828 $pg_ids = $all_pages =
array();
831 if (!is_array(
$_POST[
"wordr"])) {
832 switch (trim(
$_POST[
"sel_type"])) {
834 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
836 foreach ($all_pages as $p) {
837 $pg_ids[] = $p[
"id"];
842 if (is_array(
$_POST[
"obj_id"])) {
843 $pg_ids =
$_POST[
"obj_id"];
845 $pg_ids[] =
$_GET[
"wpg_id"];
847 if (
sizeof($pg_ids) > 1) {
850 $_GET[
"wpg_id"] = array_pop($pg_ids);
858 $this->ctrl->setParameterByClass(
"ilObjWikiGUI",
"wpg_id",
$_GET[
"wpg_id"]);
860 $this->ctrl->redirectByClass(
"ilObjWikiGUI",
"pdfExport");
862 $this->ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
868 $this->ctrl->setParameter($this,
"pexp", 1);
873 $a_pdf_export = (bool)
$_GET[
"pexp"];
876 $pg_ids = array_keys(
$_POST[
"wordr"]);
879 $ilTabs->clearTargets();
880 $ilTabs->setBackTarget(
881 $this->lng->txt(
"back"),
882 $this->ctrl->getLinkTarget($this,
"preview")
885 if (!
sizeof($all_pages)) {
886 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
890 include_once
"Modules/Wiki/classes/class.ilWikiExportOrderTableGUI.php";
892 $this->tpl->setContent(
$tbl->getHTML());
910 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
918 $ilCtrl->redirect($this,
"preview");
931 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
939 $ilCtrl->redirect($this,
"preview");
957 if (($ilAccess->checkAccess(
"edit_content",
"",
$_GET[
"ref_id"]) && !$this->
getPageObject()->getBlocked())
958 || $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
960 $tpl->setContent($this->form->getHTML());
974 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
982 $ti->setRequired(
true);
983 $this->form->addItem($ti);
985 $this->form->addCommandButton(
"renamePage",
$lng->txt(
"wiki_rename"));
986 $this->form->addCommandButton(
"preview",
$lng->txt(
"cancel"));
988 $this->form->setTitle(
$lng->txt(
"wiki_rename_page"));
989 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
1003 if ($this->form->checkInput()) {
1004 if (($ilAccess->checkAccess(
"edit_content",
"",
$_GET[
"ref_id"]) && !$this->
getPageObject()->getBlocked())
1005 || $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
1006 $new_name = $this->form->getInput(
"new_page_name");
1020 $ilCtrl->redirect($this,
"preview");
1025 $this->form->setValuesByPost();
1026 $tpl->setContent($this->form->getHtml());
1042 $ilCtrl->redirect($this,
"preview");
1054 $ilCtrl->redirect($this,
"preview");
1061 include_once
"Services/Notes/classes/class.ilNote.php";
1062 $note =
new ilNote($a_note_id);
1063 $note = $note->getText();
1065 include_once
"./Services/Notification/classes/class.ilNotification.php";
1071 include_once
"./Modules/Wiki/classes/class.ilWikiStat.php";
1087 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
1089 $form->setFormAction(
$ilCtrl->getFormAction($this,
"updateAdvancedMetaData"));
1092 $form->setTitle(
$lng->txt(
"wiki_advmd_block_title") .
": " . $page->getTitle());
1094 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
1097 $this->record_gui->parse();
1099 $form->addCommandButton(
"updateAdvancedMetaData",
$lng->txt(
"save"));
1100 $form->addCommandButton(
"preview",
$lng->txt(
"cancel"));
1113 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1114 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1119 $ilTabs->clearTargets();
1120 $ilTabs->setBackTarget(
1122 $ilCtrl->getLinkTarget($this,
"preview")
1129 $tpl->setContent($a_form->getHTML());
1138 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1139 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1146 $form->checkInput();
1147 if (!$this->record_gui->importEditFormPostValues()) {
1152 if ($this->record_gui->writeEditForm()) {
1155 $ilCtrl->redirect($this,
"preview");
1164 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1165 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1173 $ilCtrl->redirect($this,
"preview");
1182 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1183 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1191 $ilCtrl->redirect($this,
"preview");
1205 self::initEditingJS(
$tpl);
1207 return parent::edit();
1219 $lng = $DIC->language();
1221 $a_tpl->addJavascript(
"./Modules/Wiki/js/WikiEdit.js");
1222 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.page_exists = '" .
$lng->txt(
"wiki_page_exists") .
"';");
1223 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.new_page = '" .
$lng->txt(
"wiki_new_page") .
"';");
1235 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1237 $form->addCommandButton(
"addWikiLink",
$lng->txt(
"wiki_add_link"));
1238 $form->addCommandButton(
"searchWikiLink",
$lng->txt(
"search"));
1241 $tp =
new ilTextInputGUI($this->lng->txt(
"wiki_target_page"),
"target_page");
1243 $tp->setRequired(
true);
1244 $tp->setInfo(
"...");
1245 $tp->setDataSource(
$ilCtrl->getLinkTarget($this,
"insertWikiLinkAC",
"",
true));
1246 $form->addItem($tp);
1249 $lt =
new ilTextInputGUI($this->lng->txt(
"wiki_link_text"),
"link_text");
1251 $form->addItem($lt);
1255 echo
$form->getHTML();
1266 $term =
$_GET[
"term"];
1270 $entry =
new stdClass();
1271 $entry->value = $term;
1272 $entry->label = $term;
1280 if (
$result[0]->value == $r) {
1286 $entry =
new stdClass();
1292 include_once
'./Services/JSON/classes/class.ilJsonUtil.php';
1304 $lng->loadLanguageModule(
"wiki");
1306 $tpl =
new ilTemplate(
"tpl.wiki_ac_search_result.html",
true,
true,
"Modules/Wiki");
1307 $term = trim(
$_GET[
"term"]);
1312 foreach ($pages as $page) {
1321 foreach ($found as $f) {
1322 $tpl->setCurrentBlock(
"item");
1323 $tpl->setVariable(
"WIKI_TITLE", $f[
"title"]);
1324 $tpl->parseCurrentBlock();
1327 if (count($pages) == 0) {
1328 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term,
$lng->txt(
"wiki_no_page_found")));
1329 } elseif ($term ==
'') {
1330 $tpl->setVariable(
"INFOTEXT",
$lng->txt(
"wiki_no_search_term"), $term);
1332 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term,
$lng->txt(
"wiki_pages_found")));
1335 $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.
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
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.
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 formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
static getGUIForTitle($a_wiki_id, $a_title, $a_old_nr=0, $a_wiki_ref_id=0)
Get wiki page gui for id and title.
if(!array_key_exists('StateId', $_REQUEST)) $id
static hasOptOut($obj_id)
Is opt out (disable notification) allowed?
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)
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 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?
foreach($_POST as $key=> $value) $res
if(isset($_POST['submit'])) $form
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)
setPageObject(ilPageObject $a_pg_obj)
Set Page Object.
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.
Class ilWikiPage GUI class.
setPresentationTitle($a_title="")
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 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, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
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