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");
133 $ilCtrl->saveParameter($this,
"transl");
151 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
164 $this->parent_type = $a_val;
204 $this->old_nr = $a_val;
214 return $this->old_nr;
224 $this->language = $a_val;
234 if ($this->language ==
"")
239 return $this->language;
269 $this->page_config = $a_val;
288 $this->bib_id = $a_id;
296 return $this->bib_id ? $this->bib_id : 0;
306 $this->obj = $a_pg_obj;
326 $this->output_mode = $a_mode;
336 $this->output2template = $a_output;
346 $this->presentation_title = $a_title;
356 $this->header = $a_title;
366 $this->link_params = $l_params;
376 $this->link_frame = $l_frame;
381 return $this->link_frame;
386 $this->link_xml = $link_xml;
387 $this->link_xml_set =
true;
392 return $this->link_xml;
397 $this->question_xml = $question_xml;
407 return $this->question_xml;
417 $this->target_var = $a_variable;
427 $this->template_output_var = $a_value;
437 $this->sourcecode_download_script = $script_name;
446 $this->citation = $a_enabled;
456 $this->locator =& $a_locator;
461 $this->tabs_gui = $a_tabs;
466 $this->page_back_title = $a_title;
472 $this->file_download_link = $a_download_link;
477 return $this->file_download_link;
483 $this->fullscreen_link = $a_fullscreen_link;
488 return $this->fullscreen_link;
493 $this->int_link_return = $a_return;
498 $this->change_comments = $a_enabled;
508 $this->notes_enabled = $a_enabled;
509 $this->notes_parent_id = $a_parent_id;
514 return $this->notes_enabled;
523 $this->offline_directory = $offdir;
532 return $this->offline_directory;
544 $this->view_page_link = $a_link;
545 $this->view_page_target = $a_target;
553 return $this->view_page_link;
561 return $this->view_page_target;
566 $this->act_obj =& $a_obj;
567 $this->act_meth = $a_meth;
577 $this->enabled_news = $a_enabled;
578 $this->news_obj_id = $a_news_obj_id;
579 $this->news_obj_type = $a_news_obj_type;
589 return $this->enabled_news;
597 $this->tab_hook = array(
"obj" => $a_object,
"func" => $a_function);
607 $this->editpreview = $a_editpreview;
627 $this->tabs_enabled = $a_enabledtabs;
647 $this->enabledpagefocus = $a_enabledpagefocus;
657 return $this->enabledpagefocus;
668 $this->exp_frame = $a_exp_frame;
669 $this->exp_id = $a_exp_id;
670 $this->exp_target_script = $a_exp_target_script;
680 $this->prependinghtml = $a_prependinghtml;
690 return $this->prependinghtml;
700 $this->enableediting = $a_enableediting;
720 $this->rawpagecontent = $a_rawpagecontent;
740 $this->styleid = $a_styleid;
750 return $this->styleid;
760 $this->compare_mode = $a_val;
780 $this->abstract_only = $a_val;
800 $this->render_page_container = $a_val;
823 $a_observer_obj = NULL, $a_observer_func =
"")
825 $this->use_meta_data =
true;
826 $this->meta_data_rep_obj = $a_rep_obj;
827 $this->meta_data_sub_obj_id = $a_sub_obj_id;
828 $this->meta_data_type = $a_type;
829 $this->meta_data_observer_obj = $a_observer_obj;
830 $this->meta_data_observer_func = $a_observer_func;
845 $file_download_link = $ilCtrl->getLinkTarget($this,
"downloadFile");
847 return $file_download_link;
862 $fullscreen_link = $ilCtrl->getLinkTarget($this,
"displayMediaFullscreen",
"",
false,
false);
864 return $fullscreen_link;
877 if ($this->sourcecode_download_script ==
"" && $this->
getOutputMode() !=
"offline")
879 $l = $ilCtrl->getLinkTarget($this,
"");
892 global $ilPluginAdmin;
896 foreach ($pl_names as $pl_name)
899 "COPage",
"pgcp", $pl_name);
900 if ($plugin->isValidParentType($this->getPageObject()->getParentType()))
902 $xml.=
'<ComponentPlugin Name="'.$plugin->getPluginName().
909 $xml =
"<ComponentPlugins>".$xml.
"</ComponentPlugins>";
922 $next_class = $this->ctrl->getNextClass($this);
924 $this->log->debug(
"next_class: ".$next_class);
926 $cmd = $this->ctrl->getCmd();
931 $ilCtrl->setReturn($this,
"edit");
935 case 'ilobjectmetadatagui':
937 $ilTabs->setTabActive(
"meta_data");
938 include_once
'Services/Object/classes/class.ilObjectMetaDataGUI.php';
939 $md_gui =
new ilObjectMetaDataGUI($this->meta_data_rep_obj, $this->meta_data_type, $this->meta_data_sub_obj_id);
940 if (is_object($this->meta_data_observer_obj))
942 $md_gui->addMDObserver($this->meta_data_observer_obj,
943 $this->meta_data_observer_func,
"General");
945 $this->ctrl->forwardCommand($md_gui);
948 case "ileditclipboardgui":
952 $clip_gui->setPageBackTitle($this->page_back_title);
954 $ret =& $this->ctrl->forwardCommand($clip_gui);
959 switch(
$_GET[
"notes_mode"])
963 $ilTabs->setTabActive(
"edit");
968 case 'ilpublicuserprofilegui':
969 require_once
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
971 $ret = $this->ctrl->forwardCommand($profile_gui);
974 case "ilpageeditorgui":
978 $ilCtrl->redirect($this,
"preview");
981 $page_editor->setLocator($this->locator);
982 $page_editor->setHeader($this->
getHeader());
983 $page_editor->setPageBackTitle($this->page_back_title);
984 $page_editor->setIntLinkReturn($this->int_link_return);
986 $ret =& $this->ctrl->forwardCommand($page_editor);
989 case 'ilnewsitemgui':
990 include_once(
"./Services/News/classes/class.ilNewsItemGUI.php");
992 $news_item_gui->setEnableEdit(
true);
993 $news_item_gui->setContextObjId($this->news_obj_id);
994 $news_item_gui->setContextObjType($this->news_obj_type);
995 $news_item_gui->setContextSubObjId($this->obj->getId());
996 $news_item_gui->setContextSubObjType(
"pg");
998 $ret = $ilCtrl->forwardCommand($news_item_gui);
1002 $ret = $this->ctrl->forwardCommand($profile_gui);
1005 case "ilpropertyformgui":
1006 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1008 $this->ctrl->forwardCommand($form);
1011 case "ilinternallinkgui":
1012 $this->lng->loadLanguageModule(
"content");
1013 require_once(
"./Services/Link/classes/class.ilInternalLinkGUI.php");
1017 $link_gui->filterLinkType(
"PageObject_FAQ");
1018 $link_gui->filterLinkType(
"GlossaryItem");
1019 $link_gui->filterLinkType(
"Media_Media");
1020 $link_gui->filterLinkType(
"Media_FAQ");
1022 $link_gui->setFilterWhiteList(
true);
1023 $link_gui->setMode(
"asynch");
1024 $ilCtrl->forwardCommand($link_gui);
1027 case "ilquestioneditgui":
1029 include_once(
"./Modules/TestQuestionPool/classes/class.ilQuestionEditGUI.php");
1033 $edit_gui->setSelfAssessmentEditingMode(
true);
1034 $ret = $ilCtrl->forwardCommand($edit_gui);
1035 $this->tpl->setContent(
$ret);
1038 case 'ilassquestionfeedbackeditinggui':
1046 $lng->loadLanguageModule(
"assessment");
1049 require_once
'Modules/TestQuestionPool/classes/class.assQuestionGUI.php';
1050 require_once
'Modules/TestQuestionPool/classes/class.assQuestion.php';
1052 $questionGUI->object->setObjId(0);
1053 $questionGUI->object->setSelfAssessmentEditingMode(
true);
1054 $questionGUI->object->setPreventRteUsage($this->
getPageConfig()->getPreventRteUsage());
1057 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
1059 $ilCtrl->forwardCommand($gui);
1073 $cmd = $this->ctrl->getCmd(
"preview");
1090 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
1092 $ilTabs->clearTargets();
1094 $ilTabs->setBackTarget($lng->txt(
"back"),
1095 $ilCtrl->getLinkTarget($this,
"edit"));
1097 $ilCtrl->setParameterByClass(
"ilquestioneditgui",
"q_id",
$_GET[
"q_id"]);
1098 $ilTabs->addTab(
"question", $lng->txt(
"question"),
1099 $ilCtrl->getLinkTargetByClass(
"ilquestioneditgui",
"editQuestion"));
1101 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
1102 $ilCtrl->setParameterByClass(
"ilAssQuestionFeedbackEditingGUI",
"q_id",
$_GET[
"q_id"]);
1103 $ilTabs->addTab(
"feedback", $lng->txt(
"feedback"),
1106 $ilTabs->activateTab($a_active);
1124 $this->ctrl->redirect($this,
"edit");
1133 $this->ctrl->redirect($this,
"edit");
1144 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1150 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
1153 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/COPage/js/ilCOPagePres.js");
1156 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
1159 include_once(
"./Services/MediaObjects/classes/class.ilPlayerUtil.php");
1167 $this->log->debug(
"ilPageObjectGUI, showPage() in edit mode.");
1170 $tpl =
new ilTemplate(
"tpl.page_edit_wysiwyg.html",
true,
true,
"Services/COPage");
1174 $tpl->setVariable(
"CLASS_PAGE_TD",
"ilc_Page");
1179 $tpl->setCurrentBlock(
"change_comment");
1180 $tpl->setVariable(
"TXT_ADD_COMMENT", $this->lng->txt(
"cont_add_change_comment"));
1181 $tpl->parseCurrentBlock();
1184 $tpl->setVariable(
"WYSIWYG_ACTION",
1185 $ilCtrl->getFormActionByClass(
"ilpageeditorgui",
"",
"",
true));
1188 $sel_media_mode = ($ilUser->getPref(
"ilPageEditor_MediaMode") ==
"disable")
1191 $sel_html_mode = ($ilUser->getPref(
"ilPageEditor_HTMLMode") ==
"disable")
1194 $sel_js_mode =
"disable";
1204 $tpl->setVariable(
"TXT_CONFIRM_DELETE", $lng->txt(
"cont_confirm_delete"));
1209 $ilTabs->addNonTabbedLink(
"pres_view", $this->lng->txt(
"cont_presentation_view"),
1214 $this->
addActionsMenu($tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode);
1217 if ($sel_js_mode ==
"enable")
1220 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1224 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/COPage/js/ilcopagecallback.js");
1225 $GLOBALS[
"tpl"]->addJavascript(
"Services/COPage/js/page_editing.js");
1227 include_once(
"./Services/UIComponent/Modal/classes/class.ilModalGUI.php");
1229 $lng->toJS(
"cont_error");
1231 include_once
'./Services/Style/classes/class.ilObjStyleSheet.php';
1232 $GLOBALS[
"tpl"]->addOnloadCode(
"var preloader = new Image(); 1233 preloader.src = './templates/default/images/loader.svg'; 1234 ilCOPage.setUser('".$ilUser->getLogin().
"'); 1235 ilCOPage.setContentCss('".
1237 ", ".ilUtil::getStyleSheetLocation().
1238 ", ./Services/COPage/css/tiny_extra.css".
1242 $GLOBALS[
"tpl"]->addJavascript(
"Services/COPage/tiny/4_2_4/tinymce.js");
1243 $tpl->touchBlock(
"init_dragging");
1246 $tpl->setVariable(
"IL_TINY_MENU",
1249 $cfg->getEnableInternalLinks(),
1250 $cfg->getEnableWikiLinks(),
1251 $cfg->getEnableKeywords(),
1253 $cfg->getEnableAnchors(),
true,
1254 $cfg->getEnableUserLinks()
1258 include_once(
"./Services/Link/classes/class.ilInternalLinkGUI.php");
1259 $tpl->setCurrentBlock(
"int_link_prep");
1261 $ilCtrl->getLinkTargetByClass(array(
"ilpageeditorgui",
"ilinternallinkgui"),
1262 "",
false,
true,
false)));
1263 $tpl->parseCurrentBlock();
1265 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1267 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/UIComponent/Explorer/js/ilExplorer.js");
1276 $tpl->setCurrentBlock(
"multi_actions");
1277 if ($sel_js_mode ==
"enable")
1279 $tpl->setVariable(
"ONCLICK_DE_ACTIVATE_SELECTED",
'onclick="return ilEditMultiAction(\'activateSelected\');"');
1280 $tpl->setVariable(
"ONCLICK_DELETE_SELECTED",
'onclick="return ilEditMultiAction(\'deleteSelected\');"');
1281 $tpl->setVariable(
"ONCLICK_ASSIGN_CHARACTERISTIC",
'onclick="return ilEditMultiAction(\'assignCharacteristicForm\');"');
1282 $tpl->setVariable(
"ONCLICK_COPY_SELECTED",
'onclick="return ilEditMultiAction(\'copySelected\');"');
1283 $tpl->setVariable(
"ONCLICK_CUT_SELECTED",
'onclick="return ilEditMultiAction(\'cutSelected\');"');
1284 $tpl->setVariable(
"TXT_SELECT_ALL", $this->lng->txt(
"select_all"));
1285 $tpl->setVariable(
"ONCLICK_SELECT_ALL",
'onclick="return ilEditMultiAction(\'selectAll\');"');
1287 $tpl->setVariable(
"TXT_DE_ACTIVATE_SELECTED", $this->lng->txt(
"cont_ed_enable"));
1288 $tpl->setVariable(
"TXT_ASSIGN_CHARACTERISTIC", $this->lng->txt(
"cont_assign_characteristic"));
1289 $tpl->setVariable(
"TXT_DELETE_SELECTED", $this->lng->txt(
"cont_delete_selected"));
1290 $tpl->setVariable(
"TXT_COPY_SELECTED", $this->lng->txt(
"copy"));
1291 $tpl->setVariable(
"TXT_CUT_SELECTED", $this->lng->txt(
"cut"));
1293 $tpl->parseCurrentBlock();
1300 $tpl =
new ilTemplate(
"tpl.page.html",
true,
true,
"Services/COPage");
1303 $tpl->touchBlock(
"page_focus");
1306 include_once(
"./Services/User/classes/class.ilUserUtil.php");
1311 $tpl->touchBlock(
"page_container_1");
1312 $tpl->touchBlock(
"page_container_2");
1313 $tpl->touchBlock(
"page_container_3");
1325 $ilCtrl->setParameter($this,
"history_mode",
"1");
1328 if (is_array($hist_info[
"previous"]))
1330 $tpl->setCurrentBlock(
"previous_rev");
1331 $tpl->setVariable(
"TXT_PREV_REV", $lng->txt(
"cont_previous_rev"));
1332 $ilCtrl->setParameter($this,
"old_nr", $hist_info[
"previous"][
"nr"]);
1333 $tpl->setVariable(
"HREF_PREV",
1334 $ilCtrl->getLinkTarget($this,
"preview"));
1335 $tpl->parseCurrentBlock();
1339 $tpl->setCurrentBlock(
"previous_rev_disabled");
1340 $tpl->setVariable(
"TXT_PREV_REV", $lng->txt(
"cont_previous_rev"));
1341 $tpl->parseCurrentBlock();
1347 $tpl->setCurrentBlock(
"next_rev");
1348 $tpl->setVariable(
"TXT_NEXT_REV", $lng->txt(
"cont_next_rev"));
1349 $ilCtrl->setParameter($this,
"old_nr", $hist_info[
"next"][
"nr"]);
1350 $tpl->setVariable(
"HREF_NEXT",
1351 $ilCtrl->getLinkTarget($this,
"preview"));
1352 $tpl->parseCurrentBlock();
1355 $tpl->setCurrentBlock(
"latest_rev");
1356 $tpl->setVariable(
"TXT_LATEST_REV", $lng->txt(
"cont_latest_rev"));
1357 $ilCtrl->setParameter($this,
"old_nr",
"");
1358 $tpl->setVariable(
"HREF_LATEST",
1359 $ilCtrl->getLinkTarget($this,
"preview"));
1360 $tpl->parseCurrentBlock();
1363 $ilCtrl->setParameter($this,
"history_mode",
"");
1366 if ($c_old_nr > 0 && $ilUser->getId() != ANONYMOUS_USER_ID)
1368 $tpl->setCurrentBlock(
"rollback");
1369 $ilCtrl->setParameter($this,
"old_nr", $c_old_nr);
1370 $tpl->setVariable(
"HREF_ROLLBACK",
1371 $ilCtrl->getLinkTarget($this,
"rollbackConfirmation"));
1372 $ilCtrl->setParameter($this,
"old_nr",
"");
1373 $tpl->setVariable(
"TXT_ROLLBACK",
1374 $lng->txt(
"cont_rollback"));
1375 $tpl->parseCurrentBlock();
1379 $tpl->setCurrentBlock(
"hist_nav");
1380 $tpl->setVariable(
"TXT_REVISION", $lng->txt(
"cont_revision"));
1381 $tpl->setVariable(
"VAL_REVISION_DATE",
1383 $tpl->setVariable(
"VAL_REV_USER",
1385 $tpl->parseCurrentBlock();
1393 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormActionByClass(
"ilpageeditorgui"));
1400 $this->obj->getId(), $this->obj->getLanguage());
1401 $mob_links = array();
1402 foreach($links as $link)
1404 if ($link[
"type"] ==
"mob")
1414 if (count($mob_links) > 0)
1416 $tpl->setCurrentBlock(
"med_link");
1417 $tpl->setVariable(
"TXT_LINKED_MOBS", $this->lng->txt(
"cont_linked_mobs"));
1418 $tpl->setVariable(
"SEL_MED_LINKS",
1420 $tpl->setVariable(
"TXT_EDIT_MEDIA", $this->lng->txt(
"cont_edit_mob"));
1421 $tpl->setVariable(
"TXT_COPY_TO_CLIPBOARD", $this->lng->txt(
"cont_copy_to_clipboard"));
1423 $tpl->parseCurrentBlock();
1427 include_once(
"./Services/COPage/classes/class.ilPCContentInclude.php");
1430 if (count($snippets) > 0)
1432 foreach ($snippets as $s)
1434 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
1437 $tpl->setCurrentBlock(
"med_link");
1438 $tpl->setVariable(
"TXT_CONTENT_SNIPPETS_USED", $this->lng->txt(
"cont_snippets_used"));
1439 $tpl->setVariable(
"SEL_SNIPPETS",
1441 $tpl->setVariable(
"TXT_SHOW_INFO", $this->lng->txt(
"cont_show_info"));
1442 $tpl->parseCurrentBlock();
1450 $tpl->setCurrentBlock(
"activation_txt");
1451 $tpl->setVariable(
"TXT_SCHEDULED_ACTIVATION", $lng->txt(
"cont_scheduled_activation"));
1452 $tpl->setVariable(
"SA_FROM",
1456 $tpl->setVariable(
"SA_TO",
1460 $tpl->parseCurrentBlock();
1464 if (
$_GET[
"reloadTree"] ==
"y")
1466 $tpl->setCurrentBlock(
"reload_tree");
1467 if ($this->obj->getParentType() ==
"dbk")
1469 $tpl->setVariable(
"LINK_TREE",
1470 $this->ctrl->getLinkTargetByClass(
"ilobjdlbookgui",
"explorer",
"",
false,
false));
1474 $tpl->setVariable(
"LINK_TREE",
1475 $this->ctrl->getLinkTargetByClass(
"ilobjlearningmodulegui",
"explorer",
"",
false,
false));
1477 $tpl->parseCurrentBlock();
1481 $builded = $this->obj->buildDom();
1488 if (!$this->obj->checkPCIds())
1490 $this->obj->insertPCIds();
1491 $this->obj->update(
true,
true);
1494 $this->obj->addFileSizes();
1495 $this->obj->addHierIDs();
1497 $hids = $this->obj->getHierIds();
1498 $row1_ids = $this->obj->getFirstRowIds();
1499 $col1_ids = $this->obj->getFirstColumnIds();
1500 $litem_ids = $this->obj->getListItemIds();
1501 $fitem_ids = $this->obj->getFileItemIds();
1504 $hids = $this->obj->getHierIds();
1505 foreach($hids as $hid)
1507 $tpl->setCurrentBlock(
"add_dhtml");
1508 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_".$hid);
1509 $tpl->parseCurrentBlock();
1513 foreach($col1_ids as $hid)
1515 $tpl->setCurrentBlock(
"add_dhtml");
1516 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_r".$hid);
1517 $tpl->parseCurrentBlock();
1521 foreach($row1_ids as $hid)
1523 $tpl->setCurrentBlock(
"add_dhtml");
1524 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_c".$hid);
1525 $tpl->parseCurrentBlock();
1529 foreach($litem_ids as $hid)
1531 $tpl->setCurrentBlock(
"add_dhtml");
1532 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_i".$hid);
1533 $tpl->parseCurrentBlock();
1537 foreach($fitem_ids as $hid)
1539 $tpl->setCurrentBlock(
"add_dhtml");
1540 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_i".$hid);
1541 $tpl->parseCurrentBlock();
1546 $this->obj->addFileSizes();
1553 if (!$this->link_xml_set)
1567 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
1569 $template_xml =
$style->getTemplateXML();
1570 $disable_auto_margins =
"n";
1571 if (
$style->lookupStyleSetting(
"disable_auto_margins"))
1573 $disable_auto_margins =
"y";
1580 $content =
"<dummy><PageObject><PageContent><Paragraph>".
1581 $this->obj->getFirstParagraphText().$link_xml.
1582 "</Paragraph></PageContent></PageObject></dummy>";
1586 $content = $this->obj->getXMLFromDom(
false,
true,
true,
1587 $link_xml.$this->getQuestionXML().$template_xml.$this->getComponentPluginsXML());
1591 if($builded !==
true)
1621 $enlarge_path =
"images/enlarge.svg";
1625 ?
"ilc_PrintPageTitle" 1630 $enable_split_new = ($this->obj->getParentType() ==
"lm" ||
1631 $this->obj->getParentType() ==
"dbk")
1637 if (($this->obj->getParentType() ==
"lm" ||
1638 $this->obj->getParentType() ==
"dbk") &&
1640 $this->obj->getId()))
1642 $enable_split_next =
"y";
1646 $enable_split_next =
"n";
1656 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
1668 ? $ilUser->getPref(
"ilPageEditor_MediaMode")
1671 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
1675 include_once(
"./Services/MediaObjects/classes/class.ilPlayerUtil.php");
1683 $current_ts = time();
1684 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
1687 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
1688 $params = array (
'mode' => $this->
getOutputMode(),
'pg_title' => htmlentities($pg_title,ENT_QUOTES,
"UTF-8"),
1689 'enable_placeholder' => $cfg->getEnablePCType(
"PlaceHolder") ?
"y" :
"n",
1690 'pg_id' => $this->obj->getId(),
'pg_title_class' => $pg_title_class,
1691 'webspace_path' => $wb_path,
'enlarge_path' => $enlarge_path,
1692 'img_col' => $col_path,
1693 'img_row' => $row_path,
1694 'img_item' => $item_path,
1695 'enable_split_new' => $enable_split_new,
1696 'enable_split_next' => $enable_split_next,
1698 'file_download_link' => $file_download_link,
1699 'fullscreen_link' => $fullscreen_link,
1700 'img_path' => $img_path,
1701 'parent_id' => $this->obj->getParentId(),
1703 'encoded_download_script' => urlencode($this->sourcecode_download_script),
1706 'pagebreak' => $this->lng->txt(
'dgl_pagebreak'),
1707 'page' => $this->lng->txt(
'page'),
1708 'citate_page' => $this->lng->txt(
'citate_page'),
1709 'citate_from' => $this->lng->txt(
'citate_from'),
1710 'citate_to' => $this->lng->txt(
'citate_to'),
1711 'citate' => $this->lng->txt(
'citate'),
1712 'enable_rep_objects' => $cfg->getEnablePCType(
"Resources") ?
"y" :
"n",
1713 'enable_login_page' => $cfg->getEnablePCType(
"LoginPageElement") ?
"y" :
"n",
1715 'enable_tabs' => $cfg->getEnablePCType(
"Tabs") ?
"y" :
"n",
1716 'enable_sa_qst' => $cfg->getEnableSelfAssessment() ?
"y" :
"n",
1717 'enable_file_list' => $cfg->getEnablePCType(
"FileList") ?
"y" :
"n",
1718 'enable_content_includes' => $cfg->getEnablePCType(
"ContentInclude") ?
"y" :
"n",
1719 'enable_content_templates' => (count($this->
getPageObject()->getContentTemplates()) > 0) ?
"y" :
"n",
1720 'paste' => $paste ?
"y" :
"n",
1721 'media_mode' => $media_mode,
1722 'javascript' => $sel_js_mode,
1723 'paragraph_plugins' => $paragraph_plugin_string,
1724 'disable_auto_margins' => $disable_auto_margins,
1725 'page_toc' => $cfg->getEnablePageToc() ?
"y" :
"n",
1726 'enable_profile' => $cfg->getEnablePCType(
"Profile") ?
"y" :
"n",
1727 'enable_verification' => $cfg->getEnablePCType(
"Verification") ?
"y" :
"n",
1728 'enable_blog' => $cfg->getEnablePCType(
"Blog") ?
"y" :
"n",
1729 'enable_skills' => $cfg->getEnablePCType(
"Skills") ?
"y" :
"n",
1730 'enable_qover' => $cfg->getEnablePCType(
"QuestionOverview") ?
"y" :
"n",
1731 'enable_consultation_hours' => $cfg->getEnablePCType(
"ConsultationHours") ?
"y" :
"n",
1732 'enable_my_courses' => $cfg->getEnablePCType(
"MyCourses") ?
"y" :
"n",
1733 'enable_amd_page_list' => $cfg->getEnablePCType(
"AMDPageList") ?
"y" :
"n",
1734 'current_ts' => $current_ts,
1736 'flv_video_player' => $flv_video_player
1738 if($this->link_frame !=
"")
1739 $params[
"pg_frame"] = $this->link_frame;
1746 $params[
"incl_elements_date"] = $this->obj->getLastUpdateOfIncludedElements();
1750 include_once(
"./Services/COPage/classes/class.ilPCSection.php");
1754 $md5 = md5(serialize(
$params).$link_xml.$template_xml.$md5_adds);
1763 $md5 == $this->obj->getRenderMd5() &&
1764 ($this->obj->getLastChange() < $this->obj->getRenderedTime()) &&
1765 $this->obj->getRenderedTime() !=
"" &&
1766 $this->obj->old_nr == 0)
1769 $output = $this->obj->getRenderedContent();
1773 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
1775 $this->log->debug(
"Calling XSLT, content: ".$content);
1780 $args = array(
'/_xml' => $content,
'/_xsl' => $xsl );
1784 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl", NULL, $args,
$params);
1788 && $this->obj->old_nr == 0)
1791 $this->obj->writeRenderedContent($output, $md5);
1803 $ilUser->getPref(
"ilPageEditor_HTMLMode") !=
"disable")
1806 $output = str_replace(
"<",
"<",$output);
1807 $output = str_replace(
">",
">",$output);
1809 $output = str_replace(
"&",
"&", $output);
1834 $output = str_replace(
"\n",
"", $output);
1842 $output =
'<div class="il_editarea_disabled">'.$output.
'</div>';
1846 include_once(
"./Services/COPage/classes/class.ilCOPagePCDef.php");
1848 foreach ($defs as $def)
1851 $pc_class = $def[
"pc_class"];
1855 $output = $pc_obj->modifyPageContentPostXsl($output, $this->
getOutputMode());
1858 $js_files = $pc_obj->getJavascriptFiles($this->
getOutputMode());
1859 foreach ($js_files as
$js)
1861 $GLOBALS[
"tpl"]->addJavascript($js);
1866 foreach ($css_files as $css)
1872 $onload_code = $pc_obj->getOnloadCode($this->
getOutputMode());
1873 foreach ($onload_code as
$code)
1875 $GLOBALS[
"tpl"]->addOnloadCode($code);
1886 if (
$_GET[
"updated_pc_id_str"] !=
"")
1888 echo
$_GET[
"updated_pc_id_str"];
1891 $tpl->setCurrentBlock(
"edit_page");
1892 $tpl->parseCurrentBlock();
1893 echo $tpl->get(
"edit_page");
1926 while (is_int($start = strpos($output,
"<!--ParStart-->")) &&
1927 is_int($end = strpos($output,
"<!--ParEnd-->", $start)))
1929 $output = substr($output, 0, $start).
1930 str_replace(array(
"{",
"}"), array(
"{",
"}"),
1931 substr($output, $start + 15, $end - ($start + 15))).
1932 substr($output, $end + 13);
1948 return array(
"deactivatePage" => $lng->txt(
"cont_deactivate_page"),
1949 "activatePage" => $lng->txt(
"cont_activate_page"));
1960 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
1964 $list->setListTitle($lng->txt(
"actions"));
1965 $list->setId(
"copage_act");
1973 $list->addItem($captions[
"deactivatePage"],
"",
1974 $ilCtrl->getLinkTarget($this,
"deactivatePage"));
1978 $list->addItem($captions[
"activatePage"],
"",
1979 $ilCtrl->getLinkTarget($this,
"activatePage"));
1982 $a_tpl->setVariable(
"PAGE_ACTIONS", $list->getHTML());
1989 $list->addItem($lng->txt(
"cont_initial_attached_content"),
"",
1990 $ilCtrl->getLinkTarget($this,
"initialOpenedContent"));
2001 $a_tpl->setVariable(
"PAGE_ACTIONS", $list->getHTML());
2004 $lng->loadLanguageModule(
"content");
2006 $list->setListTitle($lng->txt(
"cont_edit_mode"));
2007 $list->setId(
"copage_ed_mode");
2010 if ($sel_media_mode ==
"enable")
2012 $ilCtrl->setParameter($this,
"media_mode",
"disable");
2013 $list->addItem($lng->txt(
"cont_deactivate_media"),
"",
2014 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2018 $ilCtrl->setParameter($this,
"media_mode",
"enable");
2019 $list->addItem($lng->txt(
"cont_activate_media"),
"",
2020 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2022 $ilCtrl->setParameter($this,
"media_mode",
"");
2027 if ($sel_html_mode ==
"enable")
2029 $ilCtrl->setParameter($this,
"html_mode",
"disable");
2030 $list->addItem($lng->txt(
"cont_deactivate_html"),
"",
2031 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2035 $ilCtrl->setParameter($this,
"html_mode",
"enable");
2036 $list->addItem($lng->txt(
"cont_activate_html"),
"",
2037 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2040 $ilCtrl->setParameter($this,
"html_mode",
"");
2043 if ($sel_js_mode ==
"enable")
2045 $ilCtrl->setParameter($this,
"js_mode",
"disable");
2046 $list->addItem($lng->txt(
"cont_deactivate_js"),
"",
2047 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2051 $ilCtrl->setParameter($this,
"js_mode",
"enable");
2052 $list->addItem($lng->txt(
"cont_activate_js"),
"",
2053 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2055 $ilCtrl->setParameter($this,
"js_mode",
"");
2057 $a_tpl->setVariable(
"EDIT_MODE", $list->getHTML());
2075 if ($cfg->getMultiLangSupport())
2081 include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
2084 if (!$ot->getContentActivated())
2096 $lng->loadLanguageModule(
"meta");
2100 $l = $ot->getMasterLanguage();
2101 $a_list->addItem($lng->txt(
"cont_edit_language_version").
": ".
2102 $lng->txt(
"meta_l_".
$l),
"",
2103 $ilCtrl->getLinkTarget($this,
"editMasterLanguage"));
2106 foreach ($ot->getLanguages() as $al =>
$lang)
2109 $al != $ot->getMasterLanguage())
2111 $ilCtrl->setParameter($this,
"totransl", $al);
2112 $a_list->addItem($lng->txt(
"cont_edit_language_version").
": ".
2113 $lng->txt(
"meta_l_".$al),
"",
2114 $ilCtrl->getLinkTarget($this,
"switchToLanguage"));
2115 $ilCtrl->setParameter($this,
"totransl",
$_GET[
"totransl"]);
2125 include_once(
"./Services/COPage/classes/class.ilPageMultiLangGUI.php");
2128 $a_tpl->setVariable(
"MULTI_LANG_INFO", $ml_gui->getMultiLangInfo($this->getPageObject()->getLanguage()));
2145 if (
$_GET[
"media_mode"] !=
"")
2147 if (
$_GET[
"media_mode"] ==
"disable")
2149 $ilUser->writePref(
"ilPageEditor_MediaMode",
"disable");
2153 $ilUser->writePref(
"ilPageEditor_MediaMode",
"");
2156 if (
$_GET[
"html_mode"] !=
"")
2158 if (
$_GET[
"html_mode"] ==
"disable")
2160 $ilUser->writePref(
"ilPageEditor_HTMLMode",
"disable");
2164 $ilUser->writePref(
"ilPageEditor_HTMLMode",
"");
2167 if (
$_GET[
"js_mode"] !=
"")
2169 if (
$_GET[
"js_mode"] ==
"disable")
2171 $ilUser->writePref(
"ilPageEditor_JavaScript",
"disable");
2175 $ilUser->writePref(
"ilPageEditor_JavaScript",
"");
2179 $ilCtrl->redirect($this,
"edit");
2187 $a_int_links =
false, $a_wiki_links =
false, $a_keywords =
false,
2188 $a_style_id = 0, $a_paragraph_styles =
true, $a_save_return =
true,
2189 $a_anchors =
false, $a_save_new =
true, $a_user_links =
false)
2195 include_once(
"./Services/COPage/classes/class.ilPageEditorSettings.php");
2197 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
2199 $btpl =
new ilTemplate(
"tpl.tiny_menu.html",
true,
true,
"Services/COPage");
2204 $btpl->touchBlock(
"debug_ghost");
2208 $btpl->touchBlock(
"blist_button");
2210 $lng->txt(
"cont_blist"),
2214 $btpl->touchBlock(
"nlist_button");
2216 $lng->txt(
"cont_nlist"),
2220 $btpl->touchBlock(
"list_indent");
2222 $lng->txt(
"cont_list_indent"),
2226 $btpl->touchBlock(
"list_outdent");
2228 $lng->txt(
"cont_list_outdent"),
2233 $btpl->touchBlock(
"bb_ilink_button");
2242 $btpl->touchBlock(
"bb_ulink_button");
2246 $btpl->touchBlock(
"rformat_button");
2250 if ($a_paragraph_styles)
2253 $btpl->setCurrentBlock(
"new_par");
2254 $btpl->setVariable(
"IMG_NEWPAR",
"+");
2255 $btpl->parseCurrentBlock();
2259 $btpl->setCurrentBlock(
"par_edit");
2260 $btpl->setVariable(
"TXT_PAR_FORMAT", $lng->txt(
"cont_par_format"));
2261 include_once(
"./Services/COPage/classes/class.ilPCParagraphGUI.php");
2266 $lng->txt(
"cont_paragraph_styles"),
"iltinymenu_bd");
2268 $btpl->parseCurrentBlock();
2273 $btpl->setCurrentBlock(
"bb_kw_button");
2274 $btpl->setVariable(
"CC_KW",
"kw");
2275 $btpl->parseCurrentBlock();
2283 $btpl->setCurrentBlock(
"bb_wikilink_button2");
2284 $btpl->setVariable(
"TXT_WIKI_BUTTON2", $lng->txt(
"obj_wiki"));
2285 $btpl->setVariable(
"WIKI_BUTTON2_URL", $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
""));
2286 $btpl->parseCurrentBlock();
2290 $btpl->setCurrentBlock(
"bb_wikilink_button");
2291 $btpl->setVariable(
"TXT_WLN2", $lng->txt(
"obj_wiki"));
2292 $btpl->parseCurrentBlock();
2299 include_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
2303 if (in_array($c, array(
"com",
"quot",
"acc",
"code")))
2308 $a_par_type,
"active_".$c,
true))
2311 if ($aset->get(
"use_physical"))
2313 $cc_code = str_replace(array(
"str",
"emp",
"imp"), array(
"B",
"I",
"U"), $cc_code);
2316 if ($c !=
"tex" ||
$mathJaxSetting->get(
"enable") || defined(
"URL_TO_LATEX"))
2318 $btpl->setCurrentBlock(
"bb_".$c.
"_button");
2319 $btpl->setVariable(
"CC_".strtoupper($c), $cc_code);
2320 $btpl->parseCurrentBlock();
2322 $lng->txt(
"cont_cc_".$c),
2338 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2340 $sdd->setPullRight(
false);
2341 $sdd->setListTitle($lng->txt(
"save").
"...");
2345 $btpl->setCurrentBlock(
"save_return");
2346 $btpl->setVariable(
"TXT_SAVE_RETURN", $lng->txt(
"save_return"));
2347 $btpl->parseCurrentBlock();
2348 $sdd->addItem($lng->txt(
"save_return"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSaveReturn(false); return false;");
2353 $btpl->setCurrentBlock(
"save_new");
2354 $btpl->setVariable(
"TXT_SAVE_NEW", $lng->txt(
"save_new"));
2355 $btpl->parseCurrentBlock();
2356 $sdd->addItem($lng->txt(
"save_new"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSaveReturn(true); return false;");
2359 $sdd->addItem($lng->txt(
"save"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSave(null); return false;");
2360 $sdd->addItem($lng->txt(
"cancel"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdCancel(); return false;");
2364 $btpl->setCurrentBlock(
"bb_anc_button");
2365 $btpl->setVariable(
"CC_ANC",
"anc");
2366 $btpl->parseCurrentBlock();
2371 $btpl->setVariable(
"SAVE_DROPDOWN", $sdd->getHTML());
2380 $btpl->setVariable(
"TXT_SAVE", $lng->txt(
"save"));
2381 $btpl->setVariable(
"TXT_CANCEL", $lng->txt(
"cancel"));
2383 $btpl->setVariable(
"TXT_CHAR_FORMAT", $lng->txt(
"cont_char_format"));
2384 $btpl->setVariable(
"TXT_LISTS", $lng->txt(
"cont_lists"));
2385 $btpl->setVariable(
"TXT_LINKS", $lng->txt(
"cont_links"));
2386 $btpl->setVariable(
"TXT_MORE_FUNCTIONS", $lng->txt(
"cont_more_functions"));
2387 $btpl->setVariable(
"TXT_SAVING", $lng->txt(
"cont_saving"));
2389 include_once(
"./Services/COPage/classes/class.ilPCParagraphGUI.php");
2392 $lng->txt(
"cont_more_character_styles"),
"iltinymenu_bd");
2394 return $btpl->get();
2406 $link_info =
"<IntLinkInfos>";
2407 $targetframe =
"None";
2408 foreach ($int_links as $int_link)
2410 $target = $int_link[
"Target"];
2411 if (substr($target, 0, 4) ==
"il__")
2415 $type = $int_link[
"Type"];
2417 $targetframe = ($int_link[
"TargetFrame"] !=
"")
2418 ? $int_link[
"TargetFrame"]
2422 if ($targetframe !=
"None")
2428 $anc = $anc_add =
"";
2429 if ($int_link[
"Anchor"] !=
"")
2431 $anc = $int_link[
"Anchor"];
2432 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
2440 case "StructureObject":
2442 if ($type ==
"PageObject")
2444 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
2448 $href =
"./goto.php?target=st_".$target_id;
2452 case "GlossaryItem":
2453 if ($targetframe ==
"None")
2455 $targetframe =
"Glossary";
2457 $href =
"./goto.php?target=git_".$target_id;
2461 $ilCtrl->setParameter($this,
"mob_id",
$target_id);
2463 $href = $ilCtrl->getLinkTarget($this,
"displayMedia");
2464 $ilCtrl->setParameter($this,
"mob_id",
"");
2468 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
2472 case "RepositoryItem":
2475 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
2480 if ($obj_type ==
"usr")
2482 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2483 $back = $ilCtrl->getLinkTargetByClass(strtolower(get_class($this)),
"preview");
2484 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
$target_id);
2485 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"back_url",
2486 rawurlencode($back));
2488 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2491 $href = $ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"getHTML");
2493 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
"");
2499 $anc_par =
'Anchor="'.$anc.
'"';
2500 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".$anc_par.
" ".
2501 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" LinkContent=\"$lcontent\" />";
2504 $link_info.=
"</IntLinkInfos>";
2513 $this->obj->buildDom();
2515 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
2519 require_once(
"./Modules/File/classes/class.ilObjFile.php");
2520 $file_id = $file[count($file) - 1];
2523 if (!in_array($file_id, $files))
2527 $fileObj =&
new ilObjFile($file_id,
false);
2528 $fileObj->sendFile();
2547 $tpl =
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Modules/LearningModule");
2548 $tpl->setCurrentBlock(
"ilMedia");
2556 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
2558 require_once(
"./Services/COPage/classes/class.ilPageObject.php");
2560 $pg_obj->buildDom();
2562 if (!empty (
$_GET[
"pg_id"]))
2565 $xml.= $pg_obj->getMediaAliasElement(
$_GET[
"mob_id"]);
2579 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
2580 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
2586 $mode =
"fullscreen";
2593 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
2594 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' =>
"",
2595 'ref_id' =>
$_GET[
"ref_id"],
'webspace_path' => $wb_path);
2596 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args,
$params);
2602 require_once(
'./Services/Style/classes/class.ilObjStyleSheet.php');
2603 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
2606 $tpl->setVariable(
"MEDIA_CONTENT", $output);
2609 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
2611 $tpl->fillJavaScriptFiles();
2612 $tpl->fillCssFiles();
2624 $pg_obj->send_paragraph(
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
2635 $start = strpos($a_html,
"{{{{{ContentInclude;");
2638 $end = strpos($a_html,
"}}}}}", $start);
2643 $param = substr($a_html, $start + 20, $end - $start - 20);
2644 $param = explode(
";", $param);
2646 if ($param[0] ==
"mep" && is_numeric($param[1]))
2648 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
2653 $snippet_lang =
"-";
2669 $html = $page_gui->getRawContent();
2677 $html =
"// ".$lng->txt(
"cont_missing_snippet").
" //";
2681 $html =
"// ".$lng->txt(
"cont_snippet_from_another_installation").
" //";
2685 $h2 = substr($a_html, 0, $start).
2687 substr($a_html, $end + 5);
2692 $start = strpos($a_html,
"{{{{{ContentInclude;", $start + 5);
2696 $end = strpos($a_html,
"}}}}}", $start);
2712 include_once(
"./Services/Utilities/classes/class.ilStr.php");
2716 $page_heads = array();
2717 foreach ($offsets as $os)
2719 $level = (int) substr($a_output, $os + 10, 1);
2720 if (in_array($level, array(1,2,3)))
2722 $anchor = str_replace(
"TocH",
"TocA",
2723 substr($a_output, $os, strpos($a_output,
"<", $os) - $os - 3)
2727 $tag_start = stripos($a_output,
"<h".$level.
" ", $os);
2728 $tag_end = stripos($a_output,
"</h".$level.
">", $tag_start);
2729 $head = substr($a_output, $tag_start, $tag_end - $tag_start);
2732 $text_start = stripos($head,
">") + 1;
2733 $text_end = strripos($head,
"<!--", $text_start);
2734 $text = substr($head, $text_start, $text_end - $text_start);
2735 $page_heads[] = array(
"level" => $level,
"text" =>
$text,
2736 "anchor" => $anchor);
2740 if (count($page_heads) > 1)
2742 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
2744 $list->setAutoNumbering(
true);
2745 $list->setListClass(
"ilc_page_toc_PageTOCList");
2746 $list->setItemClass(
"ilc_page_toc_PageTOCItem");
2754 foreach ($page_heads as $ind =>
$h)
2761 if (
$h[
"level"] == 2 && $c_par[1] > 0)
2765 if (
$h[
"level"] == 3 && $c_par[2] > 0)
2770 $h[
"text"] = str_replace(
"<!--PageTocPH-->",
"",
$h[
"text"]);
2774 "<a href='#".
$h[
"anchor"].
"' class='ilc_page_toc_PageTOCLink'>".
$h[
"text"].
"</a>",
2778 if ($h[
"level"] == 1)
2783 if ($h[
"level"] == 2)
2789 $tpl =
new ilTemplate(
"tpl.page_toc.html",
true,
true,
2791 $tpl->setVariable(
"PAGE_TOC", $list->getHTML());
2792 $tpl->setVariable(
"TXT_PAGE_TOC", $lng->txt(
"cont_page_toc"));
2793 $tpl->setVariable(
"TXT_HIDE", $lng->txt(
"hide"));
2794 $tpl->setVariable(
"TXT_SHOW", $lng->txt(
"show"));
2796 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
2797 $tpl->get(), $a_output);
2798 $numbers = $list->getNumbers();
2800 if (count($numbers) > 0)
2802 include_once(
"./Services/Utilities/classes/class.ilStr.php");
2803 foreach ($numbers as
$n)
2812 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
2832 include_once(
"./Services/COPage/classes/class.ilPCResourcesGUI.php");
2852 $a_output = str_replace(
"{{{{{LV_show_adv}}}}}",
2853 $lng->txt(
"cont_show_adv"), $a_output);
2854 $a_output = str_replace(
"{{{{{LV_hide_adv}}}}}",
2855 $lng->txt(
"cont_hide_adv"), $a_output);
2859 $a_output = str_replace(
"{{{{{LV_show_adv}}}}}",
2861 $a_output = str_replace(
"{{{{{LV_hide_adv}}}}}",
2885 $a_tpl->setCurrentBlock(
"help");
2886 $a_tpl->setVariable(
"TXT_ADD_EL", $lng->txt(
"cont_add_elements"));
2887 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
2890 $a_tpl->setVariable(
"TXT_DRAG", $lng->txt(
"cont_drag_and_drop_elements"));
2891 $a_tpl->setVariable(
"TXT_SEL", $lng->txt(
"cont_double_click_to_delete"));
2892 $a_tpl->parseCurrentBlock();
2924 $ilCtrl->redirect($this,
"preview");
2929 if ($ptype ==
"cont" &&
$_GET[
"ref_id"] > 0)
2933 $ilHelp->setScreenId(
"edit_".$ptype);
2935 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
2937 $ilUser->isAnonymous() &&
2938 !$ilUser->isCaptchaVerified() &&
2939 ilCaptchaUtil::isActiveForWiki()
2942 $form = $this->initCaptchaForm();
2943 if(
$_POST[
'captcha_code'] && $form->checkInput())
2945 $ilUser->setCaptchaVerified(
true);
2949 return $form->getHTML();
2956 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2957 $info = $lng->txt(
"content_no_edit_lock");
2959 $info .=
"</br>" . $lng->txt(
"content_until") .
": " .
2961 $info .=
"</br>" . $lng->txt(
"obj_usr") .
": " .
2963 if (!$ilCtrl->isAsynch())
2970 echo $this->tpl->getMessageHTML(
$info);
2978 $min = (int) $aset->get(
"block_mode_minutes") ;
2981 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2983 $info = $lng->txt(
"cont_got_lock_until");
2989 include_once(
"./Services/UIComponent/Button/classes/class.ilLinkButton.php");
2991 $but->setCaption(
"cont_finish_editing");
2992 $but->setUrl($ilCtrl->getLinkTarget($this,
"releasePageLock"));
2993 $info = str_replace(
"%2", $but->render(),
$info);
3004 $html.=
"<br /><br />".$this->getNotesHTML();
3024 $tpl->addOnLoadCode(
"ilCOPage.insertJSAtPlaceholder('".
3034 public function initCaptchaForm()
3042 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
3045 require_once
'Services/Captcha/classes/class.ilCaptchaInputGUI.php';
3048 $form->addItem($ci);
3050 $form->addCommandButton(
'edit', $lng->txt(
'ok'));
3052 $form->setTitle($lng->txt(
'cont_captcha_verification'));
3053 $form->setFormAction($ilCtrl->getFormAction($this));
3080 $this->tpl =
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
3081 $this->tpl->setCurrentBlock(
"ContentStyle");
3082 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET", 0);
3083 $this->tpl->parseCurrentBlock();
3087 $this->tpl->setCurrentBlock(
"ilMedia");
3089 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
3091 if (!empty (
$_GET[
"pg_id"]))
3093 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
3095 $pg_obj->buildDom();
3100 $xml.= $pg_obj->getMediaAliasElement(
$_GET[
"mob_id"]);
3114 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
3115 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
3122 $mode =
"fullscreen";
3123 $params = array (
'mode' => $mode,
'webspace_path' => $wb_path);
3124 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args,
$params);
3129 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
3139 if(is_array($a_error))
3141 $error_str =
"<b>Error(s):</b><br>";
3142 foreach ($a_error as $error)
3144 $err_mess = implode($error,
" - ");
3145 if (!is_int(strpos($err_mess,
":0:")))
3147 $error_str .= htmlentities($err_mess).
"<br />";
3150 $this->tpl->setVariable(
"MESSAGE", $error_str);
3166 $tpl->addJavaScript(
"./Services/COPage/js/page_history.js");
3168 include_once(
"./Services/COPage/classes/class.ilPageHistoryTableGUI.php");
3170 $table_gui->setId(
"hist_table");
3177 'sortkey' => 999999,
3179 $table_gui->setData($entries);
3180 return $table_gui->getHTML();
3195 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
3199 $ilCtrl->setParameter($this,
"rollback_nr",
$_GET[
"old_nr"]);
3200 $c_gui->setFormAction($ilCtrl->getFormAction($this,
"rollback"));
3201 $c_gui->setHeaderText($lng->txt(
"cont_rollback_confirmation"));
3202 $c_gui->setCancel($lng->txt(
"cancel"),
"history");
3203 $c_gui->setConfirm($lng->txt(
"confirm"),
"rollback");
3205 $hentry = $this->obj->getHistoryEntry(
$_GET[
"old_nr"]);
3207 $c_gui->addItem(
"id[]",
$_GET[
"old_nr"],
3210 $tpl->setContent($c_gui->getHTML());
3225 $hentry = $this->obj->getHistoryEntry(
$_GET[
"rollback_nr"]);
3227 if ($hentry[
"content"] !=
"")
3229 $this->obj->setXMLContent($hentry[
"content"]);
3230 $this->obj->buildDom(
true);
3231 if ($this->obj->update())
3233 $ilCtrl->redirect($this,
"history");
3236 $ilCtrl->redirect($this,
"history");
3249 $ilHelp->setScreenIdComponent(
"copg");
3273 $ilTabs->addTarget(
"pg", $ilCtrl->getLinkTarget($this,
"preview")
3274 , array(
"",
"preview"));
3278 $ilTabs->addTarget(
"edit", $ilCtrl->getLinkTarget($this,
"edit")
3279 , array(
"",
"edit"));
3286 $ilTabs->addTarget(
"edit", $ilCtrl->getLinkTarget($this,
"edit")
3287 , array(
"",
"edit"));
3290 $ilTabs->addTarget(
"cont_preview", $ilCtrl->getLinkTarget($this,
"preview")
3291 , array(
"",
"preview"));
3297 if ($this->use_meta_data)
3299 include_once
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
3301 $this->meta_data_type, $this->meta_data_sub_obj_id);
3302 $mdtab = $mdgui->getTab();
3305 $ilTabs->addTarget(
"meta_data",
3306 $mdtab,
"",
"ilobjectmetadatagui");
3314 $ilTabs->addTarget(
"history", $this->ctrl->getLinkTarget($this,
"history")
3315 ,
"history", get_class($this));
3316 if (
$_GET[
"history_mode"] ==
"1" || $this->ctrl->getCmd() ==
"compareVersion")
3318 $ilTabs->activateTab(
"history");
3331 $ilTabs->addTarget(
"clipboard", $this->ctrl->getLinkTargetByClass(
"ilEditClipboardGUI",
"view")
3332 ,
"view",
"ilEditClipboardGUI");
3337 $ilTabs->addTarget(
"cont_activation", $this->ctrl->getLinkTarget($this,
"editActivation"),
3338 "editActivation", get_class($this));
3343 $ilTabs->addTarget(
"news",
3344 $this->ctrl->getLinkTargetByClass(
"ilnewsitemgui",
"editNews"),
3345 "",
"ilnewsitemgui");
3349 if (is_array($this->tab_hook))
3351 $func = $this->tab_hook[
"func"];
3352 $this->tab_hook[
"obj"]->$func();
3369 $tpl =
new ilTemplate(
"tpl.page_compare.html",
true,
true,
"Services/COPage");
3370 $compare = $this->obj->compareVersion((
int)
$_POST[
"left"], (
int) $_POST[
"right"]);
3373 $lpage = $compare[
"l_page"];
3375 $cfg->setPreventHTMLUnmasking(
true);
3384 $lhtml = str_replace(
"<br />",
"<br />", $lhtml);
3385 $tpl->setVariable(
"LEFT", $lhtml);
3388 $rpage = $compare[
"r_page"];
3396 $rhtml = str_replace(
"<br />",
"<br />", $rhtml);
3397 $tpl->setVariable(
"RIGHT", $rhtml);
3399 $tpl->setVariable(
"TXT_NEW", $lng->txt(
"cont_pc_new"));
3400 $tpl->setVariable(
"TXT_MODIFIED", $lng->txt(
"cont_pc_modified"));
3401 $tpl->setVariable(
"TXT_DELETED", $lng->txt(
"cont_pc_deleted"));
3411 $a_html = str_replace(
"[ilDiffInsStart]",
'<span class="ilDiffIns">', $a_html);
3412 $a_html = str_replace(
"[ilDiffDelStart]",
'<span class="ilDiffDel">', $a_html);
3413 $a_html = str_replace(
"[ilDiffInsEnd]",
'</span>', $a_html);
3414 $a_html = str_replace(
"[ilDiffDelEnd]",
'</span>', $a_html);
3426 $atpl =
new ilTemplate(
"tpl.page_activation.php",
true,
true,
"Services/COPage");
3429 $atpl->setVariable(
"FORM", $this->form->getHTML());
3430 $atpl->setCurrentBlock(
"updater");
3431 $atpl->setVariable(
"UPDATER_FRAME", $this->exp_frame);
3432 $atpl->setVariable(
"EXP_ID_UPDATER", $this->exp_id);
3433 $atpl->setVariable(
"HREF_UPDATER", $this->exp_target_script);
3434 $atpl->parseCurrentBlock();
3435 $tpl->setContent($atpl->get());
3445 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
3447 $this->form->setFormAction($ilCtrl->getFormAction($this));
3448 $this->form->setTitle($lng->txt(
"cont_page_activation"));
3452 $rad_op1 =
new ilRadioOption($lng->txt(
"cont_activated"),
"activated");
3454 $rad->addOption($rad_op1);
3455 $rad_op2 =
new ilRadioOption($lng->txt(
"cont_deactivated"),
"deactivated");
3456 $rad->addOption($rad_op2);
3457 $rad_op3 =
new ilRadioOption($lng->txt(
"cont_scheduled_activation"),
"scheduled");
3460 $dt_prop->setShowTime(
true);
3464 $rad_op3->addSubItem($dt_prop2);
3467 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_show_activation_info"),
"show_activation_info");
3468 $cb->
setInfo($this->lng->txt(
"cont_show_activation_info_info"));
3469 $rad_op3->addSubItem($cb);
3472 $rad->addOption($rad_op3);
3474 $this->form->addCommandButton(
"saveActivation", $lng->txt(
"save"));
3476 $this->form->addItem($rad);
3485 $values[
"activation"] =
"deactivated";
3488 $values[
"activation"] =
"activated";
3491 $dt_prop = $this->form->getItemByPostVar(
"start");
3494 $values[
"activation"] =
"scheduled";
3498 $dt_prop = $this->form->getItemByPostVar(
"end");
3501 $values[
"activation"] =
"scheduled";
3506 $values[
"show_activation_info"] = $this->
getPageObject()->getShowActivationInfo();
3508 $this->form->setValuesByArray($values);
3520 if ($this->form->checkInput())
3526 if (
$_POST[
"activation"] ==
"deactivated")
3530 if (
$_POST[
"activation"] ==
"scheduled")
3534 $this->form->getItemByPostVar(
"start")->getDate()->get(
IL_CAL_DATETIME));
3536 $this->form->getItemByPostVar(
"end")->getDate()->get(
IL_CAL_DATETIME));
3540 $ilCtrl->redirect($this,
"editActivation");
3542 $this->form->getValuesByPost();
3543 $tpl->setContent($this->form->getHTML());
3555 function getNotesHTML($a_content_object = null, $a_enable_private_notes =
true, $a_enable_public_notes =
false, $a_enable_notes_deletion =
false, $a_callback = null)
3559 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
3562 if(!$a_content_object)
3564 $notes_gui =
new ilNoteGUI($this->notes_parent_id,
3565 (
int)$this->obj->getId(),
"pg");
3567 $a_enable_private_notes =
true;
3568 $a_enable_public_notes =
true;
3569 $a_enable_notes_deletion =
false;
3574 $notes_gui =
new ilNoteGUI($a_content_object->getParentId(),
3575 $a_content_object->getId(), $a_content_object->getParentType());
3578 if($a_enable_private_notes)
3582 if ($a_enable_public_notes)
3584 $notes_gui->enablePublicNotes();
3585 if ((
bool)$a_enable_notes_deletion)
3587 $notes_gui->enablePublicNotesDeletion(
true);
3593 $notes_gui->addObserver($a_callback);
3596 $next_class = $this->ctrl->getNextClass($this);
3597 if ($next_class ==
"ilnotegui")
3599 $html = $this->ctrl->forwardCommand($notes_gui);
3603 $html = $notes_gui->getNotesHTML();
3621 include_once(
"./Services/COPage/classes/class.ilPageQuestionProcessor.php");
3645 $ilTabs->activateTab(
"edit");
3648 $this->tpl->setContent($form->getHTML());
3661 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
3665 include_once
'Services/Form/classes/class.ilLinkInputGUI.php';
3666 $ac =
new ilLinkInputGUI($this->lng->txt(
'cont_resource'),
'opened_content');
3668 $ac->setInternalLinkDefault(
"Media_Media", 0);
3669 $ac->setInternalLinkFilterTypes(array(
"PageObject_FAQ",
"GlossaryItem",
"Media_Media",
"Media_FAQ"));
3670 $val = $this->obj->getInitialOpenedContent();
3671 if ($val[
"id"] !=
"" && $val[
"type"] !=
"")
3673 $ac->setValue($val[
"type"].
"|".$val[
"id"].
"|".$val[
"target"]);
3676 $form->addItem($ac);
3678 $form->addCommandButton(
"saveInitialOpenedContent", $this->lng->txt(
"save"));
3679 $form->addCommandButton(
"edit", $this->lng->txt(
"cancel"));
3680 $form->setTitle($this->lng->txt(
"cont_initial_attached_content"));
3681 $form->setFormAction($ilCtrl->getFormAction($this));
3696 $this->obj->saveInitialOpenedContent(
3703 $ilCtrl->redirect($this,
"edit");
3725 $ilCtrl->setParameter($this,
"transl",
$_GET[
"totransl"]);
3726 $ilCtrl->redirect($this,
"edit");
3737 $ilCtrl->setParameter($this,
"totransl",
$l);
3738 $lng->loadLanguageModule(
"meta");
3740 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
3742 $cgui->setFormAction($ilCtrl->getFormAction($this));
3743 $cgui->setHeaderText($lng->txt(
"cont_page_translation_does_not_exist").
": ".
3744 $lng->txt(
"meta_l_".
$l));
3745 $cgui->setCancel($lng->txt(
"cancel"),
"editMasterLanguage");
3746 $cgui->setConfirm($lng->txt(
"confirm"),
"createPageTranslation");
3747 $tpl->setContent($cgui->getHTML());
3757 $ilCtrl->setParameter($this,
"transl",
"");
3758 $ilCtrl->redirect($this,
"edit");
3770 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
3773 $p->copyPageToTranslation(
$l);
3774 $ilCtrl->setParameter($this,
"transl",
$l);
3775 $ilCtrl->redirect($this,
"edit");
3787 $ilCtrl->redirect($this,
"preview");
_getTargetsOfSource($a_source_type, $a_source_id, $a_source_lang="-")
Get all targets of a source object (e.g., a page)
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.
getPCDefinitions()
Get PC definitions.
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.
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.
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.
static insertLatexImages($a_text, $a_start="\ex\, $a_end="\\tex\")
replace [text]...[/tex] tags with formula image code
setQuestionXML($question_xml)
if(strpos($jquery_path, './')===0) else if(strpos($jquery_path, '.')===0) $mathJaxSetting
static initConnection()
Init YUI Connection module.
compareVersion()
Compares two revisions of the page.
static getFlashVideoPlayerFilename($a_fullpath=false)
Get flash video player file name.
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 _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.
insertJSAtPlaceholder()
InsertJS at placeholder.
static requirePCClassByName($a_name)
Get instance.
setDefaultLinkXml()
Set standard link xml.
static getStyleSelector($a_selected, $a_chars, $a_use_callback=false)
Get style selector.
getActivationFormValues()
Get values for activation form.
saveActivation()
Save Activation.
hasSuccessorPage($a_cont_obj_id, $a_page_id)
checks if page has a successor page
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.
_getQuestionType($question_id)
Returns the question type of a question with a given id.
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.
ilPageObjectGUI($a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
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.
GUI class for public user profile presentation.
setFullscreenLink($a_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 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.
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)
download_paragraph()
download source code paragraph
_lookupContObjID($a_id)
get learning module / digibook id for lm object
& _getQuestionGUI($question_type, $question_id=-1)
Creates a question gui representation and returns the alias to the question gui note: please do not u...
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)
static clear($a_var)
Unset a value.
setRenderPageContainer($a_val)
Set render page container.
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.
& executeCommand()
execute command
static getCacheTriggerString($a_page)
Get page cache update trigger string.
setFileDownloadLink($a_download_link)
static getCharStyleSelector($a_par_type, $a_use_callback=true)
Get character style selector.
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.
_doJSEditing()
checks if current user has activated js editing and if browser is js capable
User interface class for advanced drop-down selection lists.
getOfflineDirectory()
get offline directory
static isActivated()
Checks whether Map feature is activated.
setTemplateOutputVar($a_value)
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.
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
getEnabledPageFocus()
Get Enable page focus.
getContentStylePath($a_style_id)
get content style path
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.
insertContentIncludes($a_html)
Insert content includes.
initPageObject()
Init page object.
setTabHook($a_object, $a_function)
Set tab hook.
showPage()
display content of page
setLinkFrame($l_frame="")
static initjQuery($a_tpl=null)
Init jQuery.
static getLogger($a_component_id)
Get component logger.
addMultiLangActionsAndInfo($a_list, $a_tpl)
Add multi-language actions to menu.
setPageBackTitle($a_title)
static _exists($a_id)
Check whether meida pool page exists.
enablePrivateNotes($a_enable=true)
enable private notes
getSourcecodeDownloadScript()
static saveQuestionAnswer($a_type, $a_id, $a_answer)
Save question answer.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
insertResources($a_output)
Insert resources.
processAnswer()
Process answer.
getRenderPageContainer()
Get render page container.
$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.
Class ilMediaPoolPage GUI class.
getInitHTML($a_url, $a_move_to_body=false)
Get initialisation HTML to use interna link editing.
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.