58    public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = 
true)
 
   62        $this->ctrl = 
$DIC->ctrl();
 
   63        $this->lng = 
$DIC->language();
 
   64        $this->
user = $DIC->user();
 
   65        $this->tpl = 
$DIC[
"tpl"];
 
   66        $this->tabs = 
$DIC->tabs();
 
   67        $this->access = 
$DIC->access();
 
   68        $this->
error = $DIC[
"ilErr"];
 
   70        $this->
help = $DIC[
"ilHelp"];
 
   71        $this->locator = 
$DIC[
"ilLocator"];
 
   72        $this->toolbar = 
$DIC->toolbar();
 
   80        $this->tool_context = 
$DIC->globalScreen()->tool()->context();
 
   81        $this->
ui = $DIC->ui();
 
   84        $lng->loadLanguageModule(
"obj");
 
   85        $lng->loadLanguageModule(
"wiki");
 
   87        if (
$_GET[
"page"] != 
"") {
 
  100        $next_class = $this->ctrl->getNextClass($this);
 
  101        $cmd = $this->ctrl->getCmd();
 
  109        if ($cmd == 
"printView" || $cmd == 
"pdfExport") {
 
  113        switch ($next_class) {
 
  114            case "ilinfoscreengui":
 
  120            case 'ilpermissiongui':
 
  122                $ilTabs->activateTab(
"perm_settings");
 
  123                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
  125                $ret = $this->ctrl->forwardCommand($perm_gui);
 
  128            case 'ilsettingspermissiongui':
 
  131                $ilTabs->activateTab(
"settings");
 
  133                include_once(
"Services/AccessControl/classes/class.ilSettingsPermissionGUI.php");
 
  135                $perm_gui->setPermissions(array(
"edit_wiki_navigation", 
"delete_wiki_pages", 
"activate_wiki_protection",
 
  136                    "wiki_html_export"));
 
  137                $perm_gui->setRoleRequiredPermissions(array(
"edit_content"));
 
  138                $perm_gui->setRoleProhibitedPermissions(array(
"write"));
 
  139                $ret = $this->ctrl->forwardCommand($perm_gui);
 
  142            case 'ilwikipagegui':
 
  144                include_once(
"./Modules/Wiki/classes/class.ilWikiPageGUI.php");
 
  146                    $this->object->getId(),
 
  149                    $this->object->getRefId()
 
  151                include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
  153                    $this->object->getStyleSheetId(),
 
  157                if (!$ilAccess->checkAccess(
"write", 
"", $this->object->getRefId()) &&
 
  159                        !$ilAccess->checkAccess(
"edit_content", 
"", $this->object->getRefId()) ||
 
  160                        $wpage_gui->getPageObject()->getBlocked()
 
  162                    $wpage_gui->setEnableEditing(
false);
 
  168                if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  169                    $wpage_gui->activateMetaDataEditor($this->
object, 
"wpg", $wpage_gui->getId());
 
  172                $ret = $this->ctrl->forwardCommand($wpage_gui);
 
  178            case 'ilobjectcopygui':
 
  179                include_once 
'./Services/Object/classes/class.ilObjectCopyGUI.php';
 
  181                $cp->setType(
'wiki');
 
  182                $this->ctrl->forwardCommand($cp);
 
  185            case 'ilpublicuserprofilegui':
 
  186                require_once 
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
 
  188                $ret = $this->ctrl->forwardCommand($profile_gui);
 
  192            case "ilobjstylesheetgui":
 
  193                include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheetGUI.php");
 
  194                $this->ctrl->setReturn($this, 
"editStyleProperties");
 
  195                $style_gui = 
new ilObjStyleSheetGUI(
"", $this->object->getStyleSheetId(), 
false, 
false);
 
  196                $style_gui->omitLocator();
 
  197                if ($cmd == 
"create" || 
$_GET[
"new_type"] == 
"sty") {
 
  198                    $style_gui->setCreationMode(
true);
 
  201                if ($cmd == 
"confirmedDelete") {
 
  202                    $this->
object->setStyleSheetId(0);
 
  203                    $this->
object->update();
 
  206                $ret = $this->ctrl->forwardCommand($style_gui);
 
  208                if ($cmd == 
"save" || $cmd == 
"copyStyle" || $cmd == 
"importStyle") {
 
  210                    $this->
object->setStyleSheetId($style_id);
 
  211                    $this->
object->update();
 
  212                    $this->ctrl->redirectByClass(
"ilobjstylesheetgui", 
"edit");
 
  219                $ilTabs->activateTab(
"export");
 
  220                include_once(
"./Services/Export/classes/class.ilExportGUI.php");
 
  222                $exp_gui->addFormat(
"xml");
 
  223                $exp_gui->addFormat(
"html", 
"", $this, 
"exportHTML");
 
  224                $ret = $this->ctrl->forwardCommand($exp_gui);
 
  228            case "ilcommonactiondispatchergui":
 
  229                include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
 
  231                $this->ctrl->forwardCommand($gui);
 
  238                $ilTabs->activateTab(
"settings");
 
  240                include_once(
"Services/Rating/classes/class.ilRatingGUI.php");
 
  242                $gui->setObject($this->object->getId(), $this->object->getType());
 
  243                $gui->setExportCallback(array($this, 
"getSubObjectTitle"), $this->lng->txt(
"page"));
 
  244                $this->ctrl->forwardCommand($gui);
 
  247            case "ilwikistatgui":
 
  251                $ilTabs->activateTab(
"statistics");
 
  253                include_once 
"Modules/Wiki/classes/class.ilWikiStatGUI.php";
 
  255                $this->ctrl->forwardCommand($gui);
 
  258            case "ilwikipagetemplategui":
 
  261                $ilTabs->activateTab(
"settings");
 
  263                include_once(
"./Modules/Wiki/classes/class.ilWikiPageTemplateGUI.php");
 
  265                $this->ctrl->forwardCommand($wptgui);
 
  268            case 'ilobjectmetadatagui':
 
  271                $ilTabs->activateTab(
"advmd");
 
  272                include_once 
'Services/Object/classes/class.ilObjectMetaDataGUI.php';
 
  274                $this->ctrl->forwardCommand($md_gui);
 
  277            case 'ilrepositoryobjectsearchgui':
 
  280                $ilTabs->setTabActive(
"wiki_search_results");
 
  281                $ilCtrl->setReturn($this, 
'view');
 
  282                include_once 
'./Services/Search/classes/class.ilRepositoryObjectSearchGUI.php';
 
  284                    $this->object->getRefId(),
 
  288                $ilCtrl->forwardCommand($search_gui);
 
  291            case 'ilobjnotificationsettingsgui':
 
  293                $ilTabs->activateTab(
"settings");
 
  295                include_once(
"./Services/Notification/classes/class.ilObjNotificationSettingsGUI.php");
 
  297                $this->ctrl->forwardCommand($gui);
 
  306                if ($cmd != 
"cancelObject") {
 
  307                    if ($cmd != 
"infoScreenObject") {
 
  308                        if (!in_array($cmd, array(
"createObject", 
"saveObject", 
"importFileObject"))) {
 
  329        if (is_object($this->
object)) {
 
  349        $forms = array(self::CFORM_NEW => $this->form_gui,
 
  367            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
  371        if ($this->form_gui->checkInput()) {
 
  373                $short_item = $this->form_gui->getItemByPostVar(
"shorttitle");
 
  374                $short_item->setAlert(
$lng->txt(
"wiki_short_title_already_in_use"));
 
  377                $_POST[
"title"] = $this->form_gui->getInput(
"title");
 
  378                $_POST[
"desc"] = $this->form_gui->getInput(
"description");
 
  379                return parent::saveObject();
 
  383        $this->form_gui->setValuesByPost();
 
  384        $tpl->setContent($this->form_gui->getHtml());
 
  395        $newObj->
setTitle($this->form_gui->getInput(
"title"));
 
  396        $newObj->
setDescription($this->form_gui->getInput(
"description"));
 
  397        $newObj->setIntroduction($this->form_gui->getInput(
"intro"));
 
  398        $newObj->setStartPage($this->form_gui->getInput(
"startpage"));
 
  399        $newObj->setShortTitle($this->form_gui->getInput(
"shorttitle"));
 
  400        $newObj->setRating($this->form_gui->getInput(
"rating"));
 
  402        $newObj->setRatingForNewPages($this->form_gui->getInput(
"rating_new"));
 
  403        $newObj->setRatingCategories($this->form_gui->getInput(
"rating_ext"));
 
  405        $newObj->setRatingOverall($this->form_gui->getInput(
"rating_overall"));
 
  406        $newObj->setPageToc($this->form_gui->getInput(
"page_toc"));
 
  411            $newObj->setPublicNotes($this->form_gui->getInput(
"public_notes"));
 
  413        $newObj->setOnline($this->form_gui->getInput(
"online"));
 
  417        ilUtil::sendSuccess($this->lng->txt(
"object_added"), 
true);
 
  429        $this->ctrl->setCmd(
"showSummary");
 
  430        $this->ctrl->setCmdClass(
"ilinfoscreengui");
 
  445        $ilTabs->activateTab(
"info_short");
 
  447        if (!$ilAccess->checkAccess(
"visible", 
"", $this->object->getRefId())) {
 
  448            $ilErr->raiseError($this->lng->txt(
"msg_no_perm_read"), 
$ilErr->MESSAGE);
 
  451        include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
 
  453        $info->enablePrivateNotes();
 
  454        if (trim($this->object->getIntroduction()) != 
"") {
 
  455            $info->addSection(
$lng->txt(
"wiki_introduction"));
 
  456            $info->addProperty(
"", nl2br($this->object->getIntroduction()));
 
  460        include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
 
  461        include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
 
  466            $info->addSection($this->lng->txt(
"wiki_feedback_from_tutor"));
 
  467            if ($lpcomment != 
"") {
 
  469                    $this->lng->txt(
"wiki_comment"),
 
  475                    $this->lng->txt(
"wiki_mark"),
 
  482                    $this->lng->txt(
"status"),
 
  483                    $this->lng->txt(
"wiki_passed")
 
  488                    $this->lng->txt(
"status"),
 
  489                    $this->lng->txt(
"wiki_failed")
 
  502        if ($ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
  507        $this->lng->loadLanguageModule(
"meta");
 
  508        $this->lng->loadLanguageModule(
"wiki");
 
  515        $this->ctrl->forwardCommand($info);
 
  517        if ($ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
  540        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  548            "wiki_what_links_here",
 
  549            $this->ctrl->getLinkTargetByClass(
 
  557            $this->ctrl->getLinkTargetByClass(
 
  573        $ilTabs->activateTab(
"wiki_pages");
 
  575        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  580                $this->object->getId(),
 
  585        $ilTabs->addSubTabTarget(
 
  587            $this->ctrl->getLinkTarget($this, 
"allPages"),
 
  590        $ilTabs->addSubTabTarget(
 
  591            "wiki_recent_changes",
 
  592            $this->ctrl->getLinkTarget($this, 
"recentChanges"),
 
  595        $ilTabs->addSubTabTarget(
 
  597            $this->ctrl->getLinkTarget($this, 
"newPages"),
 
  600        $ilTabs->addSubTabTarget(
 
  601            "wiki_popular_pages",
 
  602            $this->ctrl->getLinkTarget($this, 
"popularPages"),
 
  605        $ilTabs->addSubTabTarget(
 
  606            "wiki_orphaned_pages",
 
  607            $this->ctrl->getLinkTarget($this, 
"orphanedPages"),
 
  624        $ilHelp->setScreenIdComponent(
"wiki");
 
  627        if (in_array(
$ilCtrl->getCmdClass(), array(
"", 
"ilobjwikigui",
 
  628            "ilinfoscreengui", 
"ilpermissiongui", 
"ilexportgui", 
"ilratingcategorygui", 
"ilobjnotificationsettingsgui", 
"iltaxmdgui",
 
  629            "ilwikistatgui", 
"ilwikipagetemplategui", 
"iladvancedmdsettingsgui", 
"ilsettingspermissiongui", 
'ilrepositoryobjectsearchgui' 
  630            )) || (in_array(
$ilCtrl->getNextClass(), array(
"ilpermissiongui")))) {
 
  631            if (
$_GET[
"page"] != 
"") {
 
  632                $this->tabs_gui->setBackTarget(
 
  633                    $lng->txt(
"wiki_last_visited_page"),
 
  642            if ($ilAccess->checkAccess(
'read', 
"", $this->object->getRefId())) {
 
  643                $this->tabs_gui->addTab(
 
  645                    $lng->txt(
"wiki_pages"),
 
  646                    $this->ctrl->getLinkTarget($this, 
"allPages")
 
  651            if ($ilAccess->checkAccess(
'visible', 
"", $this->object->getRefId())) {
 
  652                $this->tabs_gui->addTab(
 
  654                    $lng->txt(
"info_short"),
 
  655                    $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui", 
"showSummary")
 
  660            if ($ilAccess->checkAccess(
'write', 
"", $this->object->getRefId())) {
 
  661                $this->tabs_gui->addTab(
 
  663                    $lng->txt(
"settings"),
 
  664                    $this->ctrl->getLinkTarget($this, 
"editSettings")
 
  668                include_once 
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
 
  670                $mdtab = $mdgui->getTab();
 
  672                    $this->tabs_gui->addTab(
 
  674                        $this->lng->txt(
"meta_data"),
 
  681            if ($ilAccess->checkAccess(
'write', 
"", $this->object->getRefId())) {
 
  682                $this->tabs_gui->addTab(
 
  684                    $lng->txt(
"wiki_contributors"),
 
  685                    $this->ctrl->getLinkTarget($this, 
"listContributors")
 
  690            if ($ilAccess->checkAccess(
'statistics_read', 
"", $this->object->getRefId())) {
 
  691                $this->tabs_gui->addTab(
 
  693                    $lng->txt(
"statistics"),
 
  694                    $this->ctrl->getLinkTargetByClass(
"ilWikiStatGUI", 
"initial")
 
  698            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  699                $this->tabs_gui->addTab(
 
  702                    $this->ctrl->getLinkTargetByClass(
"ilexportgui", 
"")
 
  707            if ($ilAccess->checkAccess(
'edit_permission', 
"", $this->object->getRefId())) {
 
  708                $this->tabs_gui->addTab(
 
  710                    $lng->txt(
"perm_settings"),
 
  711                    $this->ctrl->getLinkTargetByClass(
"ilpermissiongui", 
"perm")
 
  729            array(
"general_settings", 
"style", 
"imp_pages", 
"rating_categories",
 
  730            "page_templates", 
"advmd", 
"permission_settings", 
"notifications")
 
  732            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  736                    $lng->txt(
"wiki_general_settings"),
 
  737                    $ilCtrl->getLinkTarget($this, 
'editSettings')
 
  742                    "permission_settings",
 
  743                    $lng->txt(
"obj_permission_settings"),
 
  744                    $this->ctrl->getLinkTargetByClass(
"ilsettingspermissiongui", 
"")
 
  750                    $lng->txt(
"wiki_style"),
 
  751                    $ilCtrl->getLinkTarget($this, 
'editStyleProperties')
 
  755            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  759                    $lng->txt(
"wiki_navigation"),
 
  760                    $ilCtrl->getLinkTarget($this, 
'editImportantPages')
 
  764            if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  768                    $lng->txt(
"wiki_page_templates"),
 
  769                    $ilCtrl->getLinkTargetByClass(
"ilwikipagetemplategui", 
"")
 
  773                if ($this->object->getRating() && $this->object->getRatingCategories()) {
 
  774                    $lng->loadLanguageModule(
"rating");
 
  777                        $lng->txt(
"rating_categories"),
 
  778                        $ilCtrl->getLinkTargetByClass(array(
'ilratinggui', 
'ilratingcategorygui'), 
'')
 
  784                    $lng->txt(
"notifications"),
 
  785                    $ilCtrl->getLinkTargetByClass(
"ilobjnotificationsettingsgui", 
'')
 
  789            $ilTabs->activateSubTab($a_active);
 
  808        include_once 
'Modules/Wiki/classes/class.ilECSWikiSettings.php';
 
  810        $ecs->addSettingsToForm($this->form_gui, 
'wiki');
 
  812        $tpl->setContent($this->form_gui->getHtml());
 
  827        $lng->loadLanguageModule(
"wiki");
 
  828        $ilTabs->activateTab(
"settings");
 
  830        require_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  835        $tit->setRequired(
true);
 
  836        $this->form_gui->addItem($tit);
 
  854        $this->form_gui->addItem($des);
 
  860        $this->form_gui->addItem($intro);
 
  863        if ($a_mode == 
"edit") {
 
  865            foreach ($pages as $p) {
 
  869            $si->setOptions($options);
 
  870            $this->form_gui->addItem(
$si);
 
  873            if ($a_mode == 
"edit") {
 
  874                $sp->setInfo(
$lng->txt(
"wiki_start_page_info"));
 
  876            $sp->setMaxLength(200);
 
  877            $sp->setRequired(
true);
 
  878            $this->form_gui->addItem($sp);
 
  883        $this->form_gui->addItem($online);
 
  888        $lng->loadLanguageModule(
'rating');
 
  890        $rate->setInfo(
$lng->txt(
'rating_activate_rating_info'));
 
  891        $this->form_gui->addItem($rate);
 
  894        $this->form_gui->addItem($rating);
 
  902        $rating->addSubItem($new);
 
  905        $rating->addSubItem($extended);
 
  911            $this->form_gui->addItem($comments);
 
  920        $page_toc->setInfo(
$lng->txt(
"wiki_page_toc_info"));
 
  921        $this->form_gui->addItem($page_toc);
 
  923        if ($a_mode == 
"edit") {
 
  925            include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php');
 
  928                $link_md->setInfo(
$lng->txt(
"wiki_link_md_values_info"));
 
  929                $this->form_gui->addItem($link_md);
 
  934            $section->setTitle($this->lng->txt(
'obj_presentation'));
 
  938            $obj_service->commonSettings()->legacyForm($this->form_gui, $this->
object)->addTileImage();
 
  943            $feat->setTitle($this->lng->txt(
'obj_features'));
 
  944            $this->form_gui->addItem($feat);
 
  946            include_once 
'./Services/Container/classes/class.ilContainer.php';
 
  947            include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
  949                $this->object->getId(),
 
  961        if ($a_mode != 
"create") {
 
  962            $this->form_gui->setTitle(
$lng->txt(
"wiki_settings"));
 
  963            $this->form_gui->addCommandButton(
"saveSettings", 
$lng->txt(
"save"));
 
  965            $this->form_gui->setTitle(
$lng->txt(
"wiki_new"));
 
  966            $this->form_gui->addCommandButton(
"save", 
$lng->txt(
"wiki_add"));
 
  967            $this->form_gui->addCommandButton(
"cancel", 
$lng->txt(
"cancel"));
 
  971        if ($a_mode == 
"create") {
 
  972            $ilCtrl->setParameter($this, 
"new_type", 
"wiki");
 
  975        $this->form_gui->setFormAction(
$ilCtrl->getFormAction($this, 
"saveSettings"));
 
  984        if ($a_mode == 
"create") {
 
  986            $values[
"rating_new"] = 
true;
 
  990            $this->form_gui->setValuesByArray($values);
 
  992            $values[
"online"] = $this->
object->getOnline();
 
  993            $values[
"title"] = $this->
object->getTitle();
 
  996            $values[
"shorttitle"] = $this->
object->getShortTitle();
 
  997            $values[
"description"] = $this->
object->getLongDescription();
 
  998            $values[
"rating_overall"] = $this->
object->getRatingOverall();
 
  999            $values[
"rating"] = $this->
object->getRating();
 
 1001            $values[
"rating_new"] = $this->
object->getRatingForNewPages();
 
 1002            $values[
"rating_ext"] = $this->
object->getRatingCategories();
 
 1003            $values[
"public_notes"] = $this->
object->getPublicNotes();
 
 1004            $values[
"intro"] = $this->
object->getIntroduction();
 
 1006            $values[
"page_toc"] = $this->
object->getPageToc();
 
 1007            $values[
"link_md_values"] = $this->
object->getLinkMetadataValues();
 
 1010            $this->form_gui->setValuesByArray($values, 
true);
 
 1030        if ($this->form_gui->checkInput()) {
 
 1032                $this->form_gui->getInput(
"shorttitle") != $this->object->getShortTitle()) {
 
 1033                $short_item = $this->form_gui->getItemByPostVar(
"shorttitle");
 
 1034                $short_item->setAlert(
$lng->txt(
"wiki_short_title_already_in_use"));
 
 1036                $this->
object->setTitle($this->form_gui->getInput(
"title"));
 
 1037                $this->
object->setDescription($this->form_gui->getInput(
"description"));
 
 1038                $this->
object->setOnline($this->form_gui->getInput(
"online"));
 
 1040                $this->
object->setShortTitle($this->form_gui->getInput(
"shorttitle"));
 
 1041                $this->
object->setRatingOverall($this->form_gui->getInput(
"rating_overall"));
 
 1042                $this->
object->setRating($this->form_gui->getInput(
"rating"));
 
 1044                $this->
object->setRatingForNewPages($this->form_gui->getInput(
"rating_new"));
 
 1045                $this->
object->setRatingCategories($this->form_gui->getInput(
"rating_ext"));
 
 1048                    $this->
object->setPublicNotes($this->form_gui->getInput(
"public_notes"));
 
 1050                $this->
object->setIntroduction($this->form_gui->getInput(
"intro"));
 
 1052                $this->
object->setPageToc($this->form_gui->getInput(
"page_toc"));
 
 1053                $this->
object->setLinkMetadataValues($this->form_gui->getInput(
"link_md_values"));
 
 1054                $this->
object->update();
 
 1057                $obj_service->commonSettings()->legacyForm($this->form_gui, $this->
object)->saveTileImage();
 
 1060                include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
 1062                    $this->object->getId(),
 
 1070                include_once 
'Modules/Wiki/classes/class.ilECSWikiSettings.php';
 
 1072                if ($ecs->handleSettingsUpdate()) {
 
 1073                    ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
 1074                    $ilCtrl->redirect($this, 
"editSettings");
 
 1079        $this->form_gui->setValuesByPost();
 
 1080        $this->tpl->setContent($this->form_gui->getHTML());
 
 1092        $ilTabs->activateTab(
"wiki_contributors");
 
 1094        include_once(
"./Modules/Wiki/classes/class.ilWikiContributorsTableGUI.php");
 
 1099            $this->object->getId()
 
 1102        $tpl->setContent($table_gui->getHTML());
 
 1117        $users = (is_array(
$_POST[
"user_id"])
 
 1121        include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
 
 1122        include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
 
 1124        foreach ($users as $user_id) {
 
 1125            if ($user_id != 
"") {
 
 1126                $marks_obj = 
new ilLPMarks($this->object->getId(), $user_id);
 
 1131                if ($marks_obj->getMark() != $new_mark ||
 
 1132                    $marks_obj->getComment() != $new_comment ||
 
 1135                    $marks_obj->setMark($new_mark);
 
 1136                    $marks_obj->setComment($new_comment);
 
 1137                    $marks_obj->update();
 
 1143            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1146        $ilCtrl->redirect($this, 
"listContributors");
 
 1154        if (is_object($this->
object)) {
 
 1155            $ilLocator->addItem(
 
 1156                $this->object->getTitle(),
 
 1157                $this->getGotoLink($this->object->getRefId()),
 
 1168        $ilAccess = 
$DIC->access();
 
 1171        $ilNavigationHistory = 
$DIC[
"ilNavigationHistory"];
 
 1173        $i = strpos($a_target, 
"_");
 
 1175            $a_page = substr($a_target, 
$i + 1);
 
 1176            $a_target = substr($a_target, 0, 
$i);
 
 1179        if ($a_target == 
"wpage") {
 
 1180            $a_page_arr = explode(
"_", $a_page);
 
 1181            $wpg_id = (int) $a_page_arr[0];
 
 1182            $ref_id = (int) $a_page_arr[1];
 
 1183            include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1190            foreach ($refs as $r) {
 
 1191                if ($ilAccess->checkAccess(
"read", 
"", $r)) {
 
 1198        if ($ilAccess->checkAccess(
"read", 
"", $a_target)) {
 
 1199            $_GET[
"cmd"] = 
"viewPage";
 
 1200            $_GET[
"ref_id"] = $a_target;
 
 1201            $_GET[
"page"] = $a_page;
 
 1202            $_GET[
"baseClass"] = 
"ilwikihandlergui";
 
 1203            $_GET[
"cmdClass"] = 
"ilobjwikigui";
 
 1210            include(
"ilias.php");
 
 1212        } elseif ($ilAccess->checkAccess(
"visible", 
"", $a_target)) {
 
 1214        } elseif ($ilAccess->checkAccess(
"read", 
"", ROOT_FOLDER_ID)) {
 
 1216                $lng->txt(
"msg_no_perm_read_item"),
 
 1230        if ($a_page == 
"") {
 
 1234        $goto = 
"goto.php?target=wiki_" . $a_ref_id . 
"_" .
 
 1253        $ilTabs->clearTargets();
 
 1254        $tpl->setHeaderActionMenu(
null);
 
 1256        $page = (
$_GET[
"page"] != 
"")
 
 1258            : $this->object->getStartPage();
 
 1259        $_GET[
"page"] = $page;
 
 1261        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1263            $page = $this->
object->getStartPage();
 
 1268            $ilCtrl->redirect($this, 
"infoScreen");
 
 1275        include_once(
"./Modules/Wiki/classes/class.ilWikiPageGUI.php");
 
 1277            $this->object->getId(),
 
 1280            $this->object->getRefId()
 
 1282        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
 1284            $this->object->getStyleSheetId(),
 
 1291        $ilCtrl->setCmdClass(
"ilwikipagegui");
 
 1293        if (!$ilAccess->checkAccess(
"write", 
"", $this->object->getRefId()) &&
 
 1295                !$ilAccess->checkAccess(
"edit_content", 
"", $this->object->getRefId()) ||
 
 1296                $wpage_gui->getPageObject()->getBlocked()
 
 1298            $wpage_gui->setEnableEditing(
false);
 
 1304        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1305            $wpage_gui->activateMetaDataEditor($this->
object, 
"wpg", $wpage_gui->getId());
 
 1309        $html = 
$ilCtrl->forwardCommand($wpage_gui);
 
 1312        $tpl->setContent($html);
 
 1324        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1331            $this->object->getId(),
 
 1336        $tpl->setContent($table_gui->getHTML());
 
 1348        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1355            $this->object->getId(),
 
 1360        $tpl->setContent($table_gui->getHTML());
 
 1372        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1379            $this->object->getId(),
 
 1384        $tpl->setContent($table_gui->getHTML());
 
 1396        if ($a_page == 
"") {
 
 1397            $a_page = 
$_GET[
"page"];
 
 1400        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1402            $this->object->getId(),
 
 1408            if (!$this->access->checkAccess(
"edit_content", 
"", $this->object->getRefId())) {
 
 1412            if (!$this->object->getTemplateSelectionOnCreation()) {
 
 1415                include_once(
"./Services/Utilities/classes/class.ilStr.php");
 
 1417                    ilUtil::sendFailure($this->lng->txt(
"wiki_page_title_too_long") . 
" (" . $a_page . 
")", 
true);
 
 1419                    $ilCtrl->redirectByClass(
"ilwikipagegui", 
"preview");
 
 1421                $this->
object->createWikiPage($a_page);
 
 1425                $ilCtrl->redirectByClass(
"ilwikipagegui", 
"edit");
 
 1429                $ilCtrl->redirect($this, 
"showTemplateSelection");
 
 1443        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1457        include_once(
"./Modules/Wiki/classes/class.ilWikiRecentChangesTableGUI.php");
 
 1464            $this->object->getId()
 
 1468        $tpl->setContent($table_gui->getHTML());
 
 1489        $ilAccess = 
$DIC->access();
 
 1492        $tpl->addJavaScript(
"./Modules/Wiki/js/WikiPres.js");
 
 1496        $tpl->addOnLoadCode(
"il.Wiki.Pres.init('" . 
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui", 
"", 
"", 
false, 
false) . 
"');");
 
 1498        if ($a_wpg_id > 0 && !$a_wp) {
 
 1499            include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1504        include_once 
'./Services/Search/classes/class.ilRepositoryObjectSearchGUI.php';
 
 1509        if ($a_wpg_id > 0) {
 
 1514                $a_wp->getRating()) {
 
 1515                include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
 
 1517                $rgui->setObject($wiki_id, 
"wiki", $a_wpg_id, 
"wpg");
 
 1519                $rgui->setYourRatingText(
"#");
 
 1520                $rcontent .= $rgui->getBlockHTML(
$lng->txt(
"wiki_rate_page"));
 
 1526                if ($ilAccess->checkAccess(
"write", 
"", $a_wiki_ref_id) ||
 
 1527                    $ilAccess->checkAccess(
"edit_page_meta", 
"", $a_wiki_ref_id)) {
 
 1529                        "edit" => 
$ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"editAdvancedMetaData"),
 
 1530                        "hide" => 
$ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"hideAdvancedMetaData")
 
 1533                include_once(
"./Services/Object/classes/class.ilObjectMetaDataGUI.php");
 
 1535                $callback = $wiki->getLinkMetadataValues()
 
 1536                    ? array($wiki, 
"decorateAdvMDValue")
 
 1539                $rcontent .= $mdgui->getBlockHTML($cmd, $callback); 
 
 1544        include_once(
"./Modules/Wiki/classes/class.ilWikiImportantPagesBlockGUI.php");
 
 1546        $rcontent .= $imp_pages_block->getHTML();
 
 1549        if ($a_wpg_id > 0) {
 
 1550            include_once(
"./Modules/Wiki/classes/class.ilWikiFunctionsBlockGUI.php");
 
 1552            $wiki_functions_block->setPageObject($a_wp);
 
 1553            $rcontent .= $wiki_functions_block->getHTML();
 
 1556        $tpl->setRightContent($rcontent);
 
 1568        include_once(
"./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
 
 1575            $this->object->getId(),
 
 1580        $tpl->setContent($table_gui->getHTML());
 
 1586        if (is_array(
$_POST[
"wordr"])) {
 
 1588            $page_ids = array_keys(
$_POST[
"wordr"]);
 
 1591        elseif ((
int) 
$_GET[
"wpg_id"]) {
 
 1592            $page_ids = array((
int) 
$_GET[
"wpg_id"]);
 
 1605        $tabs->clearTargets();
 
 1606        $tabs->setBackTarget(
 
 1607            $this->lng->txt(
"back"),
 
 1608            $this->ctrl->getLinkTargetByClass(
"ilwikipagegui", 
"printViewSelection")
 
 1613            $this->ctrl->redirect($this, 
"");
 
 1619        foreach ($page_ids as $p_id) {
 
 1621            $page_gui->setWiki($this->
object);
 
 1622            $page_gui->setOutputMode(
"print");
 
 1623            $page_content .= $page_gui->showPage();
 
 1625            if ($a_pdf_export) {
 
 1626                $page_content .= 
'<p style="page-break-after:always;"></p>';
 
 1632        if (!$a_pdf_export) {
 
 1633            $tpl->addOnLoadCode(
"il.Util.print();");
 
 1636        $tpl->setContent($page_content);
 
 1638        if (!$a_pdf_export) {
 
 1641            return $tpl->printToString();
 
 1654        $html = preg_replace(
"/\?dummy\=[0-9]+/", 
"", $html);
 
 1655        $html = preg_replace(
"/\?vers\=[0-9A-Za-z\-]+/", 
"", $html);
 
 1656        $html = str_replace(
'.css$Id$', 
".css", $html);
 
 1659            include_once 
"Services/PDFGeneration/classes/class.ilPDFGeneration.php";
 
 1660            include_once 
"Services/PDFGeneration/classes/class.ilPDFGenerationJob.php";
 
 1663            $job->setAutoPageBreak(
true)
 
 1664                ->setMarginLeft(
"10")
 
 1665                ->setMarginRight(
"10")
 
 1666                ->setMarginTop(
"10")
 
 1667                ->setMarginBottom(
"10")
 
 1668                ->setOutputMode(
"D")
 
 1669                ->setFilename(
"wiki.pdf")
 
 1670                ->setCreator(
"ILIAS Wiki")
 
 1671                ->setImageScale(1.25)
 
 1676            $html = preg_replace(
"/src=\"\\.\\//ims", 
"src=\"" . 
ILIAS_HTTP_PATH . 
"/", $html);
 
 1677            $html = preg_replace(
"/href=\"\\.\\//ims", 
"href=\"" . 
ILIAS_HTTP_PATH . 
"/", $html);
 
 1695        include_once(
"./Modules/Wiki/classes/class.ilWikiSearchResultsTableGUI.php");
 
 1697        $ilTabs->setTabActive(
"wiki_search_results");
 
 1699        if (trim(
$_POST[
"search_term"]) == 
"") {
 
 1701            $ilCtrl->redirectByClass(
"ilwikipagegui", 
"preview");
 
 1705            $this->object->getId(),
 
 1711            $this->object->getId(),
 
 1717        $tpl->setContent($table_gui->getHTML());
 
 1733                $this->object->getStyleSheetId(),
 
 1752        $tpl->setContent($this->form->getHTML());
 
 1754        $ilTabs->activateTab(
"settings");
 
 1770        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
 1771        $lng->loadLanguageModule(
"style");
 
 1773        include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1776        $fixed_style = 
$ilSetting->get(
"fixed_content_style_id");
 
 1777        $style_id = $this->
object->getStyleSheetId();
 
 1779        if ($fixed_style > 0) {
 
 1782                $this->lng->txt(
"global_fixed") . 
")");
 
 1783            $this->form->addItem($st);
 
 1791            $st_styles[0] = $this->lng->txt(
"default");
 
 1794            if ($style_id > 0) {
 
 1799                    $this->form->addItem($st);
 
 1804                    $this->form->addCommandButton(
 
 1806                        $lng->txt(
"style_edit_style")
 
 1808                    $this->form->addCommandButton(
 
 1810                        $lng->txt(
"style_delete_style")
 
 1825                $style_sel->setOptions($st_styles);
 
 1826                $style_sel->setValue($style_id);
 
 1827                $this->form->addItem($style_sel);
 
 1829                $this->form->addCommandButton(
 
 1830                    "saveStyleSettings",
 
 1833                $this->form->addCommandButton(
 
 1835                    $lng->txt(
"sty_create_ind_style")
 
 1839        $this->form->setTitle(
$lng->txt(
"wiki_style"));
 
 1840        $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
 1850        $ilCtrl->redirectByClass(
"ilobjstylesheetgui", 
"create");
 
 1860        $ilCtrl->redirectByClass(
"ilobjstylesheetgui", 
"edit");
 
 1870        $ilCtrl->redirectByClass(
"ilobjstylesheetgui", 
"delete");
 
 1880        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
 1881        if (
$ilSetting->get(
"fixed_content_style_id") <= 0 &&
 
 1883            || $this->object->getStyleSheetId() == 0)) {
 
 1885            $this->
object->update();
 
 1886            ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
 1888        $this->ctrl->redirect($this, 
"editStyleProperties");
 
 1911        $ipages_ids = array();
 
 1912        foreach ($ipages as 
$i) {
 
 1913            $ipages_ids[] = 
$i[
"page_id"];
 
 1917        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
 1919        $options = array(
"" => 
$lng->txt(
"please_select"));
 
 1920        foreach ($pages as $p) {
 
 1921            if (!in_array($p[
"id"], $ipages_ids)) {
 
 1925        if (count($options) > 0) {
 
 1926            include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
 1928            $si->setOptions($options);
 
 1930            $ilToolbar->addInputItem(
$si);
 
 1931            $ilToolbar->setFormAction(
$ilCtrl->getFormAction($this));
 
 1932            $ilToolbar->addFormButton(
$lng->txt(
"add"), 
"addImportantPage");
 
 1936        $ilTabs->activateTab(
"settings");
 
 1939        include_once(
"./Modules/Wiki/classes/class.ilImportantPagesTableGUI.php");
 
 1942        $tpl->setContent($imp_table->getHTML());
 
 1958        if (
$_POST[
"imp_page_id"] > 0) {
 
 1959            $this->
object->addImportantPage((
int) 
$_POST[
"imp_page_id"]);
 
 1960            ilUtil::sendSuccess(
$lng->txt(
"wiki_imp_page_added"), 
true);
 
 1962        $ilCtrl->redirect($this, 
"editImportantPages");
 
 1974        if (!is_array(
$_POST[
"imp_page_id"]) || count(
$_POST[
"imp_page_id"]) == 0) {
 
 1976            $ilCtrl->redirect($this, 
"editImportantPages");
 
 1978            include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
 1980            $cgui->setFormAction(
$ilCtrl->getFormAction($this));
 
 1981            $cgui->setHeaderText(
$lng->txt(
"wiki_sure_remove_imp_pages"));
 
 1982            $cgui->setCancel(
$lng->txt(
"cancel"), 
"editImportantPages");
 
 1983            $cgui->setConfirm(
$lng->txt(
"remove"), 
"removeImportantPages");
 
 1985            foreach (
$_POST[
"imp_page_id"] as 
$i) {
 
 1989            $tpl->setContent($cgui->getHTML());
 
 2006        if (is_array(
$_POST[
"imp_page_id"])) {
 
 2007            foreach (
$_POST[
"imp_page_id"] as 
$i) {
 
 2008                $this->
object->removeImportantPage((
int) $i);
 
 2011        ilUtil::sendSuccess(
$lng->txt(
"wiki_removed_imp_pages"), 
true);
 
 2012        $ilCtrl->redirect($this, 
"editImportantPages");
 
 2025        $this->
object->saveOrderingAndIndentation(
$_POST[
"ord"], 
$_POST[
"indent"]);
 
 2026        ilUtil::sendSuccess(
$lng->txt(
"wiki_ordering_and_indent_saved"), 
true);
 
 2027        $ilCtrl->redirect($this, 
"editImportantPages");
 
 2040        if (!is_array(
$_POST[
"imp_page_id"]) || count(
$_POST[
"imp_page_id"]) != 1) {
 
 2043            $this->
object->removeImportantPage((
int) 
$_POST[
"imp_page_id"][0]);
 
 2045            $this->
object->update();
 
 2046            ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
 2048        $ilCtrl->redirect($this, 
"editImportantPages");
 
 2058        $cont_exp->buildExportFile();
 
 2070        include_once 
"Modules/Wiki/classes/class.ilWikiPage.php";
 
 2072        if ($page->getWikiId() == $a_wiki_id) {
 
 2073            return $page->getTitle();
 
 2086        include_once 
"Modules/Wiki/classes/class.ilWikiPage.php";
 
 2102        $ilTabs->clearTargets();
 
 2106        $tpl->setContent($form->getHTML());
 
 2117        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2122        $hi->setValue(
$_GET[
"page"]);
 
 2123        $form->addItem($hi);
 
 2127        $radg->setRequired(
true);
 
 2129        if ($this->object->getEmptyPageTemplate()) {
 
 2131            $radg->addOption($op1);
 
 2134        include_once(
"./Modules/Wiki/classes/class.ilWikiPageTemplate.php");
 
 2137        foreach ($ts as $t) {
 
 2139            $radg->addOption($op);
 
 2142        $form->addItem($radg);
 
 2145        $form->addCommandButton(
"createPageUsingTemplate", 
$lng->txt(
"wiki_create_page"));
 
 2146        $form->addCommandButton(
"cancelCreationPageUsingTemplate", 
$lng->txt(
"cancel"));
 
 2148        $form->setTitle(
$lng->txt(
"wiki_new_page") . 
": " . 
$_GET[
"page"]);
 
 2149        $form->setFormAction(
$ilCtrl->getFormAction($this));
 
 2164        if ($form->checkInput()) {
 
 2165            $a_page = 
$_POST[
"page"];
 
 2166            $this->
object->createWikiPage($a_page, (
int) 
$_POST[
"page_templ"]);
 
 2170            $ilCtrl->redirectByClass(
"ilwikipagegui", 
"edit");
 
 2172            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 2175            $form->setValuesByPost();
 
 2176            $tpl->setContent($form->getHtml());
 
 2189        $ilCtrl->redirectByClass(
"ilwikipagegui", 
"preview");
 
 2203        if ($a_perm == 
"create") {
 
 2204            return parent::checkPermissionBool($a_perm, $a_cmd, 
$a_type, $a_ref_id);
 
 2207                $a_ref_id = $this->
object->getRefId();
 
 2209            include_once(
"./Modules/Wiki/classes/class.ilWikiPerm.php");
 
 2224        $this->log->debug(
"init");
 
 2226        $this->
object->initUserHTMLExport();
 
 2234        $this->log->debug(
"start");
 
 2236        $this->
object->startUserHTMLExport();
 
 2244        $this->log->debug(
"get progress");
 
 2246        $p = $this->
object->getUserHTMLExportProgress();
 
 2248        include_once(
"./Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php");
 
 2250        $pb->setCurrent($p[
"progress"]);
 
 2252        $r = 
new stdClass();
 
 2253        $r->progressBar = $pb->render();
 
 2254        $r->status = $p[
"status"];
 
 2255        include_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
 
 2256        $this->log->debug(
"status: " . $r->status);
 
 2266        $this->log->debug(
"download");
 
 2268        $this->
object->deliverUserHTMLExport();
 
 2278        if (!is_object($this->
object)) {
 
 2282            $this->object->getRefId(),
 
 2283            $this->user->getId()
 
 2285        if (count($ass_info) > 0) {
 
 2286            $ass_ids = array_map(
function (
$i) {
 
 2291            $this->tool_context->current()->addAdditionalData(
 
 2308            $this->object->getRefId(),
 
 2309            $this->user->getId()
 
 2312        foreach ($ass_info as 
$i) {     
 
 2314            $times_up = $ass->afterDeadlineStrict();
 
 2318                $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", $ass->getId());
 
 2319                $submit_link = 
$ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"finalizeAssignment");
 
 2320                $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", 
"");
 
 2322                $buttons[
$i->getId()][] = 
$ui->factory()->button()->primary(
$lng->txt(
"wiki_finalize_wiki"), $submit_link);
 
 2326            include_once 
"Modules/Exercise/classes/class.ilExSubmission.php";
 
 2328            if ($submission->hasSubmitted()) {
 
 2329                $submitted = $submission->getSelectedObject();
 
 2330                if ($submitted[
"ts"] != 
"") {
 
 2331                    $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", $ass->getId());
 
 2333                $dl_link = 
$ilCtrl->getLinkTargetByClass(
"ilwikipagegui", 
"downloadExcSubFile");
 
 2334                $ilCtrl->setParameterByClass(
"ilwikipagegui", 
"ass", 
"");
 
 2335                $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.
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