4 define (
"IL_PAGE_PRESENTATION",
"presentation");
5 define (
"IL_PAGE_EDIT",
"edit");
6 define (
"IL_PAGE_PREVIEW",
"preview");
7 define (
"IL_PAGE_OFFLINE",
"offline");
8 define (
"IL_PAGE_PRINT",
"print");
10 include_once (
"./Services/COPage/classes/class.ilPageEditorGUI.php");
11 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
12 include_once(
"./Services/Clipboard/classes/class.ilEditClipboardGUI.php");
13 include_once(
"./Services/Utilities/classes/class.ilDOMUtil.php");
84 $a_prevent_get_id =
false, $a_lang =
"")
92 if ($a_old_nr == 0 && !$a_prevent_get_id &&
$_GET[
"old_nr"] > 0)
94 $a_old_nr =
$_GET[
"old_nr"];
98 if ($a_lang ==
"" &&
$_GET[
"transl"] !=
"")
120 $this->output2template =
true;
121 $this->question_xml =
"";
122 $this->question_html =
"";
123 $this->tabs_gui = $ilTabs;
125 $this->template_output_var =
"PAGE_CONTENT";
126 $this->citation =
false;
127 $this->change_comments =
false;
128 $this->page_back_title = $this->lng->txt(
"page");
129 $lng->loadLanguageModule(
"content");
130 $lng->loadLanguageModule(
"copg");
134 $ilCtrl->saveParameter($this,
"transl");
152 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
165 $this->parent_type = $a_val;
205 $this->old_nr = $a_val;
215 return $this->old_nr;
240 return $this->language;
270 $this->page_config = $a_val;
289 $this->bib_id = $a_id;
297 return $this->bib_id ? $this->bib_id : 0;
307 $this->obj = $a_pg_obj;
327 $this->output_mode = $a_mode;
337 $this->output2template = $a_output;
347 $this->presentation_title = $a_title;
367 $this->link_params = $l_params;
377 $this->link_frame = $l_frame;
382 return $this->link_frame;
387 $this->link_xml = $link_xml;
388 $this->link_xml_set =
true;
393 return $this->link_xml;
398 $this->question_xml = $question_xml;
408 return $this->question_xml;
418 $this->target_var = $a_variable;
428 $this->template_output_var = $a_value;
443 $this->sourcecode_download_script = $script_name;
458 $this->citation = $a_enabled;
468 $this->locator = $a_locator;
473 $this->tabs_gui = $a_tabs;
478 $this->page_back_title = $a_title;
488 $this->file_download_link = $a_download_link;
498 return $this->file_download_link;
508 $this->fullscreen_link = $a_fullscreen_link;
518 return $this->fullscreen_link;
523 $this->int_link_return = $a_return;
528 $this->change_comments = $a_enabled;
538 $this->notes_enabled = $a_enabled;
539 $this->notes_parent_id = $a_parent_id;
544 return $this->notes_enabled;
553 $this->offline_directory = $offdir;
562 return $this->offline_directory;
574 $this->view_page_link = $a_link;
575 $this->view_page_target = $a_target;
583 return $this->view_page_link;
591 return $this->view_page_target;
596 $this->act_obj = $a_obj;
597 $this->act_meth = $a_meth;
607 $this->enabled_news = $a_enabled;
608 $this->news_obj_id = $a_news_obj_id;
609 $this->news_obj_type = $a_news_obj_type;
619 return $this->enabled_news;
627 $this->tab_hook =
array(
"obj" => $a_object,
"func" => $a_function);
637 $this->editpreview = $a_editpreview;
657 $this->tabs_enabled = $a_enabledtabs;
677 $this->enabledpagefocus = $a_enabledpagefocus;
687 return $this->enabledpagefocus;
698 $this->exp_frame = $a_exp_frame;
699 $this->exp_id = $a_exp_id;
700 $this->exp_target_script = $a_exp_target_script;
710 $this->prependinghtml = $a_prependinghtml;
720 return $this->prependinghtml;
730 $this->enableediting = $a_enableediting;
750 $this->rawpagecontent = $a_rawpagecontent;
770 $this->styleid = $a_styleid;
780 return $this->styleid;
790 $this->compare_mode = $a_val;
810 $this->abstract_only = $a_val;
830 $this->render_page_container = $a_val;
853 $a_observer_obj = NULL, $a_observer_func =
"")
855 $this->use_meta_data =
true;
856 $this->meta_data_rep_obj = $a_rep_obj;
857 $this->meta_data_sub_obj_id = $a_sub_obj_id;
858 $this->meta_data_type =
$a_type;
859 $this->meta_data_observer_obj = $a_observer_obj;
860 $this->meta_data_observer_func = $a_observer_func;
875 $file_download_link = $ilCtrl->getLinkTarget($this,
"downloadFile");
877 return $file_download_link;
892 $fullscreen_link = $ilCtrl->getLinkTarget($this,
"displayMediaFullscreen",
"",
false,
false);
894 return $fullscreen_link;
907 if ($this->sourcecode_download_script ==
"" && $this->
getOutputMode() !=
"offline")
909 $l = $ilCtrl->getLinkTarget($this,
"");
922 global $ilPluginAdmin;
926 foreach ($pl_names as $pl_name)
929 "COPage",
"pgcp", $pl_name);
930 if ($plugin->isValidParentType($this->getPageObject()->getParentType()))
932 $xml.=
'<ComponentPlugin Name="'.$plugin->getPluginName().
939 $xml =
"<ComponentPlugins>".$xml.
"</ComponentPlugins>";
952 $next_class = $this->ctrl->getNextClass($this);
954 $this->log->debug(
"next_class: ".$next_class);
956 $cmd = $this->ctrl->getCmd();
961 $ilCtrl->setReturn($this,
"edit");
965 case 'ilobjectmetadatagui':
967 $ilTabs->setTabActive(
"meta_data");
968 include_once
'Services/Object/classes/class.ilObjectMetaDataGUI.php';
969 $md_gui =
new ilObjectMetaDataGUI($this->meta_data_rep_obj, $this->meta_data_type, $this->meta_data_sub_obj_id);
970 if (is_object($this->meta_data_observer_obj))
972 $md_gui->addMDObserver($this->meta_data_observer_obj,
973 $this->meta_data_observer_func,
"General");
975 $this->ctrl->forwardCommand($md_gui);
978 case "ileditclipboardgui":
982 $clip_gui->setPageBackTitle($this->page_back_title);
984 $ret = $this->ctrl->forwardCommand($clip_gui);
989 switch(
$_GET[
"notes_mode"])
993 $ilTabs->setTabActive(
"edit");
998 case 'ilpublicuserprofilegui':
999 require_once
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
1001 $ret = $this->ctrl->forwardCommand($profile_gui);
1004 case "ilpageeditorgui":
1008 $ilCtrl->redirect($this,
"preview");
1011 $page_editor->setLocator($this->locator);
1012 $page_editor->setHeader($this->
getHeader());
1013 $page_editor->setPageBackTitle($this->page_back_title);
1014 $page_editor->setIntLinkReturn($this->int_link_return);
1016 $ret = $this->ctrl->forwardCommand($page_editor);
1019 case 'ilnewsitemgui':
1020 include_once(
"./Services/News/classes/class.ilNewsItemGUI.php");
1022 $news_item_gui->setEnableEdit(
true);
1023 $news_item_gui->setContextObjId($this->news_obj_id);
1024 $news_item_gui->setContextObjType($this->news_obj_type);
1025 $news_item_gui->setContextSubObjId($this->obj->getId());
1026 $news_item_gui->setContextSubObjType(
"pg");
1028 $ret = $ilCtrl->forwardCommand($news_item_gui);
1032 $ret = $this->ctrl->forwardCommand($profile_gui);
1035 case "ilpropertyformgui":
1036 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1038 $this->ctrl->forwardCommand($form);
1041 case "ilinternallinkgui":
1042 $this->lng->loadLanguageModule(
"content");
1043 require_once(
"./Services/Link/classes/class.ilInternalLinkGUI.php");
1047 $link_gui->filterLinkType(
"PageObject_FAQ");
1048 $link_gui->filterLinkType(
"GlossaryItem");
1049 $link_gui->filterLinkType(
"Media_Media");
1050 $link_gui->filterLinkType(
"Media_FAQ");
1052 $link_gui->setFilterWhiteList(
true);
1053 $link_gui->setMode(
"asynch");
1054 $ilCtrl->forwardCommand($link_gui);
1057 case "ilquestioneditgui":
1059 include_once(
"./Modules/TestQuestionPool/classes/class.ilQuestionEditGUI.php");
1063 $edit_gui->setSelfAssessmentEditingMode(
true);
1064 $ret = $ilCtrl->forwardCommand($edit_gui);
1065 $this->tpl->setContent(
$ret);
1068 case 'ilassquestionfeedbackeditinggui':
1076 $lng->loadLanguageModule(
"assessment");
1079 require_once
'Modules/TestQuestionPool/classes/class.assQuestionGUI.php';
1080 require_once
'Modules/TestQuestionPool/classes/class.assQuestion.php';
1082 $questionGUI->object->setObjId(0);
1083 $questionGUI->object->setSelfAssessmentEditingMode(
true);
1084 $questionGUI->object->setPreventRteUsage($this->
getPageConfig()->getPreventRteUsage());
1087 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
1089 $ilCtrl->forwardCommand($gui);
1103 $cmd = $this->ctrl->getCmd(
"preview");
1120 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
1122 $ilTabs->clearTargets();
1124 $ilTabs->setBackTarget($lng->txt(
"back"),
1125 $ilCtrl->getLinkTarget($this,
"edit"));
1127 $ilCtrl->setParameterByClass(
"ilquestioneditgui",
"q_id",
$_GET[
"q_id"]);
1128 $ilTabs->addTab(
"question", $lng->txt(
"question"),
1129 $ilCtrl->getLinkTargetByClass(
"ilquestioneditgui",
"editQuestion"));
1131 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
1132 $ilCtrl->setParameterByClass(
"ilAssQuestionFeedbackEditingGUI",
"q_id",
$_GET[
"q_id"]);
1133 $ilTabs->addTab(
"feedback", $lng->txt(
"feedback"),
1136 $ilTabs->activateTab($a_active);
1154 $this->ctrl->redirect($this,
"edit");
1163 $this->ctrl->redirect($this,
"edit");
1174 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1180 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
1183 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/COPage/js/ilCOPagePres.js");
1186 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
1189 include_once(
"./Services/MediaObjects/classes/class.ilPlayerUtil.php");
1197 $this->log->debug(
"ilPageObjectGUI, showPage() in edit mode.");
1200 $tpl =
new ilTemplate(
"tpl.page_edit_wysiwyg.html",
true,
true,
"Services/COPage");
1204 $tpl->setVariable(
"CLASS_PAGE_TD",
"ilc_Page");
1209 $tpl->setCurrentBlock(
"change_comment");
1210 $tpl->setVariable(
"TXT_ADD_COMMENT", $this->lng->txt(
"cont_add_change_comment"));
1211 $tpl->parseCurrentBlock();
1214 $tpl->setVariable(
"WYSIWYG_ACTION",
1215 $ilCtrl->getFormActionByClass(
"ilpageeditorgui",
"",
"",
true));
1218 $sel_media_mode = ($ilUser->getPref(
"ilPageEditor_MediaMode") ==
"disable")
1221 $sel_html_mode = ($ilUser->getPref(
"ilPageEditor_HTMLMode") ==
"disable")
1224 $sel_js_mode =
"disable";
1234 $tpl->setVariable(
"TXT_CONFIRM_DELETE", $lng->txt(
"cont_confirm_delete"));
1239 $ilTabs->addNonTabbedLink(
"pres_view", $this->lng->txt(
"cont_presentation_view"),
1244 $this->
addActionsMenu($tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode);
1247 if ($sel_js_mode ==
"enable")
1250 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1254 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/COPage/js/ilcopagecallback.js");
1255 $GLOBALS[
"tpl"]->addJavascript(
"Services/COPage/js/page_editing.js");
1257 include_once(
"./Services/UIComponent/Modal/classes/class.ilModalGUI.php");
1259 $lng->toJS(
"cont_error");
1261 include_once
'./Services/Style/Content/classes/class.ilObjStyleSheet.php';
1262 $GLOBALS[
"tpl"]->addOnloadCode(
"var preloader = new Image(); 1263 preloader.src = './templates/default/images/loader.svg'; 1264 ilCOPage.setUser('".$ilUser->getLogin().
"'); 1265 ilCOPage.setContentCss('".
1267 ", ".ilUtil::getStyleSheetLocation().
1268 ", ./Services/COPage/css/tiny_extra.css".
1270 include_once(
"./Services/COPage/classes/class.ilPCParagraphGUI.php");
1273 $GLOBALS[
"tpl"]->addOnloadCode(
"ilCOPage.addTextFormat('".$c.
"');");
1277 $GLOBALS[
"tpl"]->addJavascript(
"Services/COPage/tiny/4_2_4/tinymce.js");
1278 $tpl->touchBlock(
"init_dragging");
1281 $tpl->setVariable(
"IL_TINY_MENU",
1284 $cfg->getEnableInternalLinks(),
1285 $cfg->getEnableWikiLinks(),
1286 $cfg->getEnableKeywords(),
1288 $cfg->getEnableAnchors(),
true,
1289 $cfg->getEnableUserLinks()
1293 include_once(
"./Services/Link/classes/class.ilInternalLinkGUI.php");
1294 $tpl->setCurrentBlock(
"int_link_prep");
1296 $ilCtrl->getLinkTargetByClass(
array(
"ilpageeditorgui",
"ilinternallinkgui"),
1297 "",
false,
true,
false)));
1298 $tpl->parseCurrentBlock();
1300 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1302 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/UIComponent/Explorer/js/ilExplorer.js");
1311 $tpl->setCurrentBlock(
"multi_actions");
1312 if ($sel_js_mode ==
"enable")
1314 $tpl->setVariable(
"ONCLICK_DE_ACTIVATE_SELECTED",
'onclick="return ilEditMultiAction(\'activateSelected\');"');
1315 $tpl->setVariable(
"ONCLICK_DELETE_SELECTED",
'onclick="return ilEditMultiAction(\'deleteSelected\');"');
1316 $tpl->setVariable(
"ONCLICK_ASSIGN_CHARACTERISTIC",
'onclick="return ilEditMultiAction(\'assignCharacteristicForm\');"');
1317 $tpl->setVariable(
"ONCLICK_COPY_SELECTED",
'onclick="return ilEditMultiAction(\'copySelected\');"');
1318 $tpl->setVariable(
"ONCLICK_CUT_SELECTED",
'onclick="return ilEditMultiAction(\'cutSelected\');"');
1319 $tpl->setVariable(
"TXT_SELECT_ALL", $this->lng->txt(
"select_all"));
1320 $tpl->setVariable(
"ONCLICK_SELECT_ALL",
'onclick="return ilEditMultiAction(\'selectAll\');"');
1322 $tpl->setVariable(
"TXT_DE_ACTIVATE_SELECTED", $this->lng->txt(
"cont_ed_enable"));
1323 $tpl->setVariable(
"TXT_ASSIGN_CHARACTERISTIC", $this->lng->txt(
"cont_assign_characteristic"));
1324 $tpl->setVariable(
"TXT_DELETE_SELECTED", $this->lng->txt(
"cont_delete_selected"));
1325 $tpl->setVariable(
"TXT_COPY_SELECTED", $this->lng->txt(
"copy"));
1326 $tpl->setVariable(
"TXT_CUT_SELECTED", $this->lng->txt(
"cut"));
1328 $tpl->parseCurrentBlock();
1335 $tpl =
new ilTemplate(
"tpl.page.html",
true,
true,
"Services/COPage");
1338 $tpl->touchBlock(
"page_focus");
1341 include_once(
"./Services/User/classes/class.ilUserUtil.php");
1346 $tpl->touchBlock(
"page_container_1");
1347 $tpl->touchBlock(
"page_container_2");
1348 $tpl->touchBlock(
"page_container_3");
1360 $ilCtrl->setParameter($this,
"history_mode",
"1");
1363 if (is_array($hist_info[
"previous"]))
1365 $tpl->setCurrentBlock(
"previous_rev");
1366 $tpl->setVariable(
"TXT_PREV_REV", $lng->txt(
"cont_previous_rev"));
1367 $ilCtrl->setParameter($this,
"old_nr", $hist_info[
"previous"][
"nr"]);
1368 $tpl->setVariable(
"HREF_PREV",
1369 $ilCtrl->getLinkTarget($this,
"preview"));
1370 $tpl->parseCurrentBlock();
1374 $tpl->setCurrentBlock(
"previous_rev_disabled");
1375 $tpl->setVariable(
"TXT_PREV_REV", $lng->txt(
"cont_previous_rev"));
1376 $tpl->parseCurrentBlock();
1382 $tpl->setCurrentBlock(
"next_rev");
1383 $tpl->setVariable(
"TXT_NEXT_REV", $lng->txt(
"cont_next_rev"));
1384 $ilCtrl->setParameter($this,
"old_nr", $hist_info[
"next"][
"nr"]);
1385 $tpl->setVariable(
"HREF_NEXT",
1386 $ilCtrl->getLinkTarget($this,
"preview"));
1387 $tpl->parseCurrentBlock();
1390 $tpl->setCurrentBlock(
"latest_rev");
1391 $tpl->setVariable(
"TXT_LATEST_REV", $lng->txt(
"cont_latest_rev"));
1392 $ilCtrl->setParameter($this,
"old_nr",
"");
1393 $tpl->setVariable(
"HREF_LATEST",
1394 $ilCtrl->getLinkTarget($this,
"preview"));
1395 $tpl->parseCurrentBlock();
1398 $ilCtrl->setParameter($this,
"history_mode",
"");
1401 if ($c_old_nr > 0 && $ilUser->getId() != ANONYMOUS_USER_ID)
1403 $tpl->setCurrentBlock(
"rollback");
1404 $ilCtrl->setParameter($this,
"old_nr", $c_old_nr);
1405 $tpl->setVariable(
"HREF_ROLLBACK",
1406 $ilCtrl->getLinkTarget($this,
"rollbackConfirmation"));
1407 $ilCtrl->setParameter($this,
"old_nr",
"");
1408 $tpl->setVariable(
"TXT_ROLLBACK",
1409 $lng->txt(
"cont_rollback"));
1410 $tpl->parseCurrentBlock();
1414 $tpl->setCurrentBlock(
"hist_nav");
1415 $tpl->setVariable(
"TXT_REVISION", $lng->txt(
"cont_revision"));
1416 $tpl->setVariable(
"VAL_REVISION_DATE",
1418 $tpl->setVariable(
"VAL_REV_USER",
1420 $tpl->parseCurrentBlock();
1428 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormActionByClass(
"ilpageeditorgui"));
1435 $this->obj->getId(), $this->obj->getLanguage());
1436 $mob_links =
array();
1437 foreach($links as $link)
1439 if ($link[
"type"] ==
"mob")
1449 if (count($mob_links) > 0)
1451 $tpl->setCurrentBlock(
"med_link");
1452 $tpl->setVariable(
"TXT_LINKED_MOBS", $this->lng->txt(
"cont_linked_mobs"));
1453 $tpl->setVariable(
"SEL_MED_LINKS",
1455 $tpl->setVariable(
"TXT_EDIT_MEDIA", $this->lng->txt(
"cont_edit_mob"));
1456 $tpl->setVariable(
"TXT_COPY_TO_CLIPBOARD", $this->lng->txt(
"cont_copy_to_clipboard"));
1458 $tpl->parseCurrentBlock();
1462 include_once(
"./Services/COPage/classes/class.ilPCContentInclude.php");
1465 if (count($snippets) > 0)
1467 foreach ($snippets as $s)
1469 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
1472 $tpl->setCurrentBlock(
"med_link");
1473 $tpl->setVariable(
"TXT_CONTENT_SNIPPETS_USED", $this->lng->txt(
"cont_snippets_used"));
1474 $tpl->setVariable(
"SEL_SNIPPETS",
1476 $tpl->setVariable(
"TXT_SHOW_INFO", $this->lng->txt(
"cont_show_info"));
1477 $tpl->parseCurrentBlock();
1485 $tpl->setCurrentBlock(
"activation_txt");
1486 $tpl->setVariable(
"TXT_SCHEDULED_ACTIVATION", $lng->txt(
"cont_scheduled_activation"));
1487 $tpl->setVariable(
"SA_FROM",
1491 $tpl->setVariable(
"SA_TO",
1495 $tpl->parseCurrentBlock();
1499 if (
$_GET[
"reloadTree"] ==
"y")
1501 $tpl->setCurrentBlock(
"reload_tree");
1502 $tpl->setVariable(
"LINK_TREE",
1503 $this->ctrl->getLinkTargetByClass(
"ilobjlearningmodulegui",
"explorer",
"",
false,
false));
1504 $tpl->parseCurrentBlock();
1508 $builded = $this->obj->buildDom();
1515 if (!$this->obj->checkPCIds())
1517 $this->obj->insertPCIds();
1518 $this->obj->update(
true,
true);
1521 $this->obj->addFileSizes();
1522 $this->obj->addHierIDs();
1524 $hids = $this->obj->getHierIds();
1525 $row1_ids = $this->obj->getFirstRowIds();
1526 $col1_ids = $this->obj->getFirstColumnIds();
1527 $litem_ids = $this->obj->getListItemIds();
1528 $fitem_ids = $this->obj->getFileItemIds();
1531 $hids = $this->obj->getHierIds();
1532 foreach($hids as $hid)
1534 $tpl->setCurrentBlock(
"add_dhtml");
1535 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_".$hid);
1536 $tpl->parseCurrentBlock();
1540 foreach($col1_ids as $hid)
1542 $tpl->setCurrentBlock(
"add_dhtml");
1543 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_r".$hid);
1544 $tpl->parseCurrentBlock();
1548 foreach($row1_ids as $hid)
1550 $tpl->setCurrentBlock(
"add_dhtml");
1551 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_c".$hid);
1552 $tpl->parseCurrentBlock();
1556 foreach($litem_ids as $hid)
1558 $tpl->setCurrentBlock(
"add_dhtml");
1559 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_i".$hid);
1560 $tpl->parseCurrentBlock();
1564 foreach($fitem_ids as $hid)
1566 $tpl->setCurrentBlock(
"add_dhtml");
1567 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_i".$hid);
1568 $tpl->parseCurrentBlock();
1573 $this->obj->addFileSizes();
1580 if (!$this->link_xml_set)
1594 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
1596 $template_xml =
$style->getTemplateXML();
1597 $disable_auto_margins =
"n";
1598 if (
$style->lookupStyleSetting(
"disable_auto_margins"))
1600 $disable_auto_margins =
"y";
1607 $content =
"<dummy><PageObject><PageContent><Paragraph>".
1608 $this->obj->getFirstParagraphText().$link_xml.
1609 "</Paragraph></PageContent></PageObject></dummy>";
1613 $content = $this->obj->getXMLFromDom(
false,
true,
true,
1614 $link_xml.$this->getQuestionXML().$template_xml.$this->getComponentPluginsXML());
1618 if($builded !==
true)
1651 $enlarge_path =
"images/enlarge.svg";
1655 ?
"ilc_PrintPageTitle" 1660 $enable_split_new = ($this->obj->getParentType() ==
"lm")
1666 if (($this->obj->getParentType() ==
"lm") &&
1668 $this->obj->getId()))
1670 $enable_split_next =
"y";
1674 $enable_split_next =
"n";
1684 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
1696 ? $ilUser->getPref(
"ilPageEditor_MediaMode")
1699 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
1703 include_once(
"./Services/MediaObjects/classes/class.ilPlayerUtil.php");
1711 $current_ts =
time();
1712 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
1715 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
1717 'enable_placeholder' => $cfg->getEnablePCType(
"PlaceHolder") ?
"y" :
"n",
1718 'pg_id' => $this->obj->getId(),
'pg_title_class' => $pg_title_class,
1719 'webspace_path' => $wb_path,
'enlarge_path' => $enlarge_path,
1720 'img_col' => $col_path,
1721 'img_row' => $row_path,
1722 'img_item' => $item_path,
1724 'enable_split_new' => $enable_split_new,
1725 'enable_split_next' => $enable_split_next,
1727 'file_download_link' => $file_download_link,
1728 'fullscreen_link' => $fullscreen_link,
1729 'img_path' => $img_path,
1730 'parent_id' => $this->obj->getParentId(),
1732 'encoded_download_script' => urlencode($this->sourcecode_download_script),
1735 'pagebreak' => $this->lng->txt(
'dgl_pagebreak'),
1736 'page' => $this->lng->txt(
'page'),
1737 'citate_page' => $this->lng->txt(
'citate_page'),
1738 'citate_from' => $this->lng->txt(
'citate_from'),
1739 'citate_to' => $this->lng->txt(
'citate_to'),
1740 'citate' => $this->lng->txt(
'citate'),
1741 'enable_rep_objects' => $cfg->getEnablePCType(
"Resources") ?
"y" :
"n",
1742 'enable_login_page' => $cfg->getEnablePCType(
"LoginPageElement") ?
"y" :
"n",
1744 'enable_tabs' => $cfg->getEnablePCType(
"Tabs") ?
"y" :
"n",
1745 'enable_sa_qst' => $cfg->getEnableSelfAssessment() ?
"y" :
"n",
1746 'enable_file_list' => $cfg->getEnablePCType(
"FileList") ?
"y" :
"n",
1747 'enable_content_includes' => $cfg->getEnablePCType(
"ContentInclude") ?
"y" :
"n",
1748 'enable_content_templates' => (count($this->
getPageObject()->getContentTemplates()) > 0) ?
"y" :
"n",
1749 'paste' => $paste ?
"y" :
"n",
1750 'media_mode' => $media_mode,
1751 'javascript' => $sel_js_mode,
1752 'paragraph_plugins' => $paragraph_plugin_string,
1753 'disable_auto_margins' => $disable_auto_margins,
1754 'page_toc' => $cfg->getEnablePageToc() ?
"y" :
"n",
1755 'enable_profile' => $cfg->getEnablePCType(
"Profile") ?
"y" :
"n",
1756 'enable_verification' => $cfg->getEnablePCType(
"Verification") ?
"y" :
"n",
1757 'enable_blog' => $cfg->getEnablePCType(
"Blog") ?
"y" :
"n",
1758 'enable_skills' => $cfg->getEnablePCType(
"Skills") ?
"y" :
"n",
1759 'enable_qover' => $cfg->getEnablePCType(
"QuestionOverview") ?
"y" :
"n",
1760 'enable_consultation_hours' => $cfg->getEnablePCType(
"ConsultationHours") ?
"y" :
"n",
1761 'enable_my_courses' => $cfg->getEnablePCType(
"MyCourses") ?
"y" :
"n",
1762 'enable_amd_page_list' => $cfg->getEnablePCType(
"AMDPageList") ?
"y" :
"n",
1763 'current_ts' => $current_ts,
1765 'flv_video_player' => $flv_video_player
1767 if($this->link_frame !=
"")
1768 $params[
"pg_frame"] = $this->link_frame;
1775 $params[
"incl_elements_date"] = $this->obj->getLastUpdateOfIncludedElements();
1779 include_once(
"./Services/COPage/classes/class.ilPCSection.php");
1783 $md5 = md5(serialize(
$params).$link_xml.$template_xml.$md5_adds);
1792 $md5 == $this->obj->getRenderMd5() &&
1793 ($this->obj->getLastChange() < $this->obj->getRenderedTime()) &&
1794 $this->obj->getRenderedTime() !=
"" &&
1795 $this->obj->old_nr == 0)
1798 $output = $this->obj->getRenderedContent();
1802 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
1804 $this->log->debug(
"Calling XSLT, content: ".$content);
1806 $args =
array(
'/_xml' => $content,
'/_xsl' => $xsl );
1808 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl", NULL, $args,
$params);
1812 && $this->obj->old_nr == 0)
1814 $this->obj->writeRenderedContent(
$output, $md5);
1821 $ilUser->getPref(
"ilPageEditor_HTMLMode") !=
"disable")
1829 include_once
'./Services/MathJax/classes/class.ilMathJax.php';
1861 $output =
'<div class="il_editarea_disabled">'.$output.
'</div>';
1865 include_once(
"./Services/COPage/classes/class.ilCOPagePCDef.php");
1867 foreach ($defs as $def)
1870 $pc_class = $def[
"pc_class"];
1880 $js_files = $pc_obj->getJavascriptFiles($this->
getOutputMode());
1881 foreach ($js_files as
$js)
1883 $GLOBALS[
"tpl"]->addJavascript($js);
1888 foreach ($css_files as $css)
1894 $onload_code = $pc_obj->getOnloadCode($this->
getOutputMode());
1895 foreach ($onload_code as
$code)
1897 $GLOBALS[
"tpl"]->addOnloadCode($code);
1908 if (
$_GET[
"updated_pc_id_str"] !=
"")
1913 $tpl->setCurrentBlock(
"edit_page");
1914 $tpl->parseCurrentBlock();
1915 echo $tpl->get(
"edit_page");
1948 while (is_int(
$start = strpos(
$output,
"<!--ParStart-->")) &&
1952 str_replace(
array(
"{",
"}"),
array(
"{",
"}"),
1970 return array(
"deactivatePage" => $lng->txt(
"cont_deactivate_page"),
1971 "activatePage" => $lng->txt(
"cont_activate_page"));
1982 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
1986 $list->setListTitle($lng->txt(
"actions"));
1987 $list->setId(
"copage_act");
1995 $list->addItem($captions[
"deactivatePage"],
"",
1996 $ilCtrl->getLinkTarget($this,
"deactivatePage"));
2000 $list->addItem($captions[
"activatePage"],
"",
2001 $ilCtrl->getLinkTarget($this,
"activatePage"));
2004 $a_tpl->setVariable(
"PAGE_ACTIONS", $list->getHTML());
2011 $list->addItem($lng->txt(
"cont_initial_attached_content"),
"",
2012 $ilCtrl->getLinkTarget($this,
"initialOpenedContent"));
2023 $a_tpl->setVariable(
"PAGE_ACTIONS", $list->getHTML());
2026 $lng->loadLanguageModule(
"content");
2028 $list->setListTitle($lng->txt(
"cont_edit_mode"));
2029 $list->setId(
"copage_ed_mode");
2032 if ($sel_media_mode ==
"enable")
2034 $ilCtrl->setParameter($this,
"media_mode",
"disable");
2035 $list->addItem($lng->txt(
"cont_deactivate_media"),
"",
2036 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2040 $ilCtrl->setParameter($this,
"media_mode",
"enable");
2041 $list->addItem($lng->txt(
"cont_activate_media"),
"",
2042 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2044 $ilCtrl->setParameter($this,
"media_mode",
"");
2049 if ($sel_html_mode ==
"enable")
2051 $ilCtrl->setParameter($this,
"html_mode",
"disable");
2052 $list->addItem($lng->txt(
"cont_deactivate_html"),
"",
2053 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2057 $ilCtrl->setParameter($this,
"html_mode",
"enable");
2058 $list->addItem($lng->txt(
"cont_activate_html"),
"",
2059 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2062 $ilCtrl->setParameter($this,
"html_mode",
"");
2065 if ($sel_js_mode ==
"enable")
2067 $ilCtrl->setParameter($this,
"js_mode",
"disable");
2068 $list->addItem($lng->txt(
"cont_deactivate_js"),
"",
2069 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2073 $ilCtrl->setParameter($this,
"js_mode",
"enable");
2074 $list->addItem($lng->txt(
"cont_activate_js"),
"",
2075 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2077 $ilCtrl->setParameter($this,
"js_mode",
"");
2079 $a_tpl->setVariable(
"EDIT_MODE", $list->getHTML());
2097 if ($cfg->getMultiLangSupport())
2103 include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
2106 if (!$ot->getContentActivated())
2118 $lng->loadLanguageModule(
"meta");
2122 $l = $ot->getMasterLanguage();
2123 $a_list->addItem($lng->txt(
"cont_edit_language_version").
": ".
2124 $lng->txt(
"meta_l_".
$l),
"",
2125 $ilCtrl->getLinkTarget($this,
"editMasterLanguage"));
2128 foreach ($ot->getLanguages() as $al =>
$lang)
2131 $al != $ot->getMasterLanguage())
2133 $ilCtrl->setParameter($this,
"totransl", $al);
2134 $a_list->addItem($lng->txt(
"cont_edit_language_version").
": ".
2135 $lng->txt(
"meta_l_".$al),
"",
2136 $ilCtrl->getLinkTarget($this,
"switchToLanguage"));
2137 $ilCtrl->setParameter($this,
"totransl",
$_GET[
"totransl"]);
2147 include_once(
"./Services/COPage/classes/class.ilPageMultiLangGUI.php");
2150 $a_tpl->setVariable(
"MULTI_LANG_INFO", $ml_gui->getMultiLangInfo($this->getPageObject()->getLanguage()));
2167 if (
$_GET[
"media_mode"] !=
"")
2169 if (
$_GET[
"media_mode"] ==
"disable")
2171 $ilUser->writePref(
"ilPageEditor_MediaMode",
"disable");
2175 $ilUser->writePref(
"ilPageEditor_MediaMode",
"");
2178 if (
$_GET[
"html_mode"] !=
"")
2180 if (
$_GET[
"html_mode"] ==
"disable")
2182 $ilUser->writePref(
"ilPageEditor_HTMLMode",
"disable");
2186 $ilUser->writePref(
"ilPageEditor_HTMLMode",
"");
2189 if (
$_GET[
"js_mode"] !=
"")
2191 if (
$_GET[
"js_mode"] ==
"disable")
2193 $ilUser->writePref(
"ilPageEditor_JavaScript",
"disable");
2197 $ilUser->writePref(
"ilPageEditor_JavaScript",
"");
2201 $ilCtrl->redirect($this,
"edit");
2209 $a_int_links =
false, $a_wiki_links =
false, $a_keywords =
false,
2210 $a_style_id = 0, $a_paragraph_styles =
true, $a_save_return =
true,
2211 $a_anchors =
false, $a_save_new =
true, $a_user_links =
false)
2217 include_once(
"./Services/COPage/classes/class.ilPageEditorSettings.php");
2219 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
2221 $btpl =
new ilTemplate(
"tpl.tiny_menu.html",
true,
true,
"Services/COPage");
2226 $btpl->touchBlock(
"debug_ghost");
2230 $btpl->touchBlock(
"blist_button");
2232 $lng->txt(
"cont_blist"),
2236 $btpl->touchBlock(
"nlist_button");
2238 $lng->txt(
"cont_nlist"),
2242 $btpl->touchBlock(
"list_indent");
2244 $lng->txt(
"cont_list_indent"),
2248 $btpl->touchBlock(
"list_outdent");
2250 $lng->txt(
"cont_list_outdent"),
2255 $btpl->touchBlock(
"bb_ilink_button");
2264 $btpl->touchBlock(
"bb_ulink_button");
2268 $btpl->touchBlock(
"rformat_button");
2272 if ($a_paragraph_styles)
2275 $btpl->setCurrentBlock(
"new_par");
2276 $btpl->setVariable(
"IMG_NEWPAR",
"+");
2277 $btpl->parseCurrentBlock();
2281 $btpl->setCurrentBlock(
"par_edit");
2282 $btpl->setVariable(
"TXT_PAR_FORMAT", $lng->txt(
"cont_par_format"));
2283 include_once(
"./Services/COPage/classes/class.ilPCParagraphGUI.php");
2288 $lng->txt(
"cont_paragraph_styles"),
"iltinymenu_bd");
2290 $btpl->parseCurrentBlock();
2295 $btpl->setCurrentBlock(
"bb_kw_button");
2296 $btpl->setVariable(
"CC_KW",
"kw");
2297 $btpl->parseCurrentBlock();
2305 $btpl->setCurrentBlock(
"bb_wikilink_button2");
2306 $btpl->setVariable(
"TXT_WIKI_BUTTON2", $lng->txt(
"obj_wiki"));
2307 $btpl->setVariable(
"WIKI_BUTTON2_URL", $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
""));
2308 $btpl->parseCurrentBlock();
2312 $btpl->setCurrentBlock(
"bb_wikilink_button");
2313 $btpl->setVariable(
"TXT_WLN2", $lng->txt(
"obj_wiki"));
2314 $btpl->parseCurrentBlock();
2321 include_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
2325 if (in_array($c,
array(
"com",
"quot",
"acc",
"code")))
2330 $a_par_type,
"active_".$c,
true))
2333 if ($aset->get(
"use_physical"))
2335 $cc_code = str_replace(
array(
"str",
"emp",
"imp"),
array(
"B",
"I",
"U"), $cc_code);
2340 $btpl->setCurrentBlock(
"bb_".$c.
"_button");
2341 $btpl->setVariable(
"CC_".strtoupper($c), $cc_code);
2342 $btpl->parseCurrentBlock();
2344 $lng->txt(
"cont_cc_".$c),
2360 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2362 $sdd->setPullRight(
false);
2363 $sdd->setListTitle($lng->txt(
"save").
"...");
2367 $btpl->setCurrentBlock(
"save_return");
2368 $btpl->setVariable(
"TXT_SAVE_RETURN", $lng->txt(
"save_return"));
2369 $btpl->parseCurrentBlock();
2370 $sdd->addItem($lng->txt(
"save_return"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSaveReturn(false); return false;");
2375 $btpl->setCurrentBlock(
"save_new");
2376 $btpl->setVariable(
"TXT_SAVE_NEW", $lng->txt(
"save_new"));
2377 $btpl->parseCurrentBlock();
2378 $sdd->addItem($lng->txt(
"save_new"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSaveReturn(true); return false;");
2381 $sdd->addItem($lng->txt(
"save"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSave(null); return false;");
2382 $sdd->addItem($lng->txt(
"cancel"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdCancel(); return false;");
2386 $btpl->setCurrentBlock(
"bb_anc_button");
2387 $btpl->setVariable(
"CC_ANC",
"anc");
2388 $btpl->parseCurrentBlock();
2393 $btpl->setVariable(
"SAVE_DROPDOWN", $sdd->getHTML());
2402 $btpl->setVariable(
"TXT_SAVE", $lng->txt(
"save"));
2403 $btpl->setVariable(
"TXT_CANCEL", $lng->txt(
"cancel"));
2405 $btpl->setVariable(
"TXT_CHAR_FORMAT", $lng->txt(
"cont_char_format"));
2406 $btpl->setVariable(
"TXT_LISTS", $lng->txt(
"cont_lists"));
2407 $btpl->setVariable(
"TXT_LINKS", $lng->txt(
"cont_links"));
2408 $btpl->setVariable(
"TXT_MORE_FUNCTIONS", $lng->txt(
"cont_more_functions"));
2409 $btpl->setVariable(
"TXT_SAVING", $lng->txt(
"cont_saving"));
2411 include_once(
"./Services/COPage/classes/class.ilPCParagraphGUI.php");
2415 $lng->txt(
"cont_more_character_styles"),
"iltinymenu_bd");
2417 return $btpl->get();
2429 $link_info =
"<IntLinkInfos>";
2430 $targetframe =
"None";
2431 foreach ($int_links as $int_link)
2433 $target = $int_link[
"Target"];
2434 if (substr(
$target, 0, 4) ==
"il__")
2438 $type = $int_link[
"Type"];
2440 $targetframe = ($int_link[
"TargetFrame"] !=
"")
2441 ? $int_link[
"TargetFrame"]
2445 if ($targetframe !=
"None")
2451 $anc = $anc_add =
"";
2452 if ($int_link[
"Anchor"] !=
"")
2454 $anc = $int_link[
"Anchor"];
2455 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
2463 case "StructureObject":
2465 if ($type ==
"PageObject")
2467 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
2471 $href =
"./goto.php?target=st_".$target_id;
2479 case "GlossaryItem":
2480 if ($targetframe ==
"None")
2482 $targetframe =
"Glossary";
2484 $href =
"./goto.php?target=git_".$target_id;
2488 $ilCtrl->setParameter($this,
"mob_id",
$target_id);
2490 $href = $ilCtrl->getLinkTarget($this,
"displayMedia");
2491 $ilCtrl->setParameter($this,
"mob_id",
"");
2495 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
2499 case "RepositoryItem":
2502 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
2507 if ($obj_type ==
"usr")
2509 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2510 $back = $ilCtrl->getLinkTargetByClass(strtolower(get_class($this)),
"preview");
2511 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
$target_id);
2512 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"back_url",
2513 rawurlencode($back));
2515 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2518 $href = $ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"getHTML");
2520 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
"");
2528 $anc_par =
'Anchor="' . $anc .
'"';
2529 $link_info .=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" " . $anc_par .
" " .
2530 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" LinkContent=\"$lcontent\" />";
2534 $link_info.=
"</IntLinkInfos>";
2543 $this->obj->buildDom();
2545 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
2549 require_once(
"./Modules/File/classes/class.ilObjFile.php");
2550 $file_id = $file[count($file) - 1];
2553 if (!in_array($file_id,
$files))
2557 $fileObj =
new ilObjFile($file_id,
false);
2558 $fileObj->sendFile();
2577 $tpl =
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Modules/LearningModule");
2578 $tpl->setCurrentBlock(
"ilMedia");
2586 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
2588 require_once(
"./Services/COPage/classes/class.ilPageObject.php");
2590 $pg_obj->buildDom();
2592 if (!empty (
$_GET[
"pg_id"]))
2595 $xml.= $pg_obj->getMediaAliasElement(
$_GET[
"mob_id"]);
2609 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
2610 $args =
array(
'/_xml' => $xml,
'/_xsl' => $xsl );
2616 $mode =
"fullscreen";
2623 $params =
array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
2624 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' =>
"",
2625 'ref_id' =>
$_GET[
"ref_id"],
'webspace_path' => $wb_path);
2626 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args,
$params);
2632 require_once(
'./Services/Style/Content/classes/class.ilObjStyleSheet.php');
2633 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
2636 $tpl->setVariable(
"MEDIA_CONTENT",
$output);
2639 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
2641 $tpl->fillJavaScriptFiles();
2642 $tpl->fillCssFiles();
2654 $pg_obj->send_paragraph(
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
2667 include_once(
"./Services/Utilities/classes/class.ilStr.php");
2671 $page_heads =
array();
2672 foreach ($offsets as $os)
2674 $level = (int) substr($a_output, $os + 10, 1);
2675 if (in_array($level,
array(1,2,3)))
2677 $anchor = str_replace(
"TocH",
"TocA",
2678 substr($a_output, $os, strpos($a_output,
"<", $os) - $os - 3)
2682 $tag_start = stripos($a_output,
"<h".$level.
" ", $os);
2683 $tag_end = stripos($a_output,
"</h".$level.
">", $tag_start);
2684 $head = substr($a_output, $tag_start, $tag_end - $tag_start);
2687 $text_start = stripos($head,
">") + 1;
2688 $text_end = strripos($head,
"<!--", $text_start);
2689 $text = substr($head, $text_start, $text_end - $text_start);
2690 $page_heads[] =
array(
"level" => $level,
"text" =>
$text,
2691 "anchor" => $anchor);
2695 if (count($page_heads) > 1)
2697 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
2699 $list->setAutoNumbering(
true);
2700 $list->setListClass(
"ilc_page_toc_PageTOCList");
2701 $list->setItemClass(
"ilc_page_toc_PageTOCItem");
2709 foreach ($page_heads as $ind =>
$h)
2716 if (
$h[
"level"] == 2 && $c_par[1] > 0)
2720 if (
$h[
"level"] == 3 && $c_par[2] > 0)
2725 $h[
"text"] = str_replace(
"<!--PageTocPH-->",
"",
$h[
"text"]);
2729 "<a href='#".
$h[
"anchor"].
"' class='ilc_page_toc_PageTOCLink'>".
$h[
"text"].
"</a>",
2733 if ($h[
"level"] == 1)
2738 if ($h[
"level"] == 2)
2744 $tpl =
new ilTemplate(
"tpl.page_toc.html",
true,
true,
2746 $tpl->setVariable(
"PAGE_TOC", $list->getHTML());
2747 $tpl->setVariable(
"TXT_PAGE_TOC", $lng->txt(
"cont_page_toc"));
2748 $tpl->setVariable(
"TXT_HIDE", $lng->txt(
"hide"));
2749 $tpl->setVariable(
"TXT_SHOW", $lng->txt(
"show"));
2751 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
2752 $tpl->get(), $a_output);
2753 $numbers = $list->getNumbers();
2755 if (count($numbers) > 0)
2757 include_once(
"./Services/Utilities/classes/class.ilStr.php");
2758 foreach ($numbers as
$n)
2767 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
2787 include_once(
"./Services/COPage/classes/class.ilPCResourcesGUI.php");
2807 $a_output = str_replace(
"{{{{{LV_show_adv}}}}}",
2808 $lng->txt(
"cont_show_adv"), $a_output);
2809 $a_output = str_replace(
"{{{{{LV_hide_adv}}}}}",
2810 $lng->txt(
"cont_hide_adv"), $a_output);
2814 $a_output = str_replace(
"{{{{{LV_show_adv}}}}}",
2816 $a_output = str_replace(
"{{{{{LV_hide_adv}}}}}",
2840 $a_tpl->setCurrentBlock(
"help");
2841 $a_tpl->setVariable(
"TXT_ADD_EL", $lng->txt(
"cont_add_elements"));
2842 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
2845 $a_tpl->setVariable(
"TXT_DRAG", $lng->txt(
"cont_drag_and_drop_elements"));
2846 $a_tpl->setVariable(
"TXT_SEL", $lng->txt(
"cont_double_click_to_delete"));
2847 $a_tpl->parseCurrentBlock();
2879 $ilCtrl->redirect($this,
"preview");
2884 if ($ptype ==
"cont" &&
$_GET[
"ref_id"] > 0)
2888 $ilHelp->setScreenId(
"edit_".$ptype);
2890 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
2892 $ilUser->isAnonymous() &&
2893 !$ilUser->isCaptchaVerified() &&
2894 ilCaptchaUtil::isActiveForWiki()
2897 $form = $this->initCaptchaForm();
2898 if(
$_POST[
'captcha_code'] && $form->checkInput())
2900 $ilUser->setCaptchaVerified(
true);
2904 return $form->getHTML();
2911 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2912 $info = $lng->txt(
"content_no_edit_lock");
2914 $info .=
"</br>" . $lng->txt(
"content_until") .
": " .
2916 $info .=
"</br>" . $lng->txt(
"obj_usr") .
": " .
2918 if (!$ilCtrl->isAsynch())
2933 $min = (int) $aset->get(
"block_mode_minutes") ;
2936 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2938 $info = $lng->txt(
"cont_got_lock_until");
2944 include_once(
"./Services/UIComponent/Button/classes/class.ilLinkButton.php");
2946 $but->setCaption(
"cont_finish_editing");
2947 $but->setUrl($ilCtrl->getLinkTarget($this,
"releasePageLock"));
2948 $info = str_replace(
"%2", $but->render(),
$info);
2959 $html.=
"<br /><br />".$this->getNotesHTML();
2979 $tpl->addOnLoadCode(
"ilCOPage.insertJSAtPlaceholder('".
2989 public function initCaptchaForm()
2997 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
3000 require_once
'Services/Captcha/classes/class.ilCaptchaInputGUI.php';
3003 $form->addItem($ci);
3005 $form->addCommandButton(
'edit', $lng->txt(
'ok'));
3007 $form->setTitle($lng->txt(
'cont_captcha_verification'));
3008 $form->setFormAction($ilCtrl->getFormAction($this));
3035 $this->tpl =
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
3036 $this->tpl->setCurrentBlock(
"ContentStyle");
3037 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET", 0);
3038 $this->tpl->parseCurrentBlock();
3042 $this->tpl->setCurrentBlock(
"ilMedia");
3044 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
3046 if (!empty (
$_GET[
"pg_id"]))
3048 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
3050 $pg_obj->buildDom();
3055 $xml.= $pg_obj->getMediaAliasElement(
$_GET[
"mob_id"]);
3069 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
3070 $args =
array(
'/_xml' => $xml,
'/_xsl' => $xsl );
3077 $mode =
"fullscreen";
3078 $params =
array (
'mode' => $mode,
'webspace_path' => $wb_path);
3079 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args,
$params);
3084 $this->tpl->setVariable(
"MEDIA_CONTENT",
$output);
3094 if(is_array($a_error))
3096 $error_str =
"<b>Error(s):</b><br>";
3097 foreach ($a_error as
$error)
3099 $err_mess = implode($error,
" - ");
3100 if (!is_int(strpos($err_mess,
":0:")))
3102 $error_str .= htmlentities($err_mess).
"<br />";
3105 $this->tpl->setVariable(
"MESSAGE", $error_str);
3121 $tpl->addJavaScript(
"./Services/COPage/js/page_history.js");
3123 include_once(
"./Services/COPage/classes/class.ilPageHistoryTableGUI.php");
3125 $table_gui->setId(
"hist_table");
3132 'sortkey' => 999999,
3134 $table_gui->setData($entries);
3135 return $table_gui->getHTML();
3150 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
3154 $ilCtrl->setParameter($this,
"rollback_nr",
$_GET[
"old_nr"]);
3155 $c_gui->setFormAction($ilCtrl->getFormAction($this,
"rollback"));
3156 $c_gui->setHeaderText($lng->txt(
"cont_rollback_confirmation"));
3157 $c_gui->setCancel($lng->txt(
"cancel"),
"history");
3158 $c_gui->setConfirm($lng->txt(
"confirm"),
"rollback");
3160 $hentry = $this->obj->getHistoryEntry(
$_GET[
"old_nr"]);
3162 $c_gui->addItem(
"id[]",
$_GET[
"old_nr"],
3165 $tpl->setContent($c_gui->getHTML());
3180 $hentry = $this->obj->getHistoryEntry(
$_GET[
"rollback_nr"]);
3182 if ($hentry[
"content"] !=
"")
3184 $this->obj->setXMLContent($hentry[
"content"]);
3185 $this->obj->buildDom(
true);
3186 if ($this->obj->update())
3188 $ilCtrl->redirect($this,
"history");
3191 $ilCtrl->redirect($this,
"history");
3204 $ilHelp->setScreenIdComponent(
"copg");
3228 $ilTabs->addTarget(
"pg", $ilCtrl->getLinkTarget($this,
"preview")
3229 ,
array(
"",
"preview"));
3233 $ilTabs->addTarget(
"edit", $ilCtrl->getLinkTarget($this,
"edit")
3234 ,
array(
"",
"edit"));
3241 $ilTabs->addTarget(
"edit", $ilCtrl->getLinkTarget($this,
"edit")
3242 ,
array(
"",
"edit"));
3245 $ilTabs->addTarget(
"cont_preview", $ilCtrl->getLinkTarget($this,
"preview")
3246 ,
array(
"",
"preview"));
3252 if ($this->use_meta_data)
3254 include_once
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
3256 $this->meta_data_type, $this->meta_data_sub_obj_id);
3257 $mdtab = $mdgui->getTab();
3260 $ilTabs->addTarget(
"meta_data",
3261 $mdtab,
"",
"ilobjectmetadatagui");
3269 $ilTabs->addTarget(
"history", $this->ctrl->getLinkTarget($this,
"history")
3270 ,
"history", get_class($this));
3271 if (
$_GET[
"history_mode"] ==
"1" || $this->ctrl->getCmd() ==
"compareVersion")
3273 $ilTabs->activateTab(
"history");
3286 $ilTabs->addTarget(
"clipboard", $this->ctrl->getLinkTargetByClass(
"ilEditClipboardGUI",
"view")
3287 ,
"view",
"ilEditClipboardGUI");
3292 $ilTabs->addTarget(
"cont_activation", $this->ctrl->getLinkTarget($this,
"editActivation"),
3293 "editActivation", get_class($this));
3298 $ilTabs->addTarget(
"news",
3299 $this->ctrl->getLinkTargetByClass(
"ilnewsitemgui",
"editNews"),
3300 "",
"ilnewsitemgui");
3304 if (is_array($this->tab_hook))
3306 $func = $this->tab_hook[
"func"];
3307 $this->tab_hook[
"obj"]->$func();
3324 $tpl =
new ilTemplate(
"tpl.page_compare.html",
true,
true,
"Services/COPage");
3325 $compare = $this->obj->compareVersion((
int)
$_POST[
"left"], (
int) $_POST[
"right"]);
3328 $lpage = $compare[
"l_page"];
3330 $cfg->setPreventHTMLUnmasking(
true);
3339 $lhtml = str_replace(
"<br />",
"<br />", $lhtml);
3340 $tpl->setVariable(
"LEFT", $lhtml);
3343 $rpage = $compare[
"r_page"];
3351 $rhtml = str_replace(
"<br />",
"<br />", $rhtml);
3352 $tpl->setVariable(
"RIGHT", $rhtml);
3354 $tpl->setVariable(
"TXT_NEW", $lng->txt(
"cont_pc_new"));
3355 $tpl->setVariable(
"TXT_MODIFIED", $lng->txt(
"cont_pc_modified"));
3356 $tpl->setVariable(
"TXT_DELETED", $lng->txt(
"cont_pc_deleted"));
3366 $a_html = str_replace(
"[ilDiffInsStart]",
'<span class="ilDiffIns">', $a_html);
3367 $a_html = str_replace(
"[ilDiffDelStart]",
'<span class="ilDiffDel">', $a_html);
3368 $a_html = str_replace(
"[ilDiffInsEnd]",
'</span>', $a_html);
3369 $a_html = str_replace(
"[ilDiffDelEnd]",
'</span>', $a_html);
3381 $atpl =
new ilTemplate(
"tpl.page_activation.php",
true,
true,
"Services/COPage");
3384 $atpl->setVariable(
"FORM", $this->form->getHTML());
3385 $atpl->setCurrentBlock(
"updater");
3386 $atpl->setVariable(
"UPDATER_FRAME", $this->exp_frame);
3387 $atpl->setVariable(
"EXP_ID_UPDATER", $this->exp_id);
3388 $atpl->setVariable(
"HREF_UPDATER", $this->exp_target_script);
3389 $atpl->parseCurrentBlock();
3390 $tpl->setContent($atpl->get());
3400 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
3402 $this->form->setFormAction($ilCtrl->getFormAction($this));
3403 $this->form->setTitle($lng->txt(
"cont_page_activation"));
3407 $rad_op1 =
new ilRadioOption($lng->txt(
"cont_activated"),
"activated");
3409 $rad->addOption($rad_op1);
3410 $rad_op2 =
new ilRadioOption($lng->txt(
"cont_deactivated"),
"deactivated");
3411 $rad->addOption($rad_op2);
3412 $rad_op3 =
new ilRadioOption($lng->txt(
"cont_scheduled_activation"),
"scheduled");
3415 $dt_prop->setRequired(
true);
3416 $dt_prop->setShowTime(
true);
3420 $dt_prop2->setShowTime(
true);
3421 $rad_op3->addSubItem($dt_prop2);
3424 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_show_activation_info"),
"show_activation_info");
3425 $cb->
setInfo($this->lng->txt(
"cont_show_activation_info_info"));
3426 $rad_op3->addSubItem($cb);
3429 $rad->addOption($rad_op3);
3431 $this->form->addCommandButton(
"saveActivation", $lng->txt(
"save"));
3433 $this->form->addItem($rad);
3441 $activation =
"deactivated";
3444 $activation =
"activated";
3447 $dt_prop = $this->form->getItemByPostVar(
"start");
3450 $activation =
"scheduled";
3454 $dt_prop = $this->form->getItemByPostVar(
"end");
3457 $activation =
"scheduled";
3462 $this->form->getItemByPostVar(
"activation")->setValue($activation);
3463 $this->form->getItemByPostVar(
"show_activation_info")->setChecked($this->
getPageObject()->getShowActivationInfo());
3475 if ($this->form->checkInput())
3481 if (
$_POST[
"activation"] ==
"deactivated")
3485 if (
$_POST[
"activation"] ==
"scheduled")
3489 $this->form->getItemByPostVar(
"start")->getDate()->get(
IL_CAL_DATETIME));
3491 $this->form->getItemByPostVar(
"end")->getDate()->get(
IL_CAL_DATETIME));
3495 $ilCtrl->redirect($this,
"editActivation");
3497 $this->form->setValuesByPost();
3498 $tpl->setContent($this->form->getHTML());
3510 function getNotesHTML($a_content_object = null, $a_enable_private_notes =
true, $a_enable_public_notes =
false, $a_enable_notes_deletion =
false, $a_callback = null)
3514 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
3517 if(!$a_content_object)
3519 $notes_gui =
new ilNoteGUI($this->notes_parent_id,
3520 (
int)$this->obj->getId(),
"pg");
3522 $a_enable_private_notes =
true;
3523 $a_enable_public_notes =
true;
3524 $a_enable_notes_deletion =
false;
3529 $notes_gui =
new ilNoteGUI($a_content_object->getParentId(),
3530 $a_content_object->getId(), $a_content_object->getParentType());
3533 if($a_enable_private_notes)
3537 if ($a_enable_public_notes)
3539 $notes_gui->enablePublicNotes();
3540 if ((
bool)$a_enable_notes_deletion)
3542 $notes_gui->enablePublicNotesDeletion(
true);
3548 $notes_gui->addObserver($a_callback);
3551 $next_class = $this->ctrl->getNextClass($this);
3552 if ($next_class ==
"ilnotegui")
3554 $html = $this->ctrl->forwardCommand($notes_gui);
3558 $html = $notes_gui->getNotesHTML();
3576 include_once(
"./Services/COPage/classes/class.ilPageQuestionProcessor.php");
3600 $ilTabs->activateTab(
"edit");
3603 $this->tpl->setContent($form->getHTML());
3616 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
3620 include_once
'Services/Form/classes/class.ilLinkInputGUI.php';
3621 $ac =
new ilLinkInputGUI($this->lng->txt(
'cont_resource'),
'opened_content');
3623 $ac->setInternalLinkDefault(
"Media_Media", 0);
3624 $ac->setInternalLinkFilterTypes(
array(
"PageObject_FAQ",
"GlossaryItem",
"Media_Media",
"Media_FAQ"));
3625 $val = $this->obj->getInitialOpenedContent();
3626 if ($val[
"id"] !=
"" && $val[
"type"] !=
"")
3628 $ac->setValue($val[
"type"].
"|".$val[
"id"].
"|".$val[
"target"]);
3631 $form->addItem($ac);
3633 $form->addCommandButton(
"saveInitialOpenedContent", $this->lng->txt(
"save"));
3634 $form->addCommandButton(
"edit", $this->lng->txt(
"cancel"));
3635 $form->setTitle($this->lng->txt(
"cont_initial_attached_content"));
3636 $form->setFormAction($ilCtrl->getFormAction($this));
3651 $this->obj->saveInitialOpenedContent(
3658 $ilCtrl->redirect($this,
"edit");
3680 $ilCtrl->setParameter($this,
"transl",
$_GET[
"totransl"]);
3681 $ilCtrl->redirect($this,
"edit");
3692 $ilCtrl->setParameter($this,
"totransl",
$l);
3693 $lng->loadLanguageModule(
"meta");
3695 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
3697 $cgui->setFormAction($ilCtrl->getFormAction($this));
3698 $cgui->setHeaderText($lng->txt(
"cont_page_translation_does_not_exist").
": ".
3699 $lng->txt(
"meta_l_".
$l));
3700 $cgui->setCancel($lng->txt(
"cancel"),
"editMasterLanguage");
3701 $cgui->setConfirm($lng->txt(
"confirm"),
"createPageTranslation");
3702 $tpl->setContent($cgui->getHTML());
3712 $ilCtrl->setParameter($this,
"transl",
"");
3713 $ilCtrl->redirect($this,
"edit");
3725 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
3728 $p->copyPageToTranslation(
$l);
3729 $ilCtrl->setParameter($this,
"transl",
$l);
3730 $ilCtrl->redirect($this,
"edit");
3742 $ilCtrl->redirect($this,
"preview");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
history()
Get history table as HTML.
releasePageLock()
Release page lock.
This class represents an option in a radio group.
static initjQueryUI()
Init jQuery UI (see included_components.txt for included components)
activateMetaDataEditor($a_rep_obj, $a_type, $a_sub_obj_id, $a_observer_obj=NULL, $a_observer_func="")
Activate meda data editor.
initOpenedContentForm()
Init form for initially opened content.
setScreenIdComponent()
Set screen id component.
getCompareMode()
Get compare mode.
saveInitialOpenedContent()
Save initial opened content.
getEditPreview()
Get Display first Edit tab, then Preview tab, instead of Page and Edit.
insertPageToc($a_output)
Insert page toc.
insertAdvTrigger($a_output)
Insert adv content trigger.
static getInitHTML($a_url)
Get initialisation HTML to use interna link editing.
rollbackConfirmation()
Rollback confirmation.
enableNotes($a_enabled, $a_parent_id)
initActivationForm()
Init activation form.
setEditPreview($a_editpreview)
Set Display first Edit tab, then Preview tab, instead of Page and Edit.
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
getPageObject()
Get Page Object.
Class ilEditClipboardGUI.
editMasterLanguage()
Edit master language.
static _getQuestionType($question_id)
Returns the question type of a question with a given id.
setTemplateOutput($a_output=true)
addActionsMenu($a_tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode)
Add actions menu.
enableCitation($a_enabled)
displayMediaFullscreen()
Show media in fullscreen mode.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
getPrependingHtml()
Get Prepending HTML.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
setParentType($a_val)
Set parent type.
setQuestionXML($question_xml)
static hasSuccessorPage($a_cont_obj_id, $a_page_id)
checks if page has a successor page
static initConnection()
Init YUI Connection module.
compareVersion()
Compares two revisions of the page.
static getFlashVideoPlayerFilename($a_fullpath=false)
Get flash video player file name.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
getLanguage()
Get language.
User Interface for NewsItem entities.
setEnabledNews($a_enabled, $a_news_obj_id=0, $a_news_obj_type=0)
Set enabled news.
static get($a_glyph, $a_text="")
Get glyph html.
static getPCDefinitions()
Get PC definitions.
static _getCharacteristics($a_style_id)
Get characteristics.
confirmPageTranslationCreation()
Confirm page translation creation.
getTabs($a_activate="")
adds tabs to tab gui object
static _lookupTitle($a_id)
lookup object title
setEnableEditing($a_enableediting)
Set Enable Editing.
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
insertJSAtPlaceholder()
InsertJS at placeholder.
static requirePCClassByName($a_name)
Get instance.
setDefaultLinkXml()
Set standard link xml.
executeCommand()
execute command
static _getTextCharacteristics($a_style_id, $a_include_core=false)
Get text characteristics.
static getStyleSelector($a_selected, $a_chars, $a_use_callback=false)
Get style selector.
getActivationFormValues()
Get values for activation form.
saveActivation()
Save Activation.
switchToLanguage()
Switch to language.
enableChangeComments($a_enabled)
static addJavaScript()
Add javascript files that are necessary to run accordion.
setPageObject($a_pg_obj)
Set Page Object.
Page History Table GUI Class.
static lookupTitle($a_page_id)
Lookup title.
setViewPageLink($a_link, $a_target="")
set link for "view page" button
setLinkParams($l_params="")
setTemplateTargetVar($a_variable)
const CMD_SHOW
command constants
getEnabledTabs()
Get Output tabs.
previewHistory()
Preview history.
static initJS()
Init javascript.
isEnabledChangeComments()
getOldNr()
Get old nr (historic page)
static insertResourcesIntoPageContent($a_content)
Insert resources.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
getParentType()
Get parent type.
presentation($a_mode=IL_PAGE_PRESENTATION)
static collectContentIncludes($a_page, $a_domdoc)
get all content includes that are used within the page
determineSourcecodeDownloadScript()
Determine source code download script.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
GUI class for public user profile presentation.
setFullscreenLink($a_fullscreen_link)
Set fullscreen link.
determineFullscreenLink()
Determine fullscreen link.
getEnabledNews()
Get enabled news.
static getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
replaceCurlyBrackets($output)
Replace curly brackets.
setPrependingHtml($a_prependinghtml)
Set Prepending HTML.
static addCss()
Add required css.
setEnabledPageFocus($a_enabledpagefocus)
Set Enable page focus.
addSubItem($a_item)
Add Subitem.
setOfflineDirectory($offdir)
set offline directory to offdir
static hasPublicProfile($a_user_id)
Has public profile.
static getCharStyleSelector($a_par_type, $a_use_callback=true, $a_style_id=0)
Get character style selector.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getComponentPluginsXML()
Put information about activated plugins into XML.
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 _getQuestionGUI($question_type, $question_id=-1)
Creates a question gui representation and returns the alias to the question gui note: please do not u...
getEnableEditing()
Get Enable Editing.
determineFileDownloadLink()
Determine file download link.
static _lookupObjId($a_id)
getPageConfig()
Get page config object.
special template class to simplify handling of ITX/PEAR
setCompareMode($a_val)
Set compare mode.
static collectFileItems($a_page, $a_domdoc)
Get all file items that are used within the page.
setExplorerUpdater($a_exp_frame, $a_exp_id, $a_exp_target_script)
Set Explorer Updater.
edit()
edit ("view" before)
static _doJSEditing()
checks if current user has activated js editing and if browser is js capable
download_paragraph()
download source code paragraph
static initMediaElementJs($a_tpl=null)
Init mediaelement.js scripts.
getRawPageContent()
Get Get raw page content only.
static formatDate(ilDateTime $date)
Format a date public.
getStyleId()
Get Style Id.
Page multilinguality GUI class.
setRawPageContent($a_rawpagecontent)
Set Get raw page content only.
setPresentationTitle($a_title="")
setSourcecodeDownloadScript($script_name)
Set sourcecode download script.
static clear($a_var)
Unset a value.
if(strpos($jquery_path, './')===0) else if(strpos($jquery_path, '.')===0) $mathJaxSetting
setRenderPageContainer($a_val)
Set render page container.
Add a drawing to the header
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setOldNr($a_val)
Set old nr (historic page)
getAbstractOnly()
Get abstract only.
static _getTargetsOfSource($a_source_type, $a_source_id, $a_source_lang="-")
Get all targets of a source object (e.g., a page)
static getCacheTriggerString($a_page)
Get page cache update trigger string.
setFileDownloadLink($a_download_link)
Set file download link.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
editActivation()
Edit activation (only, if scheduled page activation is activated in administration) ...
static getTinyMenu($a_par_type, $a_int_links=false, $a_wiki_links=false, $a_keywords=false, $a_style_id=0, $a_paragraph_styles=true, $a_save_return=true, $a_anchors=false, $a_save_new=true, $a_user_links=false)
Get Tiny Menu.
static initPanel($a_resize=false)
Init yui panel.
getActivationCaptions()
Get captions for activation action menu entries.
User interface class for advanced drop-down selection lists.
getOfflineDirectory()
get offline directory
static isActivated()
Checks whether Map feature is activated.
setTemplateOutputVar($a_value)
static getContentStylePath($a_style_id)
get content style path
displayMedia($a_fullscreen=false)
Display media.
setEnabledTabs($a_enabledtabs)
Set Output tabs.
const IL_PAGE_PRESENTATION
setPageConfig($a_val)
Set page config object.
postOutputProcessing($a_output)
Finalizing output processing.
getFileDownloadLink()
Get file download link.
setStyleId($a_styleid)
Set Style Id.
downloadFile()
Download file of file lists.
static getInstance($a_parent_type, $a_id=0, $a_old_nr=0, $a_lang="-")
Get page object instance.
static lookupSettingByParentType($a_par_type, $a_name, $a_default=false)
Lookup setting by parent type.
setAbstractOnly($a_val)
Set abstract only.
initialOpenedContent()
Initially opened content.
afterConstructor()
After constructor.
rollback()
Rollback to a previous version.
showMediaFullscreen($a_style_id=0)
show fullscreen view of media object
static getInstance()
Singleton: get instance.
getEnabledPageFocus()
Get Enable page focus.
setEditMode()
Set edit mode.
static initDragDrop()
Init YUI Drag and Drop.
onFeedbackEditingForwarding()
On feedback editing forwarding.
getViewPageLink()
get view page link
static _getCommonBBButtons()
Get common bb buttons.
static getInstance($a_obj_id)
Get instance.
initPageObject()
Init page object.
setTabHook($a_object, $a_function)
Set tab hook.
showPage()
display content of page
setLinkFrame($l_frame="")
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
static initjQuery($a_tpl=null)
Init jQuery.
__construct($a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
static getLogger($a_component_id)
Get component logger.
addMultiLangActionsAndInfo($a_list, $a_tpl)
Add multi-language actions to menu.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
setPageBackTitle($a_title)
enablePrivateNotes($a_enable=true)
enable private notes
getSourcecodeDownloadScript()
Get sourcecode download script.
static saveQuestionAnswer($a_type, $a_id, $a_answer)
Save question answer.
insertResources($a_output)
Insert resources.
processAnswer()
Process answer.
getRenderPageContainer()
Get render page container.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
$sourcecode_download_script
getNotesHTML($a_content_object=null, $a_enable_private_notes=true, $a_enable_public_notes=false, $a_enable_notes_deletion=false, $a_callback=null)
Get html for public and/or private notes.
setLanguage($a_val)
Set language.
setQEditTabs($a_active)
Set question editing tabs.
getViewPageTarget()
get view page target frame
static getWebspaceDir($mode="filesystem")
get webspace directory
isPageContainerToBeRendered()
createPageTranslation()
Create page translation.
getFullscreenLink()
Get fullscreen link.
getEnablePCType($a_pc_type)
Get enable pc type.
setIntLinkReturn($a_return)
static strPosAll($a_haystack, $a_needle)
Get all positions of a string.
static replaceFirsOccurence($a_old, $a_new, $a_str)
Replaces the first occurence of $a_old in $a_str with $a_new.
setActivationListener(&$a_obj, $a_meth)
static getGotoForWikiPageTarget($a_target, $a_offline=false)
Get goto href for internal wiki page link target.
setOutputMode($a_mode=IL_PAGE_PRESENTATION)
Set Output Mode.
insertHelp($a_tpl)
Insert help texts.
setQuestionHTML($question_html)
setBibId($a_id)
Set Bib Id.
Confirmation screen class.
displayValidationError($a_error)
display validation error
static initJavascript()
Init javascript.