4 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
50 public function __construct($a_id = 0, $a_old_nr = 0, $a_wiki_ref_id = 0)
54 $this->tpl = $DIC[
"tpl"];
55 $this->help = $DIC[
"ilHelp"];
56 $this->ctrl = $DIC->ctrl();
57 $this->tabs = $DIC->tabs();
58 $this->
user = $DIC->user();
59 $this->access = $DIC->access();
60 $this->lng = $DIC->language();
62 $this->toolbar = $DIC->toolbar();
64 $this->ui = $DIC->ui();
69 parent::__construct(
"wpg", $a_id, $a_old_nr);
73 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
75 $tpl->setCurrentBlock(
"SyntaxStyle");
77 "LOCATION_SYNTAX_STYLESHEET",
80 $tpl->parseCurrentBlock();
93 $ilHelp->setScreenIdComponent(
"copgwpg");
98 $this->wiki_ref_id = $a_ref_id;
103 return $this->wiki_ref_id;
113 $this->wiki = $a_val;
138 $next_class = $this->ctrl->getNextClass($this);
139 $cmd = $this->ctrl->getCmd();
142 $tpl->setHeaderPageTitle($head_title);
144 if ($_GET[
"page"] !=
"") {
145 $tpl->setPermanentLink(
"wiki",
"",
"wpage_" . $this->
getPageObject()->
getId() .
"_" . $_GET[
"ref_id"],
"", $head_title);
147 $tpl->setPermanentLink(
"wiki", $_GET[
"ref_id"]);
151 switch ($next_class) {
154 $ilTabs->setTabActive(
"pg");
160 include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
162 $rating_gui->setObject(
168 $rating_gui->setUpdateCallback(array($this,
"updateStatsRating"));
169 $this->ctrl->forwardCommand($rating_gui);
170 $ilCtrl->redirect($this,
"preview");
173 case "ilcommonactiondispatchergui":
174 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
176 $gui->enableCommentsSettings(
false);
177 $gui->setRatingCallback($this,
"preview");
178 $this->ctrl->forwardCommand($gui);
181 case "ilwikistatgui":
182 if ($ilAccess->checkAccess(
"statistics_read",
"", $this->wiki_ref_id)) {
183 $this->tabs_gui->clearTargets();
186 include_once
"Modules/Wiki/classes/class.ilWikiStatGUI.php";
191 $this->ctrl->forwardCommand($gui);
194 case 'ilobjectmetadatagui':
196 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id)) {
198 $ilCtrl->redirect($this,
"preview");
200 return parent::executeCommand();
203 case "ilpropertyformgui":
211 if (strtolower(
$ilCtrl->getNextClass()) ==
"ilpageeditorgui") {
212 self::initEditingJS($this->tpl);
216 include_once
"./Services/Notification/classes/class.ilNotification.php";
217 switch ($_GET[
"ntf"]) {
235 $ilCtrl->redirect($this,
"preview");
239 return parent::executeCommand();
266 public static function getGUIForTitle($a_wiki_id, $a_title, $a_old_nr = 0, $a_wiki_ref_id = 0)
270 $ilDB = $DIC->database();
272 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
296 include_once
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
304 $dispatcher->setSubObject(
"wpg", $page_id);
306 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
307 ilObjectListGUI::prepareJSLinks(
308 $this->ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
309 $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"ilnotegui"),
"",
"",
true,
false),
310 $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false)
313 $lg = $dispatcher->initHeaderAction();
314 $lg->enableNotes(
true);
321 $this->lng->txt(
"wiki_rate_overall"),
324 array(
"ilcommonactiondispatchergui",
"ilratinggui")
329 if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
330 include_once
"./Services/Notification/classes/class.ilNotification.php";
332 $this->ctrl->setParameter($this,
"ntf", 1);
334 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_deactivate_wiki");
340 $this->lng->txt(
"wiki_notification_activated")
343 $this->ctrl->setParameter($this,
"ntf", 2);
344 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_activate_wiki");
347 $this->ctrl->setParameter($this,
"ntf", 3);
348 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_deactivate_page");
353 $this->lng->txt(
"wiki_page_notification_activated")
356 $this->ctrl->setParameter($this,
"ntf", 4);
357 $lg->addCustomCommand($this->ctrl->getLinkTarget($this),
"wiki_notification_activate_page");
362 $this->lng->txt(
"wiki_notification_deactivated")
366 $this->ctrl->setParameter($this,
"ntf",
"");
370 $this->tpl->setHeaderActionMenu($lg->getHeaderAction());
373 return $lg->getHeaderAction() .
374 $this->tpl->getOnLoadCodeForAsynch();
404 include_once(
"./Modules/Exercise/RepoObjectAssignment/classes/class.ilExcRepoObjAssignment.php");
407 foreach ($ass_info as
$i) {
413 $exc_title = $i->getExerciseTitle();
415 $lng->txt(
"wiki_exercise_info"),
419 foreach ($i->getLinks() as
$l) {
420 $links[] =
$ui->factory()->link()->standard($exc_title,
$l);
425 $ilCtrl->setParameterByClass(
"ilwikipagegui",
"ass", $ass->getId());
426 $submit_link =
$ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"finalizeAssignment");
427 $ilCtrl->setParameterByClass(
"ilwikipagegui",
"ass",
"");
429 $buttons[] =
$ui->factory()->button()->primary(
$lng->txt(
"wiki_finalize_wiki"), $submit_link);
433 include_once
"Modules/Exercise/classes/class.ilExSubmission.php";
435 if ($submission->hasSubmitted()) {
438 $ilCtrl->setParameterByClass(
"ilwikipagegui",
"ass", $ass->getId());
439 $dl_link =
$ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"downloadExcSubFile");
440 $ilCtrl->setParameterByClass(
"ilwikipagegui",
"ass",
"");
446 $info .=
"<br />" . sprintf(
447 $lng->txt(
"wiki_exercise_submitted_info"),
452 $buttons[] =
$ui->factory()->button()->standard(
$lng->txt(
"wiki_download_submission"), $dl_link);
456 $mbox =
$ui->factory()->messageBox()->info(
$info)
458 ->withButtons($buttons);
474 "tpl.wiki_page_view_main_column.html",
480 $callback = array($this,
"observeNoteAction");
485 $may_delete = (
$ilSetting->get(
"comments_del_tutor", 1) &&
486 $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]));
500 $wtpl->setVariable(
"PAGE", $this->
showPage());
502 $tpl->setLoginTargetPar(
"wiki_" .
$_GET[
"ref_id"] . $append);
505 include_once(
"./Services/User/classes/class.ilUserUtil.php");
508 $lng->txt(
"wiki_last_edited") .
": " .
516 $ilCtrl->getLinkTarget($this,
"preview")
520 $tpl->setLoginTargetPar(
"wiki_" .
$_GET[
"ref_id"] . $append);
523 if (
$_GET[
"srcstring"] !=
"") {
524 include_once
'./Services/Search/classes/class.ilUserSearchCache.php';
527 $search_string = $cache->getQuery();
530 if (is_array($search_string)) {
531 $search_string = $search_string[
"lom_content"];
534 include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
535 include_once(
"./Services/Search/classes/class.ilQueryParser.php");
539 $words = $p->getQuotedWords();
540 if (is_array($words)) {
541 foreach ($words as
$w) {
545 $this->fill_on_load_code =
true;
572 return parent::showPage();
582 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
590 include_once
"./Modules/Wiki/classes/class.ilWikiStat.php";
602 include_once(
"./Modules/Wiki/classes/class.ilWikiUtil.php");
610 $ilCtrl->setParameterByClass(
"ilobjwikigui",
"from_page",
$_GET[
"from_page"]);
615 include_once(
"./Services/Object/classes/class.ilObjectMetaDataGUI.php");
617 $md = $mdgui->getKeyValueList();
619 $output = str_replace(
"<!--COPage-PageTop-->",
"<p>" . $md .
"</p>",
$output);
634 include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
645 $tpl->setContent($table_gui->getHTML());
654 parent::getTabs($a_activate);
656 if ($ilAccess->checkAccess(
"statistics_read",
"",
$_GET[
"ref_id"])) {
659 $this->ctrl->getLinkTargetByClass(
660 array(
"ilwikipagegui",
"ilwikistatgui"),
679 "wiki_what_links_here",
680 $this->ctrl->getLinkTargetByClass(
691 $this->ctrl->getLinkTargetByClass(
709 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
711 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
713 $confirmation_gui->setFormAction(
$ilCtrl->getFormAction($this));
714 $confirmation_gui->setHeaderText(
$lng->txt(
"wiki_page_deletion_confirmation"));
715 $confirmation_gui->setCancel(
$lng->txt(
"cancel"),
"cancelWikiPageDeletion");
716 $confirmation_gui->setConfirm(
$lng->txt(
"delete"),
"confirmWikiPageDeletion");
719 "tpl.wiki_page_deletion_confirmation.html",
725 $dtpl->setVariable(
"PAGE_TITLE", $this->
getWikiPage()->getTitle());
728 $dtpl->setVariable(
"TXT_OTHER_PAGES",
$lng->txt(
"wiki_other_pages_linking"));
733 if (count($pages) > 0) {
734 foreach ($pages as $page) {
735 $dtpl->setCurrentBlock(
"lpage");
736 $dtpl->setVariable(
"TXT_LINKING_PAGE", $page[
"title"]);
737 $dtpl->parseCurrentBlock();
740 $dtpl->setCurrentBlock(
"lpage");
741 $dtpl->setVariable(
"TXT_LINKING_PAGE",
"-");
742 $dtpl->parseCurrentBlock();
746 $dtpl->setVariable(
"TXT_CONTRIBUTORS",
$lng->txt(
"wiki_contributors"));
748 foreach ($contributors as $contributor) {
749 $dtpl->setCurrentBlock(
"contributor");
752 $contributor[
"lastname"] .
", " . $contributor[
"firstname"]
754 $dtpl->parseCurrentBlock();
758 include_once(
"./Services/Notes/classes/class.ilNote.php");
765 "TXT_NUMBER_USERS_NOTES_OR_COMMENTS",
766 $lng->txt(
"wiki_number_users_notes_or_comments")
768 $dtpl->setVariable(
"TXT_NR_NOTES_COMMENTS", $cnt_note_users);
770 $confirmation_gui->addItem(
"",
"", $dtpl->get());
772 $tpl->setContent($confirmation_gui->getHTML());
784 $ilCtrl->redirect($this,
"preview");
797 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
801 ilUtil::sendSuccess(
$lng->txt(
"wiki_page_deleted"),
true);
804 $ilCtrl->redirectByClass(
"ilobjwikigui",
"allPages");
832 $tpl->setContent($this->form->getHTML());
845 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
849 $this->form->setPreventDoubleSubmission(
false);
856 $radg->addOption($op1);
858 .
" (" .
$lng->txt(
"wiki_pages") .
": " . count($pages) .
")",
"wiki");
859 $radg->addOption($op2);
861 $radg->addOption($op3);
863 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
865 $op3->addSubItem($nl);
867 foreach ($pages as $p) {
875 $lng->txt(
"wiki_page")
879 $this->form->addItem($radg);
881 $this->form->addCommandButton(
"printViewOrder",
$lng->txt(
"wiki_show_print_view"));
882 $this->form->addCommandButton(
"pdfExportOrder",
$lng->txt(
"wiki_show_pdf_export"));
886 $this->form->setTitle(
$lng->txt(
"cont_print_selection"));
887 $this->form->setFormAction(
$ilCtrl->getFormAction($this,
"printViewOrder"));
904 $pg_ids = $all_pages = array();
907 if (!is_array(
$_POST[
"wordr"])) {
908 switch (trim(
$_POST[
"sel_type"])) {
910 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
912 foreach ($all_pages as $p) {
913 $pg_ids[] = $p[
"id"];
918 if (is_array(
$_POST[
"obj_id"])) {
919 $pg_ids =
$_POST[
"obj_id"];
921 $pg_ids[] =
$_GET[
"wpg_id"];
923 if (
sizeof($pg_ids) > 1) {
926 $_GET[
"wpg_id"] = array_pop($pg_ids);
934 $this->ctrl->setParameterByClass(
"ilObjWikiGUI",
"wpg_id",
$_GET[
"wpg_id"]);
936 $this->ctrl->redirectByClass(
"ilObjWikiGUI",
"pdfExport");
938 $this->ctrl->redirectByClass(
"ilObjWikiGUI",
"printView");
944 $this->ctrl->setParameter($this,
"pexp", 1);
949 $a_pdf_export = (bool)
$_GET[
"pexp"];
952 $pg_ids = array_keys(
$_POST[
"wordr"]);
955 $ilTabs->clearTargets();
956 $ilTabs->setBackTarget(
957 $this->lng->txt(
"back"),
958 $this->ctrl->getLinkTarget($this,
"preview")
961 if (!
sizeof($all_pages)) {
962 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
966 include_once
"Modules/Wiki/classes/class.ilWikiExportOrderTableGUI.php";
968 $this->tpl->setContent(
$tbl->getHTML());
986 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
991 ilUtil::sendSuccess(
$lng->txt(
"wiki_page_blocked"),
true);
994 $ilCtrl->redirect($this,
"preview");
1007 include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
1012 ilUtil::sendSuccess(
$lng->txt(
"wiki_page_unblocked"),
true);
1015 $ilCtrl->redirect($this,
"preview");
1033 if (($ilAccess->checkAccess(
"edit_content",
"",
$_GET[
"ref_id"]) && !$this->
getPageObject()->getBlocked())
1034 || $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
1036 $tpl->setContent($this->form->getHTML());
1050 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1058 $ti->setRequired(
true);
1059 $this->form->addItem($ti);
1061 $this->form->addCommandButton(
"renamePage",
$lng->txt(
"wiki_rename"));
1062 $this->form->addCommandButton(
"preview",
$lng->txt(
"cancel"));
1064 $this->form->setTitle(
$lng->txt(
"wiki_rename_page"));
1065 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
1079 if ($this->form->checkInput()) {
1080 if (($ilAccess->checkAccess(
"edit_content",
"",
$_GET[
"ref_id"]) && !$this->
getPageObject()->getBlocked())
1081 || $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
1082 $new_name = $this->form->getInput(
"new_page_name");
1095 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
1096 $ilCtrl->redirect($this,
"preview");
1101 $this->form->setValuesByPost();
1102 $tpl->setContent($this->form->getHtml());
1117 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
1118 $ilCtrl->redirect($this,
"preview");
1129 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
1130 $ilCtrl->redirect($this,
"preview");
1137 include_once
"Services/Notes/classes/class.ilNote.php";
1138 $note =
new ilNote($a_note_id);
1139 $note = $note->getText();
1141 include_once
"./Services/Notification/classes/class.ilNotification.php";
1147 include_once
"./Modules/Wiki/classes/class.ilWikiStat.php";
1163 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
1165 $form->setFormAction(
$ilCtrl->getFormAction($this,
"updateAdvancedMetaData"));
1168 $form->setTitle(
$lng->txt(
"wiki_advmd_block_title") .
": " . $page->getTitle());
1170 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
1173 $this->record_gui->parse();
1175 $form->addCommandButton(
"updateAdvancedMetaData",
$lng->txt(
"save"));
1176 $form->addCommandButton(
"preview",
$lng->txt(
"cancel"));
1189 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1190 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1195 $ilTabs->clearTargets();
1196 $ilTabs->setBackTarget(
1198 $ilCtrl->getLinkTarget($this,
"preview")
1205 $tpl->setContent($a_form->getHTML());
1214 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1215 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1222 $form->checkInput();
1223 if (!$this->record_gui->importEditFormPostValues()) {
1228 if ($this->record_gui->writeEditForm()) {
1229 ilUtil::sendSuccess(
$lng->txt(
"settings_saved"),
true);
1231 $ilCtrl->redirect($this,
"preview");
1240 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1241 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1248 ilUtil::sendSuccess(
$lng->txt(
"settings_saved"),
true);
1249 $ilCtrl->redirect($this,
"preview");
1258 if (!$ilAccess->checkAccess(
"write",
"", $this->wiki_ref_id) &&
1259 !$ilAccess->checkAccess(
"edit_page_meta",
"", $this->wiki_ref_id)) {
1266 ilUtil::sendSuccess(
$lng->txt(
"settings_saved"),
true);
1267 $ilCtrl->redirect($this,
"preview");
1281 self::initEditingJS(
$tpl);
1283 return parent::edit();
1295 $lng = $DIC->language();
1297 $a_tpl->addJavascript(
"./Modules/Wiki/js/WikiEdit.js");
1298 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.page_exists = '" .
$lng->txt(
"wiki_page_exists") .
"';");
1299 $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.new_page = '" .
$lng->txt(
"wiki_new_page") .
"';");
1311 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1313 $form->addCommandButton(
"addWikiLink",
$lng->txt(
"wiki_add_link"));
1314 $form->addCommandButton(
"searchWikiLink",
$lng->txt(
"search"));
1317 $tp =
new ilTextInputGUI($this->lng->txt(
"wiki_target_page"),
"target_page");
1319 $tp->setRequired(
true);
1320 $tp->setInfo(
"...");
1321 $tp->setDataSource(
$ilCtrl->getLinkTarget($this,
"insertWikiLinkAC",
"",
true));
1322 $form->addItem($tp);
1325 $lt =
new ilTextInputGUI($this->lng->txt(
"wiki_link_text"),
"link_text");
1327 $form->addItem($lt);
1342 $term =
$_GET[
"term"];
1347 $entry->value = $term;
1348 $entry->label = $term;
1356 if (
$result[0]->value == $r) {
1368 include_once
'./Services/JSON/classes/class.ilJsonUtil.php';
1380 $lng->loadLanguageModule(
"wiki");
1382 $tpl =
new ilTemplate(
"tpl.wiki_ac_search_result.html",
true,
true,
"Modules/Wiki");
1383 $term = trim(
$_GET[
"term"]);
1388 foreach ($pages as $page) {
1397 foreach ($found as
$f) {
1398 $tpl->setCurrentBlock(
"item");
1399 $tpl->setVariable(
"WIKI_TITLE", $f[
"title"]);
1400 $tpl->parseCurrentBlock();
1403 if (count($pages) == 0) {
1404 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term,
$lng->txt(
"wiki_no_page_found")));
1405 } elseif ($term ==
'') {
1406 $tpl->setVariable(
"INFOTEXT",
$lng->txt(
"wiki_no_search_term"), $term);
1408 $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term,
$lng->txt(
"wiki_pages_found")));
1411 $tpl->setVariable(
"TXT_BACK",
$lng->txt(
"back"));
1428 include_once(
"./Modules/Exercise/AssignmentTypes/classes/class.ilExAssignmentTypes.php");
1429 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
1432 $ass_id = (int)
$_GET[
"ass"];
1433 $wiki_ass->submitWiki($ass_id, $this->
user->getId(), $this->
getWikiRefId());
1441 ilUtil::sendSuccess(
$lng->txt(
"wiki_finalized"),
true);
1442 $ilCtrl->redirect($this,
"preview");
1449 $ass_id = (int)
$_GET[
"ass"];
1452 $submitted = $submission->
getFiles();
1453 if (count($submitted) > 0) {
1454 $submitted = array_pop($submitted);
1458 $ass->getTitle() .
" (Team " . $submission->getTeam()->getId() .
").zip";
static renderSideBlock($a_wpg_id, $a_wiki_ref_id, $a_wp=null)
Side column.
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static _lookupName($a_user_id)
lookup user name
finalizeAssignment()
Finalize and submit blog to exercise.
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.
static getInstance()
Get instance.
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.
if(!array_key_exists('StateId', $_REQUEST)) $id
static hasOptOut($obj_id)
Is opt out (disable notification) allowed?
TableGUI class for wiki pages table.
static setUseRelativeDates($a_status)
set use relative dates
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)
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
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 useRelativeDates()
check if relative dates are used
static getPagesForSearch($a_wiki_id, $a_term)
Get pages for search.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
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)
catch(Exception $e) $message
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 getInstance()
Get instance.
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.
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
afterDeadlineStrict($a_include_personal=true)
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()
Exercise submission //TODO: This class has to much static methods related to delivered "files"...
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.
getFiles(array $a_file_ids=null, $a_only_valid=false, $a_min_timestamp=null)
Get submission items (not only files)
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.
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
setOutputMode($a_mode=IL_PAGE_PRESENTATION)
Set Output Mode.
Confirmation screen class.
executeCommand()
execute command