4include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
    5include_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();
 
   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":
 
  206                $ilCtrl->forwardCommand($form);
 
  211                if (strtolower($ilCtrl->getNextClass()) == 
"ilpageeditorgui") {
 
  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)
 
  272        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  274        $page_gui = 
new ilWikiPageGUI($id, $a_old_nr, $a_wiki_ref_id);
 
  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")
 
  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();
 
  409        if ($ilCtrl->getNextClass() != 
"ilnotegui") {
 
  414            "tpl.wiki_page_view_main_column.html",
 
  420        $callback = array($this, 
"observeNoteAction");
 
  425            $may_delete = (
$ilSetting->get(
"comments_del_tutor", 1) &&
 
  426                $ilAccess->checkAccess(
"write", 
"", 
$_GET[
"ref_id"]));
 
  441        $wtpl->setVariable(
"PAGE", $this->
showPage());
 
  443        $tpl->setLoginTargetPar(
"wiki_" . 
$_GET[
"ref_id"] . $append);
 
  446        include_once(
"./Services/User/classes/class.ilUserUtil.php");
 
  449            $lng->txt(
"wiki_last_edited") . 
": " .
 
  457                $ilCtrl->getLinkTarget($this, 
"preview")
 
  461        $tpl->setLoginTargetPar(
"wiki_" . 
$_GET[
"ref_id"] . $append);
 
  464        if (
$_GET[
"srcstring"] != 
"") {
 
  465            include_once 
'./Services/Search/classes/class.ilUserSearchCache.php';
 
  468            $search_string = $cache->getQuery();
 
  471            if (is_array($search_string)) {
 
  472                $search_string = $search_string[
"lom_content"];
 
  475            include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
 
  476            include_once(
"./Services/Search/classes/class.ilQueryParser.php");
 
  480            $words = $p->getQuotedWords();
 
  481            if (is_array($words)) {
 
  482                foreach ($words as $w) {
 
  486            $this->fill_on_load_code = 
true;
 
  513        return parent::showPage();
 
  523        require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
 
  531        include_once 
"./Modules/Wiki/classes/class.ilWikiStat.php";
 
  543        include_once(
"./Modules/Wiki/classes/class.ilWikiUtil.php");
 
  555        $ilCtrl->setParameterByClass(
"ilobjwikigui", 
"from_page", 
$_GET[
"from_page"]);
 
  560            include_once(
"./Services/Object/classes/class.ilObjectMetaDataGUI.php");
 
  562            $md = $mdgui->getKeyValueList();
 
  564                $output = str_replace(
"<!--COPage-PageTop-->", 
"<p>" . $md . 
"</p>", $output);
 
  579        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
  590        $tpl->setContent($table_gui->getHTML());
 
  599        parent::getTabs($a_activate);
 
  601        if ($ilAccess->checkAccess(
"statistics_read", 
"", 
$_GET[
"ref_id"])) {
 
  604                $this->ctrl->getLinkTargetByClass(
 
  605                    array(
"ilwikipagegui", 
"ilwikistatgui"),
 
  613        $ilCtrl->setParameterByClass(
 
  624            "wiki_what_links_here",
 
  625            $this->ctrl->getLinkTargetByClass(
 
  636            $this->ctrl->getLinkTargetByClass(
 
  654        include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
 
  656            include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  658            $confirmation_gui->setFormAction($ilCtrl->getFormAction($this));
 
  659            $confirmation_gui->setHeaderText(
$lng->txt(
"wiki_page_deletion_confirmation"));
 
  660            $confirmation_gui->setCancel(
$lng->txt(
"cancel"), 
"cancelWikiPageDeletion");
 
  661            $confirmation_gui->setConfirm(
$lng->txt(
"delete"), 
"confirmWikiPageDeletion");
 
  664                "tpl.wiki_page_deletion_confirmation.html",
 
  670            $dtpl->setVariable(
"PAGE_TITLE", $this->
getWikiPage()->getTitle());
 
  673            $dtpl->setVariable(
"TXT_OTHER_PAGES", 
$lng->txt(
"wiki_other_pages_linking"));
 
  678            if (count($pages) > 0) {
 
  679                foreach ($pages as $page) {
 
  680                    $dtpl->setCurrentBlock(
"lpage");
 
  681                    $dtpl->setVariable(
"TXT_LINKING_PAGE", $page[
"title"]);
 
  682                    $dtpl->parseCurrentBlock();
 
  685                $dtpl->setCurrentBlock(
"lpage");
 
  686                $dtpl->setVariable(
"TXT_LINKING_PAGE", 
"-");
 
  687                $dtpl->parseCurrentBlock();
 
  691            $dtpl->setVariable(
"TXT_CONTRIBUTORS", 
$lng->txt(
"wiki_contributors"));
 
  693            foreach ($contributors as $contributor) {
 
  694                $dtpl->setCurrentBlock(
"contributor");
 
  697                    $contributor[
"lastname"] . 
", " . $contributor[
"firstname"]
 
  699                $dtpl->parseCurrentBlock();
 
  703            include_once(
"./Services/Notes/classes/class.ilNote.php");
 
  710                "TXT_NUMBER_USERS_NOTES_OR_COMMENTS",
 
  711                $lng->txt(
"wiki_number_users_notes_or_comments")
 
  713            $dtpl->setVariable(
"TXT_NR_NOTES_COMMENTS", $cnt_note_users);
 
  715            $confirmation_gui->addItem(
"", 
"", $dtpl->get());
 
  717            $tpl->setContent($confirmation_gui->getHTML());
 
  729        $ilCtrl->redirect($this, 
"preview");
 
  742        include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
 
  746            ilUtil::sendSuccess(
$lng->txt(
"wiki_page_deleted"), 
true);
 
  749        $ilCtrl->redirectByClass(
"ilobjwikigui", 
"allPages");
 
  777        $tpl->setContent($this->form->getHTML());
 
  790        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  794        $this->form->setPreventDoubleSubmission(
false);
 
  799        $radg->setValue(
"page");
 
  801        $radg->addOption($op1);
 
  803                . 
" (" . 
$lng->txt(
"wiki_pages") . 
": " . count($pages) . 
")", 
"wiki");
 
  804        $radg->addOption($op2);
 
  806        $radg->addOption($op3);
 
  808        include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
 
  810        $op3->addSubItem($nl);
 
  812        foreach ($pages as $p) {
 
  820                $lng->txt(
"wiki_page")
 
  824        $this->form->addItem($radg);
 
  826        $this->form->addCommandButton(
"printViewOrder", 
$lng->txt(
"wiki_show_print_view"));
 
  827        $this->form->addCommandButton(
"pdfExportOrder", 
$lng->txt(
"wiki_show_pdf_export"));
 
  831        $this->form->setTitle(
$lng->txt(
"cont_print_selection"));
 
  832        $this->form->setFormAction($ilCtrl->getFormAction($this, 
"printViewOrder"));
 
  849        $pg_ids = $all_pages = array();
 
  852        if (!is_array(
$_POST[
"wordr"])) {
 
  853            switch (trim(
$_POST[
"sel_type"])) {
 
  855                    include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  857                    foreach ($all_pages as $p) {
 
  858                        $pg_ids[] = $p[
"id"];
 
  863                    if (is_array(
$_POST[
"obj_id"])) {
 
  864                        $pg_ids = 
$_POST[
"obj_id"];
 
  866                        $pg_ids[] = 
$_GET[
"wpg_id"];
 
  868                    if (
sizeof($pg_ids) > 1) {
 
  871                        $_GET[
"wpg_id"] = array_pop($pg_ids);
 
  879                    $this->ctrl->setParameterByClass(
"ilObjWikiGUI", 
"wpg_id", 
$_GET[
"wpg_id"]);
 
  881                        $this->ctrl->redirectByClass(
"ilObjWikiGUI", 
"pdfExport");
 
  883                        $this->ctrl->redirectByClass(
"ilObjWikiGUI", 
"printView");
 
  889                $this->ctrl->setParameter($this, 
"pexp", 1);
 
  894            $a_pdf_export = (bool) 
$_GET[
"pexp"];
 
  897            $pg_ids = array_keys(
$_POST[
"wordr"]);
 
  900        $ilTabs->clearTargets();
 
  901        $ilTabs->setBackTarget(
 
  902            $this->lng->txt(
"back"),
 
  903            $this->ctrl->getLinkTarget($this, 
"preview")
 
  906        if (!
sizeof($all_pages)) {
 
  907            include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  911        include_once 
"Modules/Wiki/classes/class.ilWikiExportOrderTableGUI.php";
 
  913        $this->tpl->setContent($tbl->getHTML());
 
  931        include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
 
  936            ilUtil::sendSuccess(
$lng->txt(
"wiki_page_blocked"), 
true);
 
  939        $ilCtrl->redirect($this, 
"preview");
 
  952        include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
 
  957            ilUtil::sendSuccess(
$lng->txt(
"wiki_page_unblocked"), 
true);
 
  960        $ilCtrl->redirect($this, 
"preview");
 
  978        if (($ilAccess->checkAccess(
"edit_content", 
"", 
$_GET[
"ref_id"]) && !$this->getPageObject()->getBlocked())
 
  979            || $ilAccess->checkAccess(
"write", 
"", 
$_GET[
"ref_id"])) {
 
  981            $tpl->setContent($this->form->getHTML());
 
  995        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1000        $ti->setMaxLength(200);
 
 1003        $ti->setRequired(
true);
 
 1004        $this->form->addItem($ti);
 
 1006        $this->form->addCommandButton(
"renamePage", 
$lng->txt(
"wiki_rename"));
 
 1007        $this->form->addCommandButton(
"preview", 
$lng->txt(
"cancel"));
 
 1009        $this->form->setTitle(
$lng->txt(
"wiki_rename_page"));
 
 1010        $this->form->setFormAction($ilCtrl->getFormAction($this));
 
 1024        if ($this->form->checkInput()) {
 
 1025            if (($ilAccess->checkAccess(
"edit_content", 
"", 
$_GET[
"ref_id"]) && !$this->getPageObject()->getBlocked())
 
 1026                || $ilAccess->checkAccess(
"write", 
"", 
$_GET[
"ref_id"])) {
 
 1027                $new_name = $this->form->getInput(
"new_page_name");
 
 1040                    ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1041                    $ilCtrl->redirect($this, 
"preview");
 
 1046        $this->form->setValuesByPost();
 
 1047        $tpl->setContent($this->form->getHtml());
 
 1062        ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1063        $ilCtrl->redirect($this, 
"preview");
 
 1074        ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1075        $ilCtrl->redirect($this, 
"preview");
 
 1082        include_once 
"Services/Notes/classes/class.ilNote.php";
 
 1083        $note = 
new ilNote($a_note_id);
 
 1084        $note = $note->getText();
 
 1086        include_once 
"./Services/Notification/classes/class.ilNotification.php";
 
 1092        include_once 
"./Modules/Wiki/classes/class.ilWikiStat.php";
 
 1108        include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
 1110        $form->setFormAction($ilCtrl->getFormAction($this, 
"updateAdvancedMetaData"));
 
 1113        $form->setTitle(
$lng->txt(
"wiki_advmd_block_title") . 
": " . $page->getTitle());
 
 1115        include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
 
 1117        $this->record_gui->setPropertyForm($form);
 
 1118        $this->record_gui->parse();
 
 1120        $form->addCommandButton(
"updateAdvancedMetaData", 
$lng->txt(
"save"));
 
 1121        $form->addCommandButton(
"preview", 
$lng->txt(
"cancel"));
 
 1134        if (!$ilAccess->checkAccess(
"write", 
"", $this->wiki_ref_id) &&
 
 1135            !$ilAccess->checkAccess(
"edit_page_meta", 
"", $this->wiki_ref_id)) {
 
 1140        $ilTabs->clearTargets();
 
 1141        $ilTabs->setBackTarget(
 
 1143            $ilCtrl->getLinkTarget($this, 
"preview")
 
 1150        $tpl->setContent($a_form->getHTML());
 
 1159        if (!$ilAccess->checkAccess(
"write", 
"", $this->wiki_ref_id) &&
 
 1160            !$ilAccess->checkAccess(
"edit_page_meta", 
"", $this->wiki_ref_id)) {
 
 1167        $form->checkInput();
 
 1168        if (!$this->record_gui->importEditFormPostValues()) {
 
 1173        if ($this->record_gui->writeEditForm()) {
 
 1174            ilUtil::sendSuccess(
$lng->txt(
"settings_saved"), 
true);
 
 1176        $ilCtrl->redirect($this, 
"preview");
 
 1185        if (!$ilAccess->checkAccess(
"write", 
"", $this->wiki_ref_id) &&
 
 1186            !$ilAccess->checkAccess(
"edit_page_meta", 
"", $this->wiki_ref_id)) {
 
 1193        ilUtil::sendSuccess(
$lng->txt(
"settings_saved"), 
true);
 
 1194        $ilCtrl->redirect($this, 
"preview");
 
 1203        if (!$ilAccess->checkAccess(
"write", 
"", $this->wiki_ref_id) &&
 
 1204            !$ilAccess->checkAccess(
"edit_page_meta", 
"", $this->wiki_ref_id)) {
 
 1211        ilUtil::sendSuccess(
$lng->txt(
"settings_saved"), 
true);
 
 1212        $ilCtrl->redirect($this, 
"preview");
 
 1228        return parent::edit();
 
 1242        $a_tpl->addJavascript(
"./Modules/Wiki/js/WikiEdit.js");
 
 1243        $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.page_exists = '" . 
$lng->txt(
"wiki_page_exists") . 
"';");
 
 1244        $a_tpl->
addOnLoadCode(
"il.Wiki.Edit.txt.new_page = '" . 
$lng->txt(
"wiki_new_page") . 
"';");
 
 1256        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1258        $form->addCommandButton(
"addWikiLink", 
$lng->txt(
"wiki_add_link"));
 
 1259        $form->addCommandButton(
"searchWikiLink", 
$lng->txt(
"search"));
 
 1262        $tp = 
new ilTextInputGUI($this->lng->txt(
"wiki_target_page"), 
"target_page");
 
 1264        $tp->setRequired(
true);
 
 1265        $tp->setInfo(
"...");
 
 1266        $tp->setDataSource($ilCtrl->getLinkTarget($this, 
"insertWikiLinkAC", 
"", 
true));
 
 1267        $form->addItem($tp);
 
 1270        $lt = 
new ilTextInputGUI($this->lng->txt(
"wiki_link_text"), 
"link_text");
 
 1272        $form->addItem($lt);
 
 1276        echo $form->getHTML();
 
 1287        $term = 
$_GET[
"term"];
 
 1292            $entry->value = $term;
 
 1293            $entry->label = $term;
 
 1300        foreach (
$res as $r) {
 
 1301            if (
$result[0]->value == $r) {
 
 1313        include_once 
'./Services/JSON/classes/class.ilJsonUtil.php';
 
 1325        $lng->loadLanguageModule(
"wiki");
 
 1327        $tpl = 
new ilTemplate(
"tpl.wiki_ac_search_result.html", 
true, 
true, 
"Modules/Wiki");
 
 1328        $term = trim(
$_GET[
"term"]);
 
 1333        foreach ($pages as $page) {
 
 1342        foreach ($found as 
$f) {
 
 1343            $tpl->setCurrentBlock(
"item");
 
 1344            $tpl->setVariable(
"WIKI_TITLE", 
$f[
"title"]);
 
 1345            $tpl->parseCurrentBlock();
 
 1348        if (count($pages) == 0) {
 
 1349            $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term, 
$lng->txt(
"wiki_no_page_found")));
 
 1350        } elseif ($term == 
'') {
 
 1351            $tpl->setVariable(
"INFOTEXT", 
$lng->txt(
"wiki_no_search_term"), $term);
 
 1353            $tpl->setVariable(
"INFOTEXT", str_replace(
"$1", $term, 
$lng->txt(
"wiki_pages_found")));
 
 1356        $tpl->setVariable(
"TXT_BACK", 
$lng->txt(
"back"));
 
 1373        include_once(
"./Modules/Exercise/AssignmentTypes/classes/class.ilExAssignmentTypes.php");
 
 1374        include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
 
 1377        $ass_id = (int) 
$_GET[
"ass"];
 
 1378        $wiki_ass->submitWiki($ass_id, $this->
user->getId(), $this->
getWikiRefId());
 
 1386        ilUtil::sendSuccess(
$lng->txt(
"wiki_finalized"), 
true);
 
 1387        $ilCtrl->redirectByClass(
"ilObjWikiGUI", 
"gotoStartPage");
 
 1394        $ass_id = (int) 
$_GET[
"ass"];
 
 1397        $submitted = $submission->getFiles();
 
 1398        if (count($submitted) > 0) {
 
 1399            $submitted = array_pop($submitted);
 
 1403                $ass->getTitle() . 
" (Team " . $submission->getTeam()->getId() . 
").zip";
 
An exception for terminatinating execution or to throw for unit testing.
const IL_WIKI_WHAT_LINKS_HERE
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.
Class ilCommonActionDispatcherGUI.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Confirmation screen class.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
static getInstance()
Get instance.
Exercise submission //TODO: This class has to much static methods related to delivered "files".
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 setNotification($type, $user_id, $id, $status=true)
Set notification status for object and user.
static hasNotification($type, $user_id, $id)
Check notification status for object and user.
static hasOptOut($obj_id)
Is opt out (disable notification) allowed?
static getSyntaxStylePath()
get syntax style path
static _lookupName($a_user_id)
lookup user name
static renderSideBlock($a_wpg_id, $a_wiki_ref_id, $a_wp=null)
Side column.
static _lookupPublicNotes($a_wiki_id)
Lookup whether public notes are activated.
static _lookupRatingOverall($a_wiki_id)
Lookup whether rating is activated for whole object.
static _performSearch($a_wiki_id, $a_searchterm)
Search in Wiki.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
setPresentationTitle($a_title="")
setOutputMode($a_mode=self::PRESENTATION)
Set Output Mode.
showEditToolbar()
Show edit toolbar.
setRenderPageContainer($a_val)
Set render page container.
getAbstractOnly()
Get abstract only.
getPageObject()
Get Page Object.
setTemplateOutput($a_output=true)
getNotesHTML($a_content_object=null, $a_enable_private_notes=true, $a_enable_public_notes=false, $a_enable_notes_deletion=false, $a_callback=null, $export=false)
Get html for public and/or private notes.
setPageObject(ilPageObject $a_pg_obj)
Set Page Object.
This class represents an option in a radio group.
special template class to simplify handling of ITX/PEAR
static highlight($a_dom_node_id, $a_text, $a_tpl=null)
Searches for all occurences of a text (case-insensitive) and highlights it.
This class represents a text property in a property form.
static _getInstance($a_usr_id)
Get singleton instance.
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 sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
TableGUI class for ordering pages to be printed/exported.
Class ilWikiPage GUI class.
initAdvancedMetaDataForm()
deactivateWikiPageRating()
postOutputProcessing($a_output)
Finalizing output processing.
setScreenIdComponent()
Set screen id component.
observeNoteAction($a_wiki_id, $a_page_id, $a_type, $a_action, $a_note_id)
static initEditingJS(ilGlobalTemplateInterface $a_tpl)
Init wiki editing js.
confirmWikiPageDeletion()
Delete the wiki page.
activateWikiPageRating()
Rating /.
showPage()
display content of page
cancelWikiPageDeletion()
Cancel wiki page deletion.
printViewSelection()
Print view selection.
initPrintViewSelectionForm()
Init print view selection form.
deleteWikiPageConfirmationScreen()
Delete wiki page confirmation screen.
insertWikiLink()
Returns form to insert a wiki link per ajax.
editAdvancedMetaData(ilPropertyFormGUI $a_form=null)
executeCommand()
execute command
static getGUIForTitle($a_wiki_id, $a_title, $a_old_nr=0, $a_wiki_ref_id=0)
Get wiki page gui for id and title.
finalizeAssignment()
Finalize and submit blog to exercise.
updateStatsRating($a_wiki_id, $a_wiki_type, $a_page_id, $a_page_type)
unblockWikiPage()
Unblock.
printViewOrderList($a_pdf_export=false)
insertWikiLinkAC()
Auto complete for insert wiki link.
__construct($a_id=0, $a_old_nr=0, $a_wiki_ref_id=0)
Constructor.
initRenameForm()
Init renaming form.
searchWikiLinkAC()
Search wiki link list.
setWikiPage($a_wikipage)
Set Wiki Page Object.
whatLinksHere()
All links to a specific page.
getWikiPage()
Get Wiki Page Object.
renameWikiPage()
Rename wiki page form.
addHeaderAction($a_redraw=false)
getTabs($a_activate="")
adds tabs to tab gui object
static getPagesForSearch($a_wiki_id, $a_term)
Get pages for search.
static getPageIdForTitle($a_wiki_id, $a_title)
Get wiki page object for id and title.
static _wikiPageExists($a_wiki_id, $a_title)
Check whether page exists for wiki or not.
static getAllWikiPages($a_wiki_id)
Get all pages of wiki.
static getWikiPageContributors($a_page_id)
Get all contributors of wiki.
static getLinksToPage($a_wiki_id, $a_page_id)
Get links to a page.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static _getPageIdForWikiTitle($a_wiki_id, $a_title)
Checks whether a page with given title exists.
TableGUI class for wiki pages table.
static check($a_perm, $a_ref_id, $a_cmd="")
Check permission.
Wiki statistics GUI class.
static handleEvent($a_event, ilWikiPage $a_page_obj, $a_user_id=null, array $a_additional_data=null)
Handle wiki page event.
static sendNotification($a_action, $a_type, $a_wiki_ref_id, $a_page_id, $a_comment=null)
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static makeDbTitle($a_par)
Handle page GET parameter.
static replaceInternalLinks($s, $a_wiki_id, $a_offline=false)
This one is based on Mediawiki Parser->replaceInternalLinks since we display images in another way,...
addOnLoadCode($a_code, $a_batch=2)
Add on load code.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
foreach($_POST as $key=> $value) $res