63    public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = 
true)
 
   67        $this->ctrl = 
$DIC->ctrl();
 
   68        $this->lng = 
$DIC->language();
 
   69        $this->
user = $DIC->user();
 
   70        $this->tpl = 
$DIC[
"tpl"];
 
   71        $this->tabs = 
$DIC->tabs();
 
   72        $this->access = 
$DIC->access();
 
   73        $this->
error = $DIC[
"ilErr"];
 
   75        $this->
help = $DIC[
"ilHelp"];
 
   76        $this->locator = 
$DIC[
"ilLocator"];
 
   77        $this->toolbar = 
$DIC->toolbar();
 
   78        $ilCtrl = 
$DIC->ctrl();
 
   85        $this->tool_context = 
$DIC->globalScreen()->tool()->context();
 
   86        $this->
ui = $DIC->ui();
 
   89        $lng->loadLanguageModule(
"obj");
 
   90        $lng->loadLanguageModule(
"wiki");
 
   92        if (
$_GET[
"page"] != 
"") {
 
   96        $this->req_with_comments = (bool) 
$_GET[
"with_comments"];
 
  107        $next_class = $this->ctrl->getNextClass($this);
 
  108        $cmd = $this->ctrl->getCmd();
 
  116        if ($cmd == 
"printView" || $cmd == 
"pdfExport") {
 
  120        switch ($next_class) {
 
  121            case "ilinfoscreengui":
 
  127            case 'ilpermissiongui':
 
  129                $ilTabs->activateTab(
"perm_settings");
 
  130                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
  132                $ret = $this->ctrl->forwardCommand($perm_gui);
 
  135            case 'ilsettingspermissiongui':
 
  138                $ilTabs->activateTab(
"settings");
 
  140                include_once(
"Services/AccessControl/classes/class.ilSettingsPermissionGUI.php");
 
  142                $perm_gui->setPermissions(array(
"edit_wiki_navigation", 
"delete_wiki_pages", 
"activate_wiki_protection",
 
  143                    "wiki_html_export"));
 
  144                $perm_gui->setRoleRequiredPermissions(array(
"edit_content"));
 
  145                $perm_gui->setRoleProhibitedPermissions(array(
"write"));
 
  146                $ret = $this->ctrl->forwardCommand($perm_gui);
 
  149            case 'ilwikipagegui':
 
  151                include_once(
"./Modules/Wiki/classes/class.ilWikiPageGUI.php");
 
  153                    $this->object->getId(),
 
  156                    $this->object->getRefId()
 
  158                include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
  160                    $this->object->getStyleSheetId(),
 
  164                if (!$ilAccess->checkAccess(
"write", 
"", $this->object->getRefId()) &&
 
  166                        !$ilAccess->checkAccess(
"edit_content", 
"", $this->object->getRefId()) ||
 
  167                        $wpage_gui->getPageObject()->getBlocked()
 
  169                    $wpage_gui->setEnableEditing(
false);
 
  175                if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  176                    $wpage_gui->activateMetaDataEditor($this->
object, 
"wpg", $wpage_gui->getId());
 
  179                $ret = $this->ctrl->forwardCommand($wpage_gui);
 
  185            case 'ilobjectcopygui':
 
  186                include_once 
'./Services/Object/classes/class.ilObjectCopyGUI.php';
 
  188                $cp->setType(
'wiki');
 
  189                $this->ctrl->forwardCommand($cp);
 
  192            case 'ilpublicuserprofilegui':
 
  193                require_once 
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
 
  195                $ret = $this->ctrl->forwardCommand($profile_gui);
 
  199            case "ilobjstylesheetgui":
 
  200                include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheetGUI.php");
 
  201                $this->ctrl->setReturn($this, 
"editStyleProperties");
 
  202                $style_gui = 
new ilObjStyleSheetGUI(
"", $this->object->getStyleSheetId(), 
false, 
false);
 
  203                $style_gui->omitLocator();
 
  204                if ($cmd == 
"create" || 
$_GET[
"new_type"] == 
"sty") {
 
  205                    $style_gui->setCreationMode(
true);
 
  208                if ($cmd == 
"confirmedDelete") {
 
  209                    $this->
object->setStyleSheetId(0);
 
  210                    $this->
object->update();
 
  213                $ret = $this->ctrl->forwardCommand($style_gui);
 
  215                if ($cmd == 
"save" || $cmd == 
"copyStyle" || $cmd == 
"importStyle") {
 
  217                    $this->
object->setStyleSheetId($style_id);
 
  218                    $this->
object->update();
 
  219                    $this->ctrl->redirectByClass(
"ilobjstylesheetgui", 
"edit");
 
  226                $ilTabs->activateTab(
"export");
 
  227                include_once(
"./Services/Export/classes/class.ilExportGUI.php");
 
  229                $exp_gui->addFormat(
"xml");
 
  230                $exp_gui->addFormat(
"html", 
"", $this, 
"exportHTML");
 
  231                if ($this->object->isCommentsExportPossible()) {
 
  232                    $exp_gui->addFormat(
"html_comments", 
"HTML (" . $this->lng->txt(
"wiki_incl_comments") . 
")", $this, 
"exportHTML");
 
  234                $ret = $this->ctrl->forwardCommand($exp_gui);
 
  238            case "ilcommonactiondispatchergui":
 
  239                include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
 
  241                $this->ctrl->forwardCommand($gui);
 
  248                $ilTabs->activateTab(
"settings");
 
  250                include_once(
"Services/Rating/classes/class.ilRatingGUI.php");
 
  252                $gui->setObject($this->object->getId(), $this->object->getType());
 
  253                $gui->setExportCallback(array($this, 
"getSubObjectTitle"), $this->lng->txt(
"page"));
 
  254                $this->ctrl->forwardCommand($gui);
 
  257            case "ilwikistatgui":
 
  261                $ilTabs->activateTab(
"statistics");
 
  263                include_once 
"Modules/Wiki/classes/class.ilWikiStatGUI.php";
 
  265                $this->ctrl->forwardCommand($gui);
 
  268            case "ilwikipagetemplategui":
 
  271                $ilTabs->activateTab(
"settings");
 
  273                include_once(
"./Modules/Wiki/classes/class.ilWikiPageTemplateGUI.php");
 
  275                $this->ctrl->forwardCommand($wptgui);
 
  278            case 'ilobjectmetadatagui':
 
  281                $ilTabs->activateTab(
"advmd");
 
  282                include_once 
'Services/Object/classes/class.ilObjectMetaDataGUI.php';
 
  284                $this->ctrl->forwardCommand($md_gui);
 
  287            case 'ilrepositoryobjectsearchgui':
 
  290                $ilTabs->setTabActive(
"wiki_search_results");
 
  291                $ilCtrl->setReturn($this, 
'view');
 
  292                include_once 
'./Services/Search/classes/class.ilRepositoryObjectSearchGUI.php';
 
  294                    $this->object->getRefId(),
 
  298                $ilCtrl->forwardCommand($search_gui);
 
  301            case 'ilobjnotificationsettingsgui':
 
  303                $ilTabs->activateTab(
"settings");
 
  305                include_once(
"./Services/Notification/classes/class.ilObjNotificationSettingsGUI.php");
 
  307                $this->ctrl->forwardCommand($gui);
 
  316                if ($cmd != 
"cancelObject") {
 
  317                    if ($cmd != 
"infoScreenObject") {
 
  318                        if (!in_array($cmd, array(
"createObject", 
"saveObject", 
"importFileObject"))) {
 
  339        if (is_object($this->
object)) {
 
  359        $forms = array(self::CFORM_NEW => $this->form_gui,
 
  377            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
  381        if ($this->form_gui->checkInput()) {
 
  383                $short_item = $this->form_gui->getItemByPostVar(
"shorttitle");
 
  384                $short_item->setAlert(
$lng->txt(
"wiki_short_title_already_in_use"));
 
  387                $_POST[
"title"] = $this->form_gui->getInput(
"title");
 
  388                $_POST[
"desc"] = $this->form_gui->getInput(
"description");
 
  389                return parent::saveObject();
 
  393        $this->form_gui->setValuesByPost();
 
  394        $tpl->setContent($this->form_gui->getHtml());
 
  405        $newObj->
setTitle($this->form_gui->getInput(
"title"));
 
  406        $newObj->
setDescription($this->form_gui->getInput(
"description"));
 
  407        $newObj->setIntroduction($this->form_gui->getInput(
"intro"));
 
  408        $newObj->setStartPage($this->form_gui->getInput(
"startpage"));
 
  409        $newObj->setShortTitle($this->form_gui->getInput(
"shorttitle"));
 
  410        $newObj->setRating($this->form_gui->getInput(
"rating"));
 
  412        $newObj->setRatingForNewPages($this->form_gui->getInput(
"rating_new"));
 
  413        $newObj->setRatingCategories($this->form_gui->getInput(
"rating_ext"));
 
  415        $newObj->setRatingOverall($this->form_gui->getInput(
"rating_overall"));
 
  416        $newObj->setPageToc($this->form_gui->getInput(
"page_toc"));
 
  421            $newObj->setPublicNotes($this->form_gui->getInput(
"public_notes"));
 
  423        $newObj->setOnline($this->form_gui->getInput(
"online"));
 
  427        ilUtil::sendSuccess($this->lng->txt(
"object_added"), 
true);
 
  439        $this->ctrl->setCmd(
"showSummary");
 
  440        $this->ctrl->setCmdClass(
"ilinfoscreengui");
 
  455        $ilTabs->activateTab(
"info_short");
 
  457        if (!$ilAccess->checkAccess(
"visible", 
"", $this->object->getRefId())) {
 
  458            $ilErr->raiseError($this->lng->txt(
"msg_no_perm_read"), 
$ilErr->MESSAGE);
 
  461        include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
 
  463        $info->enablePrivateNotes();
 
  464        if (trim($this->object->getIntroduction()) != 
"") {
 
  465            $info->addSection(
$lng->txt(
"wiki_introduction"));
 
  466            $info->addProperty(
"", nl2br($this->object->getIntroduction()));
 
  470        include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
 
  471        include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
 
  476            $info->addSection($this->lng->txt(
"wiki_feedback_from_tutor"));
 
  477            if ($lpcomment != 
"") {
 
  479                    $this->lng->txt(
"wiki_comment"),
 
  485                    $this->lng->txt(
"wiki_mark"),
 
  492                    $this->lng->txt(
"status"),
 
  493                    $this->lng->txt(
"wiki_passed")
 
  498                    $this->lng->txt(
"status"),
 
  499                    $this->lng->txt(
"wiki_failed")
 
  512        if ($ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
  517        $this->lng->loadLanguageModule(
"meta");
 
  518        $this->lng->loadLanguageModule(
"wiki");
 
  525        $this->ctrl->forwardCommand($info);
 
  527        if ($ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
  550        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  551        $ilCtrl->setParameter(
 
  558            "wiki_what_links_here",
 
  559            $this->ctrl->getLinkTargetByClass(
 
  567            $this->ctrl->getLinkTargetByClass(
 
  583        $ilTabs->activateTab(
"wiki_pages");
 
  585        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  586        $ilCtrl->setParameter(
 
  590                $this->object->getId(),
 
  595        $ilTabs->addSubTabTarget(
 
  597            $this->ctrl->getLinkTarget($this, 
"allPages"),
 
  600        $ilTabs->addSubTabTarget(
 
  601            "wiki_recent_changes",
 
  602            $this->ctrl->getLinkTarget($this, 
"recentChanges"),
 
  605        $ilTabs->addSubTabTarget(
 
  607            $this->ctrl->getLinkTarget($this, 
"newPages"),
 
  610        $ilTabs->addSubTabTarget(
 
  611            "wiki_popular_pages",
 
  612            $this->ctrl->getLinkTarget($this, 
"popularPages"),
 
  615        $ilTabs->addSubTabTarget(
 
  616            "wiki_orphaned_pages",
 
  617            $this->ctrl->getLinkTarget($this, 
"orphanedPages"),
 
  634        $ilHelp->setScreenIdComponent(
"wiki");
 
  637        if (in_array($ilCtrl->getCmdClass(), array(
"", 
"ilobjwikigui",
 
  638            "ilinfoscreengui", 
"ilpermissiongui", 
"ilexportgui", 
"ilratingcategorygui", 
"ilobjnotificationsettingsgui", 
"iltaxmdgui",
 
  639            "ilwikistatgui", 
"ilwikipagetemplategui", 
"iladvancedmdsettingsgui", 
"ilsettingspermissiongui", 
'ilrepositoryobjectsearchgui' 
  640            )) || (in_array($ilCtrl->getNextClass(), array(
"ilpermissiongui")))) {
 
  641            if (
$_GET[
"page"] != 
"") {
 
  642                $this->tabs_gui->setBackTarget(
 
  643                    $lng->txt(
"wiki_last_visited_page"),
 
  652            if ($ilAccess->checkAccess(
'read', 
"", $this->object->getRefId())) {
 
  653                $this->tabs_gui->addTab(
 
  655                    $lng->txt(
"wiki_pages"),
 
  656                    $this->ctrl->getLinkTarget($this, 
"allPages")
 
  661            if ($ilAccess->checkAccess(
'visible', 
"", $this->object->getRefId())) {
 
  662                $this->tabs_gui->addTab(
 
  664                    $lng->txt(
"info_short"),
 
  665                    $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui", 
"showSummary")
 
  670            if ($ilAccess->checkAccess(
'write', 
"", $this->object->getRefId())) {
 
  671                $this->tabs_gui->addTab(
 
  673                    $lng->txt(
"settings"),
 
  674                    $this->ctrl->getLinkTarget($this, 
"editSettings")
 
  678                include_once 
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
 
  680                $mdtab = $mdgui->getTab();
 
  682                    $this->tabs_gui->addTab(
 
  684                        $this->lng->txt(
"meta_data"),
 
  691            if ($ilAccess->checkAccess(
'write', 
"", $this->object->getRefId())) {
 
  692                $this->tabs_gui->addTab(
 
  694                    $lng->txt(
"wiki_contributors"),
 
  695                    $this->ctrl->getLinkTarget($this, 
"listContributors")
 
  700            if ($ilAccess->checkAccess(
'statistics_read', 
"", $this->object->getRefId())) {
 
  701                $this->tabs_gui->addTab(
 
  703                    $lng->txt(
"statistics"),
 
  704                    $this->ctrl->getLinkTargetByClass(
"ilWikiStatGUI", 
"initial")
 
  708            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  709                $this->tabs_gui->addTab(
 
  712                    $this->ctrl->getLinkTargetByClass(
"ilexportgui", 
"")
 
  717            if ($ilAccess->checkAccess(
'edit_permission', 
"", $this->object->getRefId())) {
 
  718                $this->tabs_gui->addTab(
 
  720                    $lng->txt(
"perm_settings"),
 
  721                    $this->ctrl->getLinkTargetByClass(
"ilpermissiongui", 
"perm")
 
  739            array(
"general_settings", 
"style", 
"imp_pages", 
"rating_categories",
 
  740            "page_templates", 
"advmd", 
"permission_settings", 
"notifications")
 
  742            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  746                    $lng->txt(
"wiki_general_settings"),
 
  747                    $ilCtrl->getLinkTarget($this, 
'editSettings')
 
  752                    "permission_settings",
 
  753                    $lng->txt(
"obj_permission_settings"),
 
  754                    $this->ctrl->getLinkTargetByClass(
"ilsettingspermissiongui", 
"")
 
  760                    $lng->txt(
"wiki_style"),
 
  761                    $ilCtrl->getLinkTarget($this, 
'editStyleProperties')
 
  765            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  769                    $lng->txt(
"wiki_navigation"),
 
  770                    $ilCtrl->getLinkTarget($this, 
'editImportantPages')
 
  774            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  778                    $lng->txt(
"wiki_page_templates"),
 
  779                    $ilCtrl->getLinkTargetByClass(
"ilwikipagetemplategui", 
"")
 
  783                if ($this->object->getRating() && $this->object->getRatingCategories()) {
 
  784                    $lng->loadLanguageModule(
"rating");
 
  787                        $lng->txt(
"rating_categories"),
 
  788                        $ilCtrl->getLinkTargetByClass(array(
'ilratinggui', 
'ilratingcategorygui'), 
'')
 
  794                    $lng->txt(
"notifications"),
 
  795                    $ilCtrl->getLinkTargetByClass(
"ilobjnotificationsettingsgui", 
'')
 
  799            $ilTabs->activateSubTab($a_active);
 
  818        include_once 
'Modules/Wiki/classes/class.ilECSWikiSettings.php';
 
  820        $ecs->addSettingsToForm($this->form_gui, 
'wiki');
 
  822        $tpl->setContent($this->form_gui->getHtml());
 
  837        $lng->loadLanguageModule(
"wiki");
 
  838        $ilTabs->activateTab(
"settings");
 
  840        require_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  845        $tit->setRequired(
true);
 
  846        $this->form_gui->addItem($tit);
 
  864        $this->form_gui->addItem($des);
 
  870        $this->form_gui->addItem($intro);
 
  873        if ($a_mode == 
"edit") {
 
  875            foreach ($pages as $p) {
 
  879            $si->setOptions($options);
 
  880            $this->form_gui->addItem(
$si);
 
  883            if ($a_mode == 
"edit") {
 
  884                $sp->setInfo(
$lng->txt(
"wiki_start_page_info"));
 
  886            $sp->setMaxLength(200);
 
  887            $sp->setRequired(
true);
 
  888            $this->form_gui->addItem($sp);
 
  893        $this->form_gui->addItem($online);
 
  898        $lng->loadLanguageModule(
'rating');
 
  900        $rate->setInfo(
$lng->txt(
'rating_activate_rating_info'));
 
  901        $this->form_gui->addItem($rate);
 
  904        $this->form_gui->addItem($rating);
 
  912        $rating->addSubItem($new);
 
  915        $rating->addSubItem($extended);
 
  921            $this->form_gui->addItem($comments);
 
  930        $page_toc->setInfo(
$lng->txt(
"wiki_page_toc_info"));
 
  931        $this->form_gui->addItem($page_toc);
 
  933        if ($a_mode == 
"edit") {
 
  935            include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php');
 
  938                $link_md->setInfo(
$lng->txt(
"wiki_link_md_values_info"));
 
  939                $this->form_gui->addItem($link_md);
 
  944            $section->setTitle($this->lng->txt(
'obj_presentation'));
 
  948            $obj_service->commonSettings()->legacyForm($this->form_gui, $this->
object)->addTileImage();
 
  953            $feat->setTitle($this->lng->txt(
'obj_features'));
 
  954            $this->form_gui->addItem($feat);
 
  956            include_once 
'./Services/Container/classes/class.ilContainer.php';
 
  957            include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
  959                $this->object->getId(),
 
  971        if ($a_mode != 
"create") {
 
  972            $this->form_gui->setTitle(
$lng->txt(
"wiki_settings"));
 
  973            $this->form_gui->addCommandButton(
"saveSettings", 
$lng->txt(
"save"));
 
  975            $this->form_gui->setTitle(
$lng->txt(
"wiki_new"));
 
  976            $this->form_gui->addCommandButton(
"save", 
$lng->txt(
"wiki_add"));
 
  977            $this->form_gui->addCommandButton(
"cancel", 
$lng->txt(
"cancel"));
 
  981        if ($a_mode == 
"create") {
 
  982            $ilCtrl->setParameter($this, 
"new_type", 
"wiki");
 
  985        $this->form_gui->setFormAction($ilCtrl->getFormAction($this, 
"saveSettings"));
 
  994        if ($a_mode == 
"create") {
 
  996            $values[
"rating_new"] = 
true;
 
 1000            $this->form_gui->setValuesByArray($values);
 
 1002            $values[
"online"] = $this->
object->getOnline();
 
 1003            $values[
"title"] = $this->
object->getTitle();
 
 1006            $values[
"shorttitle"] = $this->
object->getShortTitle();
 
 1007            $values[
"description"] = $this->
object->getLongDescription();
 
 1008            $values[
"rating_overall"] = $this->
object->getRatingOverall();
 
 1009            $values[
"rating"] = $this->
object->getRating();
 
 1011            $values[
"rating_new"] = $this->
object->getRatingForNewPages();
 
 1012            $values[
"rating_ext"] = $this->
object->getRatingCategories();
 
 1013            $values[
"public_notes"] = $this->
object->getPublicNotes();
 
 1014            $values[
"intro"] = $this->
object->getIntroduction();
 
 1016            $values[
"page_toc"] = $this->
object->getPageToc();
 
 1017            $values[
"link_md_values"] = $this->
object->getLinkMetadataValues();
 
 1020            $this->form_gui->setValuesByArray($values, 
true);
 
 1040        if ($this->form_gui->checkInput()) {
 
 1042                $this->form_gui->getInput(
"shorttitle") != $this->object->getShortTitle()) {
 
 1043                $short_item = $this->form_gui->getItemByPostVar(
"shorttitle");
 
 1044                $short_item->setAlert(
$lng->txt(
"wiki_short_title_already_in_use"));
 
 1046                $this->
object->setTitle($this->form_gui->getInput(
"title"));
 
 1047                $this->
object->setDescription($this->form_gui->getInput(
"description"));
 
 1048                $this->
object->setOnline($this->form_gui->getInput(
"online"));
 
 1050                $this->
object->setShortTitle($this->form_gui->getInput(
"shorttitle"));
 
 1051                $this->
object->setRatingOverall($this->form_gui->getInput(
"rating_overall"));
 
 1052                $this->
object->setRating($this->form_gui->getInput(
"rating"));
 
 1054                $this->
object->setRatingForNewPages($this->form_gui->getInput(
"rating_new"));
 
 1055                $this->
object->setRatingCategories($this->form_gui->getInput(
"rating_ext"));
 
 1058                    $this->
object->setPublicNotes($this->form_gui->getInput(
"public_notes"));
 
 1060                $this->
object->setIntroduction($this->form_gui->getInput(
"intro"));
 
 1062                $this->
object->setPageToc($this->form_gui->getInput(
"page_toc"));
 
 1063                $this->
object->setLinkMetadataValues($this->form_gui->getInput(
"link_md_values"));
 
 1064                $this->
object->update();
 
 1067                $obj_service->commonSettings()->legacyForm($this->form_gui, $this->
object)->saveTileImage();
 
 1070                include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
 1072                    $this->object->getId(),
 
 1080                include_once 
'Modules/Wiki/classes/class.ilECSWikiSettings.php';
 
 1082                if ($ecs->handleSettingsUpdate()) {
 
 1083                    ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
 1084                    $ilCtrl->redirect($this, 
"editSettings");
 
 1089        $this->form_gui->setValuesByPost();
 
 1090        $this->tpl->setContent($this->form_gui->getHTML());
 
 1102        $ilTabs->activateTab(
"wiki_contributors");
 
 1104        include_once(
"./Modules/Wiki/classes/class.ilWikiContributorsTableGUI.php");
 
 1109            $this->object->getId()
 
 1112        $tpl->setContent($table_gui->getHTML());
 
 1127        $users = (is_array(
$_POST[
"user_id"])
 
 1131        include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
 
 1132        include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
 
 1134        foreach ($users as $user_id) {
 
 1135            if ($user_id != 
"") {
 
 1136                $marks_obj = 
new ilLPMarks($this->object->getId(), $user_id);
 
 1141                if ($marks_obj->getMark() != $new_mark ||
 
 1142                    $marks_obj->getComment() != $new_comment ||
 
 1145                    $marks_obj->setMark($new_mark);
 
 1146                    $marks_obj->setComment($new_comment);
 
 1147                    $marks_obj->update();
 
 1153            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1156        $ilCtrl->redirect($this, 
"listContributors");
 
 1164        if (is_object($this->
object)) {
 
 1165            $ilLocator->addItem(
 
 1166                $this->object->getTitle(),
 
 1167                $this->getGotoLink($this->object->getRefId()),
 
 1178        $ilAccess = 
$DIC->access();
 
 1181        $ilNavigationHistory = 
$DIC[
"ilNavigationHistory"];
 
 1183        $i = strpos($a_target, 
"_");
 
 1185            $a_page = substr($a_target, 
$i + 1);
 
 1186            $a_target = substr($a_target, 0, 
$i);
 
 1189        if ($a_target == 
"wpage") {
 
 1190            $a_page_arr = explode(
"_", $a_page);
 
 1191            $wpg_id = (int) $a_page_arr[0];
 
 1192            $ref_id = (int) $a_page_arr[1];
 
 1193            include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1200            foreach ($refs as $r) {
 
 1201                if ($ilAccess->checkAccess(
"read", 
"", $r)) {
 
 1208        if ($ilAccess->checkAccess(
"read", 
"", $a_target)) {
 
 1209            $_GET[
"cmd"] = 
"viewPage";
 
 1210            $_GET[
"ref_id"] = $a_target;
 
 1211            $_GET[
"page"] = $a_page;
 
 1212            $_GET[
"baseClass"] = 
"ilwikihandlergui";
 
 1213            $_GET[
"cmdClass"] = 
"ilobjwikigui";
 
 1220            include(
"ilias.php");
 
 1222        } elseif ($ilAccess->checkAccess(
"visible", 
"", $a_target)) {
 
 1226                $lng->txt(
"msg_no_perm_read_item"),
 
 1240        if ($a_page == 
"") {
 
 1244        $goto = 
"goto.php?target=wiki_" . $a_ref_id . 
"_" .
 
 1263        $ilTabs->clearTargets();
 
 1264        $tpl->setHeaderActionMenu(
null);
 
 1266        $page = (
$_GET[
"page"] != 
"")
 
 1268            : $this->object->getStartPage();
 
 1269        $_GET[
"page"] = $page;
 
 1271        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1273            $page = $this->
object->getStartPage();
 
 1278            $ilCtrl->redirect($this, 
"infoScreen");
 
 1285        include_once(
"./Modules/Wiki/classes/class.ilWikiPageGUI.php");
 
 1287            $this->object->getId(),
 
 1290            $this->object->getRefId()
 
 1292        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
 1294            $this->object->getStyleSheetId(),
 
 1301        $ilCtrl->setCmdClass(
"ilwikipagegui");
 
 1302        $ilCtrl->setCmd(
"preview");
 
 1303        if (!$ilAccess->checkAccess(
"write", 
"", $this->object->getRefId()) &&
 
 1305                !$ilAccess->checkAccess(
"edit_content", 
"", $this->object->getRefId()) ||
 
 1306                $wpage_gui->getPageObject()->getBlocked()
 
 1308            $wpage_gui->setEnableEditing(
false);
 
 1314        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1315            $wpage_gui->activateMetaDataEditor($this->
object, 
"wpg", $wpage_gui->getId());
 
 1319        $html = $ilCtrl->forwardCommand($wpage_gui);
 
 1322        $tpl->setContent($html);
 
 1334        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1341            $this->object->getId(),
 
 1346        $tpl->setContent($table_gui->getHTML());
 
 1358        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1365            $this->object->getId(),
 
 1370        $tpl->setContent($table_gui->getHTML());
 
 1382        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1389            $this->object->getId(),
 
 1394        $tpl->setContent($table_gui->getHTML());
 
 1406        if ($a_page == 
"") {
 
 1407            $a_page = 
$_GET[
"page"];
 
 1410        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1412            $this->object->getId(),
 
 1418            if (!$this->access->checkAccess(
"edit_content", 
"", $this->object->getRefId())) {
 
 1422            if (!$this->object->getTemplateSelectionOnCreation()) {
 
 1425                include_once(
"./Services/Utilities/classes/class.ilStr.php");
 
 1427                    ilUtil::sendFailure($this->lng->txt(
"wiki_page_title_too_long") . 
" (" . $a_page . 
")", 
true);
 
 1429                    $ilCtrl->redirectByClass(
"ilwikipagegui", 
"preview");
 
 1431                $this->
object->createWikiPage($a_page);
 
 1435                $ilCtrl->redirectByClass(
"ilwikipagegui", 
"edit");
 
 1439                $ilCtrl->redirect($this, 
"showTemplateSelection");
 
 1453        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1467        include_once(
"./Modules/Wiki/classes/class.ilWikiRecentChangesTableGUI.php");
 
 1474            $this->object->getId()
 
 1478        $tpl->setContent($table_gui->getHTML());
 
 1499        $ilAccess = 
$DIC->access();
 
 1500        $ilCtrl = 
$DIC->ctrl();
 
 1502        $tpl->addJavaScript(
"./Modules/Wiki/js/WikiPres.js");
 
 1506        $tpl->addOnLoadCode(
"il.Wiki.Pres.init('" . $ilCtrl->getLinkTargetByClass(
"ilobjwikigui", 
"", 
"", 
false, 
false) . 
"');");
 
 1508        if ($a_wpg_id > 0 && !$a_wp) {
 
 1509            include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1514        include_once 
'./Services/Search/classes/class.ilRepositoryObjectSearchGUI.php';
 
 1519        if ($a_wpg_id > 0) {
 
 1524                $a_wp->getRating()) {
 
 1525                include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
 
 1527                $rgui->setObject($wiki_id, 
"wiki", $a_wpg_id, 
"wpg");
 
 1529                $rgui->setYourRatingText(
"#");
 
 1530                $rcontent .= $rgui->getBlockHTML(
$lng->txt(
"wiki_rate_page"));
 
 1536                if ($ilAccess->checkAccess(
"write", 
"", $a_wiki_ref_id) ||
 
 1537                    $ilAccess->checkAccess(
"edit_page_meta", 
"", $a_wiki_ref_id)) {
 
 1539                        "edit" => $ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"editAdvancedMetaData"),
 
 1540                        "hide" => $ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"hideAdvancedMetaData")
 
 1543                include_once(
"./Services/Object/classes/class.ilObjectMetaDataGUI.php");
 
 1545                $callback = $wiki->getLinkMetadataValues()
 
 1546                    ? array($wiki, 
"decorateAdvMDValue")
 
 1549                $rcontent .= $mdgui->getBlockHTML($cmd, $callback); 
 
 1554        include_once(
"./Modules/Wiki/classes/class.ilWikiImportantPagesBlockGUI.php");
 
 1556        $rcontent .= $imp_pages_block->getHTML();
 
 1559        if ($a_wpg_id > 0) {
 
 1560            include_once(
"./Modules/Wiki/classes/class.ilWikiFunctionsBlockGUI.php");
 
 1562            $wiki_functions_block->setPageObject($a_wp);
 
 1563            $rcontent .= $wiki_functions_block->getHTML();
 
 1566        $tpl->setRightContent($rcontent);
 
 1578        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1585            $this->object->getId(),
 
 1590        $tpl->setContent($table_gui->getHTML());
 
 1596        if (is_array(
$_POST[
"wordr"])) {
 
 1598            $page_ids = array_keys(
$_POST[
"wordr"]);
 
 1601        elseif ((
int) 
$_GET[
"wpg_id"]) {
 
 1602            $page_ids = array((
int) 
$_GET[
"wpg_id"]);
 
 1615        $tabs->clearTargets();
 
 1616        $tabs->setBackTarget(
 
 1617            $this->lng->txt(
"back"),
 
 1618            $this->ctrl->getLinkTargetByClass(
"ilwikipagegui", 
"printViewSelection")
 
 1623            $this->ctrl->redirect($this, 
"");
 
 1629        foreach ($page_ids as $p_id) {
 
 1631            $page_gui->setWiki($this->
object);
 
 1632            $page_gui->setOutputMode(
"print");
 
 1633            $page_content .= $page_gui->showPage();
 
 1635            if ($a_pdf_export) {
 
 1636                $page_content .= 
'<p style="page-break-after:always;"></p>';
 
 1642        if (!$a_pdf_export) {
 
 1643            $tpl->addOnLoadCode(
"il.Util.print();");
 
 1646        $tpl->setContent($page_content);
 
 1648        if (!$a_pdf_export) {
 
 1651            return $tpl->printToString();
 
 1664        $html = preg_replace(
"/\?dummy\=[0-9]+/", 
"", $html);
 
 1665        $html = preg_replace(
"/\?vers\=[0-9A-Za-z\-]+/", 
"", $html);
 
 1666        $html = str_replace(
'.css$Id$', 
".css", $html);
 
 1669            include_once 
"Services/PDFGeneration/classes/class.ilPDFGeneration.php";
 
 1670            include_once 
"Services/PDFGeneration/classes/class.ilPDFGenerationJob.php";
 
 1673            $job->setAutoPageBreak(
true)
 
 1674                ->setMarginLeft(
"10")
 
 1675                ->setMarginRight(
"10")
 
 1676                ->setMarginTop(
"10")
 
 1677                ->setMarginBottom(
"10")
 
 1678                ->setOutputMode(
"D")
 
 1679                ->setFilename(
"wiki.pdf")
 
 1680                ->setCreator(
"ILIAS Wiki")
 
 1681                ->setImageScale(1.25)
 
 1686            $html = preg_replace(
"/src=\"\\.\\//ims", 
"src=\"" . ILIAS_HTTP_PATH . 
"/", $html);
 
 1687            $html = preg_replace(
"/href=\"\\.\\//ims", 
"href=\"" . ILIAS_HTTP_PATH . 
"/", $html);
 
 1705        include_once(
"./Modules/Wiki/classes/class.ilWikiSearchResultsTableGUI.php");
 
 1707        $ilTabs->setTabActive(
"wiki_search_results");
 
 1709        if (trim(
$_POST[
"search_term"]) == 
"") {
 
 1711            $ilCtrl->redirectByClass(
"ilwikipagegui", 
"preview");
 
 1715            $this->object->getId(),
 
 1721            $this->object->getId(),
 
 1727        $tpl->setContent($table_gui->getHTML());
 
 1743                $this->object->getStyleSheetId(),
 
 1762        $tpl->setContent($this->form->getHTML());
 
 1764        $ilTabs->activateTab(
"settings");
 
 1780        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
 1781        $lng->loadLanguageModule(
"style");
 
 1783        include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1786        $fixed_style = 
$ilSetting->get(
"fixed_content_style_id");
 
 1787        $style_id = $this->
object->getStyleSheetId();
 
 1789        if ($fixed_style > 0) {
 
 1792                $this->lng->txt(
"global_fixed") . 
")");
 
 1793            $this->form->addItem($st);
 
 1801            $st_styles[0] = $this->lng->txt(
"default");
 
 1804            if ($style_id > 0) {
 
 1809                    $this->form->addItem($st);
 
 1814                    $this->form->addCommandButton(
 
 1816                        $lng->txt(
"style_edit_style")
 
 1818                    $this->form->addCommandButton(
 
 1820                        $lng->txt(
"style_delete_style")
 
 1835                $style_sel->setOptions($st_styles);
 
 1836                $style_sel->setValue($style_id);
 
 1837                $this->form->addItem($style_sel);
 
 1839                $this->form->addCommandButton(
 
 1840                    "saveStyleSettings",
 
 1843                $this->form->addCommandButton(
 
 1845                    $lng->txt(
"sty_create_ind_style")
 
 1849        $this->form->setTitle(
$lng->txt(
"wiki_style"));
 
 1850        $this->form->setFormAction($ilCtrl->getFormAction($this));
 
 1860        $ilCtrl->redirectByClass(
"ilobjstylesheetgui", 
"create");
 
 1870        $ilCtrl->redirectByClass(
"ilobjstylesheetgui", 
"edit");
 
 1880        $ilCtrl->redirectByClass(
"ilobjstylesheetgui", 
"delete");
 
 1890        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
 1891        if (
$ilSetting->get(
"fixed_content_style_id") <= 0 &&
 
 1893            || $this->object->getStyleSheetId() == 0)) {
 
 1895            $this->
object->update();
 
 1896            ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
 1898        $this->ctrl->redirect($this, 
"editStyleProperties");
 
 1921        $ipages_ids = array();
 
 1922        foreach ($ipages as 
$i) {
 
 1923            $ipages_ids[] = 
$i[
"page_id"];
 
 1927        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1929        $options = array(
"" => 
$lng->txt(
"please_select"));
 
 1930        foreach ($pages as $p) {
 
 1931            if (!in_array($p[
"id"], $ipages_ids)) {
 
 1935        if (count($options) > 0) {
 
 1936            include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
 1938            $si->setOptions($options);
 
 1940            $ilToolbar->addInputItem(
$si);
 
 1941            $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
 
 1942            $ilToolbar->addFormButton(
$lng->txt(
"add"), 
"addImportantPage");
 
 1946        $ilTabs->activateTab(
"settings");
 
 1949        include_once(
"./Modules/Wiki/classes/class.ilImportantPagesTableGUI.php");
 
 1952        $tpl->setContent($imp_table->getHTML());
 
 1968        if (
$_POST[
"imp_page_id"] > 0) {
 
 1969            $this->
object->addImportantPage((
int) 
$_POST[
"imp_page_id"]);
 
 1970            ilUtil::sendSuccess(
$lng->txt(
"wiki_imp_page_added"), 
true);
 
 1972        $ilCtrl->redirect($this, 
"editImportantPages");
 
 1984        if (!is_array(
$_POST[
"imp_page_id"]) || count(
$_POST[
"imp_page_id"]) == 0) {
 
 1986            $ilCtrl->redirect($this, 
"editImportantPages");
 
 1988            include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
 1990            $cgui->setFormAction($ilCtrl->getFormAction($this));
 
 1991            $cgui->setHeaderText(
$lng->txt(
"wiki_sure_remove_imp_pages"));
 
 1992            $cgui->setCancel(
$lng->txt(
"cancel"), 
"editImportantPages");
 
 1993            $cgui->setConfirm(
$lng->txt(
"remove"), 
"removeImportantPages");
 
 1995            foreach (
$_POST[
"imp_page_id"] as 
$i) {
 
 1999            $tpl->setContent($cgui->getHTML());
 
 2016        if (is_array(
$_POST[
"imp_page_id"])) {
 
 2017            foreach (
$_POST[
"imp_page_id"] as 
$i) {
 
 2018                $this->
object->removeImportantPage((
int) $i);
 
 2021        ilUtil::sendSuccess(
$lng->txt(
"wiki_removed_imp_pages"), 
true);
 
 2022        $ilCtrl->redirect($this, 
"editImportantPages");
 
 2035        $this->
object->saveOrderingAndIndentation(
$_POST[
"ord"], 
$_POST[
"indent"]);
 
 2036        ilUtil::sendSuccess(
$lng->txt(
"wiki_ordering_and_indent_saved"), 
true);
 
 2037        $ilCtrl->redirect($this, 
"editImportantPages");
 
 2050        if (!is_array(
$_POST[
"imp_page_id"]) || count(
$_POST[
"imp_page_id"]) != 1) {
 
 2053            $this->
object->removeImportantPage((
int) 
$_POST[
"imp_page_id"][0]);
 
 2055            $this->
object->update();
 
 2056            ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
 2058        $ilCtrl->redirect($this, 
"editImportantPages");
 
 2070        if (
$format[1] == 
"comments") {
 
 2071            $cont_exp->setMode(Export\WikiHtmlExport::MODE_COMMENTS);
 
 2074        $cont_exp->buildExportFile();
 
 2086        include_once 
"Modules/Wiki/classes/class.ilWikiPage.php";
 
 2088        if ($page->getWikiId() == $a_wiki_id) {
 
 2089            return $page->getTitle();
 
 2102        include_once 
"Modules/Wiki/classes/class.ilWikiPage.php";
 
 2118        $ilTabs->clearTargets();
 
 2122        $tpl->setContent($form->getHTML());
 
 2133        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2138        $hi->setValue(
$_GET[
"page"]);
 
 2139        $form->addItem($hi);
 
 2143        $radg->setRequired(
true);
 
 2145        if ($this->object->getEmptyPageTemplate()) {
 
 2147            $radg->addOption($op1);
 
 2150        include_once(
"./Modules/Wiki/classes/class.ilWikiPageTemplate.php");
 
 2153        foreach ($ts as $t) {
 
 2155            $radg->addOption($op);
 
 2158        $form->addItem($radg);
 
 2161        $form->addCommandButton(
"createPageUsingTemplate", 
$lng->txt(
"wiki_create_page"));
 
 2162        $form->addCommandButton(
"cancelCreationPageUsingTemplate", 
$lng->txt(
"cancel"));
 
 2164        $form->setTitle(
$lng->txt(
"wiki_new_page") . 
": " . 
$_GET[
"page"]);
 
 2165        $form->setFormAction($ilCtrl->getFormAction($this));
 
 2180        if ($form->checkInput()) {
 
 2181            $a_page = 
$_POST[
"page"];
 
 2182            $this->
object->createWikiPage($a_page, (
int) 
$_POST[
"page_templ"]);
 
 2186            $ilCtrl->redirectByClass(
"ilwikipagegui", 
"edit");
 
 2188            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 2189            $ilCtrl->redirect($this, 
"");
 
 2191            $form->setValuesByPost();
 
 2192            $tpl->setContent($form->getHtml());
 
 2205        $ilCtrl->redirectByClass(
"ilwikipagegui", 
"preview");
 
 2219        if ($a_perm == 
"create") {
 
 2220            return parent::checkPermissionBool($a_perm, $a_cmd, $a_type, $a_ref_id);
 
 2223                $a_ref_id = $this->
object->getRefId();
 
 2225            include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
 
 2240        $this->log->debug(
"init: " . $this->req_with_comments);
 
 2242        $this->
object->initUserHTMLExport($this->req_with_comments);
 
 2250        $this->log->debug(
"start: " . $this->req_with_comments);
 
 2252        $this->
object->startUserHTMLExport($this->req_with_comments);
 
 2260        $this->log->debug(
"get progress: " . $this->req_with_comments);
 
 2262        $p = $this->
object->getUserHTMLExportProgress($this->req_with_comments);
 
 2264        include_once(
"./Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php");
 
 2266        $pb->setCurrent($p[
"progress"]);
 
 2269        $r->progressBar = $pb->render();
 
 2270        $r->status = $p[
"status"];
 
 2271        include_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
 
 2272        $this->log->debug(
"status: " . $r->status);
 
 2282        $this->log->debug(
"download");
 
 2284        $this->
object->deliverUserHTMLExport();
 
 2292        $this->log->debug(
"download");
 
 2294        $this->
object->deliverUserHTMLExport(
true);
 
 2304        if (!is_object($this->
object)) {
 
 2308            $this->object->getRefId(),
 
 2309            $this->user->getId()
 
 2311        if (count($ass_info) > 0) {
 
 2312            $ass_ids = array_map(
function (
$i) {
 
 2317            $this->tool_context->current()->addAdditionalData(
 
 2334            $this->object->getRefId(),
 
 2335            $this->user->getId()
 
 2338        foreach ($ass_info as 
$i) {     
 
 2340            $times_up = $ass->afterDeadlineStrict();
 
 2344                $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", $ass->getId());
 
 2345                $submit_link = $ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"finalizeAssignment");
 
 2346                $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", 
"");
 
 2348                $buttons[
$i->getId()][] = 
$ui->factory()->button()->primary(
$lng->txt(
"wiki_finalize_wiki"), $submit_link);
 
 2352            include_once 
"Modules/Exercise/classes/class.ilExSubmission.php";
 
 2354            if ($submission->hasSubmitted()) {
 
 2355                $submitted = $submission->getSelectedObject();
 
 2356                if ($submitted[
"ts"] != 
"") {
 
 2357                    $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", $ass->getId());
 
 2359                $dl_link = $ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"downloadExcSubFile");
 
 2360                $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", 
"");
 
 2361                $buttons[
$i->getId()][] = 
$ui->factory()->button()->standard(
$lng->txt(
"wiki_download_submission"), $dl_link);
 
An exception for terminatinating execution or to throw for unit testing.
Wiki HTML exporter class.
error($a_errmsg)
set error message @access public
const IL_WIKI_POPULAR_PAGES
const IL_WIKI_ORPHANED_PAGES
static _getSelectedRecordsByObject($a_obj_type, $a_ref_id, $a_sub_type="")
Get selected records by object.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Confirmation screen class.
Exercise submission //TODO: This class has to much static methods related to delivered "files".
static getInstance()
Get instance.
Export User Interface Class.
static encode($mixed, $suppress_native=false)
static _lookupMark($a_usr_id, $a_obj_id)
static _lookupComment($a_usr_id, $a_obj_id)
static getLogger($a_component_id)
Get component logger.
This class represents a non editable value in a property form.
Handles general notification settings, see e.g.
Class ilObjStyleSheetGUI.
static _lookupStandard($a_id)
Lookup standard flag.
static getSyntaxStylePath()
get syntax style path
static _getStandardStyles( $a_exclude_default_style=false, $a_include_deactivated=false, $a_scope=0)
Get standard styles.
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static getContentStylePath($a_style_id, $add_random=true, $add_token=true)
get content style path
orphanedPagesObject()
Orphaned pages.
popularPagesObject()
Popular pages.
setSettingsSubTabs($a_active)
Set sub tabs.
afterSave(ilObject $newObj)
save object @access public
gotoStartPageObject()
Go to start page.
saveSettingsObject()
Save Settings.
editSettingsObject()
Edit settings.
getAssignmentButtons()
Get assignment buttons.
setContentStyleSheet($tpl=null)
Set content style sheet.
allPagesObject()
All pages of wiki.
getTabs()
get tabs @access public
addLocatorItems()
should be overwritten to add object specific items (repository items are preloaded)
downloadUserHTMLExportObject()
Download user html export file.
cancelCreationPageUsingTemplateObject()
Cancel page creation using a template.
createStyleObject()
Create Style.
static renderSideBlock($a_wpg_id, $a_wiki_ref_id, $a_wp=null)
Side column.
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
editStylePropertiesObject()
Edit style properties.
deleteStyleObject()
Delete Style.
saveObject()
save object @access public
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
editStyleObject()
Edit Style.
addImportantPageObject()
Add important pages.
infoScreen()
show information screen
addPagesSubTabs()
Add Pages SubTabs.
downloadUserHTMLExportWithCommentsObject()
Download user html export file.
saveStyleSettingsObject()
Save style settings.
initStylePropertiesForm()
Init style properties form.
getSubObjectTitle($a_id, $a_type)
Used for rating export.
initSettingsForm($a_mode="edit")
Init Settings Form.
executeCommand()
execute command
viewPageObject()
view wiki page
printViewObject($a_pdf_export=false)
randomPageObject()
Go to random page.
isOnlineHelpWiki()
Is wiki an online help wiki?
performSearchObject()
Search.
getSettingsFormValues($a_mode="edit")
initTemplateSelectionForm()
Init template selection form.
newPagesObject()
Latest pages.
showTemplateSelectionObject()
Show template selection.
startUserHTMLExportObject()
Export html (as user)
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor @access public.
createPageUsingTemplateObject()
Save creation with template form.
saveOrderingAndIndentObject()
Save important pages ordering and indentation.
triggerAssignmentTool()
Trigger assignment tool.
saveGradingObject()
Save grading.
initCreationForms($a_new_type)
Init creation froms.
removeImportantPagesObject()
Remove important pages.
listContributorsObject()
List all contributors.
exportHTML()
Create html package.
setSideBlock($a_wpg_id=0)
Side column.
setAsStartPageObject()
Confirm important pages deletion.
editImportantPagesObject()
List important pages.
getUserHTMLExportProgressObject()
Get user html export progress.
initUserHTMLExportObject()
Export html (as user)
gotoPageObject($a_page="")
Go to specific page.
addPageTabs()
Add Page Tabs.
static lookupSubObjectTitle($a_wiki_id, $a_page_id)
Get title for wiki page (used in ilNotesGUI)
infoScreenObject()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually,...
recentChangesObject()
Recent Changes.
confirmRemoveImportantPagesObject()
Confirm important pages deletion.
static _lookupRatingCategories($a_wiki_id)
Lookup whether rating categories are activated.
static _performSearch($a_wiki_id, $a_searchterm)
Search in Wiki.
static isOnlineHelpWiki($a_ref_id)
Is wiki an online help wiki?
static _lookupImportantPagesList($a_wiki_id)
Get important pages list.
static checkShortTitleAvailability($a_short_title)
Check availability of short title.
static _lookupStartPage($a_wiki_id)
Lookup start page.
static _lookupRating($a_wiki_id)
Lookup whether rating is activated.
GUI class for the workflow of copying objects.
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
initImportForm($a_new_type)
Init object import form.
prepareOutput($a_show_subobjects=true)
prepare output
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
fillCloneTemplate($a_tpl_varname, $a_type)
Fill object clone template This method can be called from any object GUI class that wants to offer ob...
addHeaderAction()
Add header action menu.
static initServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Init service settings form.
static updateServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Update service settings.
Class ilObject Basic functions for all objects.
static hasAutoRating($a_type, $a_ref_id)
Check if auto rating is active for parent group/course.
static _lookupObjId($a_id)
update()
update object in db
static _lookupTitle($a_id)
lookup object title
setTitle($a_title)
set object title
setDescription($a_desc)
set object description
getRefId()
get reference id @access public
static _getAllReferences($a_id)
get all reference ids of object
Class ilPDFGenerationJob.
static doJob(ilPDFGenerationJob $job)
static prepareGenerationRequest($service, $purpose)
Prepare the content processing for a PDF generation request This function should be called as in a re...
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static getInstance()
Factory.
GUI class for public user profile presentation.
This class represents an option in a radio group.
static getSearchBlockHTML($a_title)
Get standar search block html.
UI class for handling permissions that can be configured having the write permission for an object.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static redirect($a_script)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static _writeStatus($a_obj_id, $a_user_id, $a_status)
Write success status.
static _lookupStatus($a_obj_id, $a_user_id)
Lookup current success status (STATUS_NOT_GRADED|STATUS_PASSED|STATUS_FAILED)
TableGUI class for listing users that contributed to the wiki.
BlockGUI class for wiki functions block.
Important pages wiki block.
Class ilWikiPage 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.
Wiki page template gui class.
static lookupAdvancedMetadataHidden($a_page_id)
static exists($a_wiki_id, $a_title)
Checks whether a page with given title exists.
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 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.
static getRandomPage($a_wiki_id)
Get a random page.
static lookupWikiId($a_page_id)
Lookup wiki id.
TableGUI class for wiki pages table.
static check($a_perm, $a_ref_id, $a_cmd="")
Check permission.
TableGUI class for recent changes in wiki.
TableGUI class for recent changes in wiki.
Wiki statistics GUI class.
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static makeDbTitle($a_par)
Handle page GET parameter.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc