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");
79 $a_prevent_get_id =
false, $a_lang =
"")
85 if ($a_old_nr == 0 && !$a_prevent_get_id &&
$_GET[
"old_nr"] > 0)
87 $a_old_nr =
$_GET[
"old_nr"];
91 if ($a_lang ==
"" &&
$_GET[
"transl"] !=
"")
113 $this->output2template =
true;
114 $this->question_xml =
"";
115 $this->question_html =
"";
116 $this->tabs_gui =& $ilTabs;
118 $this->template_output_var =
"PAGE_CONTENT";
119 $this->citation =
false;
120 $this->change_comments =
false;
121 $this->page_back_title = $this->lng->txt(
"page");
122 $lng->loadLanguageModule(
"content");
126 $ilCtrl->saveParameter($this,
"transl");
144 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
157 $this->parent_type = $a_val;
197 $this->old_nr = $a_val;
207 return $this->old_nr;
217 $this->language = $a_val;
227 if ($this->language ==
"")
232 return $this->language;
262 $this->page_config = $a_val;
281 $this->bib_id = $a_id;
289 return $this->bib_id ? $this->bib_id : 0;
299 $this->obj = $a_pg_obj;
319 $this->output_mode = $a_mode;
329 $this->output2template = $a_output;
339 $this->presentation_title = $a_title;
349 $this->header = $a_title;
354 return $this->header;
359 $this->link_params = $l_params;
369 $this->link_frame = $l_frame;
374 return $this->link_frame;
379 $this->link_xml = $link_xml;
380 $this->link_xml_set =
true;
385 return $this->link_xml;
390 $this->question_xml = $question_xml;
400 return $this->question_xml;
410 $this->target_var = $a_variable;
420 $this->template_output_var = $a_value;
430 $this->sourcecode_download_script = $script_name;
439 $this->citation = $a_enabled;
449 $this->locator =& $a_locator;
454 $this->tabs_gui = $a_tabs;
459 $this->page_back_title = $a_title;
465 $this->file_download_link = $a_download_link;
470 return $this->file_download_link;
476 $this->fullscreen_link = $a_fullscreen_link;
481 return $this->fullscreen_link;
486 $this->int_link_return = $a_return;
491 $this->change_comments = $a_enabled;
501 $this->notes_enabled = $a_enabled;
502 $this->notes_parent_id = $a_parent_id;
507 return $this->notes_enabled;
516 $this->offline_directory = $offdir;
525 return $this->offline_directory;
537 $this->view_page_link = $a_link;
538 $this->view_page_target = $a_target;
546 return $this->view_page_link;
554 return $this->view_page_target;
559 $this->act_obj =& $a_obj;
560 $this->act_meth = $a_meth;
570 $this->enabled_news = $a_enabled;
571 $this->news_obj_id = $a_news_obj_id;
572 $this->news_obj_type = $a_news_obj_type;
582 return $this->enabled_news;
590 $this->tab_hook = array(
"obj" => $a_object,
"func" => $a_function);
600 $this->editpreview = $a_editpreview;
620 $this->tabs_enabled = $a_enabledtabs;
640 $this->enabledpagefocus = $a_enabledpagefocus;
650 return $this->enabledpagefocus;
661 $this->exp_frame = $a_exp_frame;
662 $this->exp_id = $a_exp_id;
663 $this->exp_target_script = $a_exp_target_script;
673 $this->prependinghtml = $a_prependinghtml;
683 return $this->prependinghtml;
693 $this->enableediting = $a_enableediting;
713 $this->rawpagecontent = $a_rawpagecontent;
733 $this->styleid = $a_styleid;
743 return $this->styleid;
753 $this->compare_mode = $a_val;
773 $this->abstract_only = $a_val;
793 $this->render_page_container = $a_val;
816 $a_observer_obj = NULL, $a_observer_func =
"")
818 $this->use_meta_data =
true;
819 $this->meta_data_rep_obj_id = $a_rep_obj_id;
820 $this->meta_data_sub_obj_id = $a_sub_obj_id;
821 $this->meta_data_type = $a_type;
822 $this->meta_data_observer_obj = $a_observer_obj;
823 $this->meta_data_observer_func = $a_observer_func;
838 $file_download_link = $ilCtrl->getLinkTarget($this,
"downloadFile");
840 return $file_download_link;
855 $fullscreen_link = $ilCtrl->getLinkTarget($this,
"displayMediaFullscreen",
"",
false,
false);
857 return $fullscreen_link;
870 if ($this->sourcecode_download_script ==
"" && $this->
getOutputMode() !=
"offline")
872 $l = $ilCtrl->getLinkTarget($this,
"");
885 global $ilPluginAdmin;
889 foreach ($pl_names as $pl_name)
892 "COPage",
"pgcp", $pl_name);
893 if ($plugin->isValidParentType($this->getPageObject()->getParentType()))
895 $xml.=
'<ComponentPlugin Name="'.$plugin->getPluginName().
902 $xml =
"<ComponentPlugins>".$xml.
"</ComponentPlugins>";
915 $next_class = $this->ctrl->getNextClass($this);
917 $cmd = $this->ctrl->getCmd();
922 $ilCtrl->setReturn($this,
"edit");
926 case 'ilmdeditorgui':
928 $ilTabs->setTabActive(
"meta_data");
929 include_once
'Services/MetaData/classes/class.ilMDEditorGUI.php';
931 $this->meta_data_sub_obj_id, $this->meta_data_type);
932 if (is_object($this->meta_data_observer_obj))
934 $md_gui->addObserver($this->meta_data_observer_obj,
935 $this->meta_data_observer_func,
"General");
937 $this->ctrl->forwardCommand($md_gui);
940 case "ileditclipboardgui":
944 $clip_gui->setPageBackTitle($this->page_back_title);
946 $ret =& $this->ctrl->forwardCommand($clip_gui);
951 switch(
$_GET[
"notes_mode"])
954 $html = $this->
edit();
955 $ilTabs->setTabActive(
"edit");
960 case 'ilpublicuserprofilegui':
961 require_once
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
963 $ret = $this->ctrl->forwardCommand($profile_gui);
966 case "ilpageeditorgui":
970 $ilCtrl->redirect($this,
"preview");
973 $page_editor->setLocator($this->locator);
974 $page_editor->setHeader($this->
getHeader());
975 $page_editor->setPageBackTitle($this->page_back_title);
976 $page_editor->setIntLinkReturn($this->int_link_return);
978 $ret =& $this->ctrl->forwardCommand($page_editor);
981 case 'ilnewsitemgui':
982 include_once(
"./Services/News/classes/class.ilNewsItemGUI.php");
984 $news_item_gui->setEnableEdit(
true);
985 $news_item_gui->setContextObjId($this->news_obj_id);
986 $news_item_gui->setContextObjType($this->news_obj_type);
987 $news_item_gui->setContextSubObjId($this->obj->getId());
988 $news_item_gui->setContextSubObjType(
"pg");
990 $ret = $ilCtrl->forwardCommand($news_item_gui);
994 $ret = $this->ctrl->forwardCommand($profile_gui);
997 case "ilpropertyformgui":
998 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1000 $this->ctrl->forwardCommand($form);
1003 case "ilinternallinkgui":
1004 $this->lng->loadLanguageModule(
"content");
1005 require_once(
"./Services/Link/classes/class.ilInternalLinkGUI.php");
1009 $link_gui->filterLinkType(
"PageObject_FAQ");
1010 $link_gui->filterLinkType(
"GlossaryItem");
1011 $link_gui->filterLinkType(
"Media_Media");
1012 $link_gui->filterLinkType(
"Media_FAQ");
1014 $link_gui->setFilterWhiteList(
true);
1015 $link_gui->setMode(
"asynch");
1016 $ilCtrl->forwardCommand($link_gui);
1019 case "ilquestioneditgui":
1021 include_once(
"./Modules/TestQuestionPool/classes/class.ilQuestionEditGUI.php");
1025 $edit_gui->setSelfAssessmentEditingMode(
true);
1026 $ret = $ilCtrl->forwardCommand($edit_gui);
1027 $this->tpl->setContent(
$ret);
1030 case 'ilassquestionfeedbackeditinggui':
1038 $lng->loadLanguageModule(
"assessment");
1041 require_once
'Modules/TestQuestionPool/classes/class.assQuestionGUI.php';
1042 require_once
'Modules/TestQuestionPool/classes/class.assQuestion.php';
1044 $questionGUI->object->setObjId(0);
1045 $questionGUI->object->setSelfAssessmentEditingMode(
true);
1046 $questionGUI->object->setPreventRteUsage($this->
getPageConfig()->getPreventRteUsage());
1049 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
1051 $ilCtrl->forwardCommand($gui);
1065 $cmd = $this->ctrl->getCmd(
"preview");
1082 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
1084 $ilTabs->clearTargets();
1086 $ilTabs->setBackTarget($lng->txt(
"back"),
1087 $ilCtrl->getLinkTarget($this,
"edit"));
1089 $ilCtrl->setParameterByClass(
"ilquestioneditgui",
"q_id",
$_GET[
"q_id"]);
1090 $ilTabs->addTab(
"question", $lng->txt(
"question"),
1091 $ilCtrl->getLinkTargetByClass(
"ilquestioneditgui",
"editQuestion"));
1093 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
1094 $ilCtrl->setParameterByClass(
"ilAssQuestionFeedbackEditingGUI",
"q_id",
$_GET[
"q_id"]);
1095 $ilTabs->addTab(
"feedback", $lng->txt(
"feedback"),
1098 $ilTabs->activateTab($a_active);
1116 $this->ctrl->redirect($this,
"edit");
1125 $this->ctrl->redirect($this,
"edit");
1136 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1142 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
1145 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/COPage/js/ilCOPagePres.js");
1148 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
1151 include_once(
"./Services/MediaObjects/classes/class.ilPlayerUtil.php");
1160 $tpl =
new ilTemplate(
"tpl.page_edit_wysiwyg.html",
true,
true,
"Services/COPage");
1164 $tpl->setVariable(
"CLASS_PAGE_TD",
"ilc_Page");
1169 $tpl->setCurrentBlock(
"change_comment");
1170 $tpl->setVariable(
"TXT_ADD_COMMENT", $this->lng->txt(
"cont_add_change_comment"));
1171 $tpl->parseCurrentBlock();
1174 $tpl->setVariable(
"WYSIWYG_ACTION",
1175 $ilCtrl->getFormActionByClass(
"ilpageeditorgui",
"",
"",
true));
1178 $sel_media_mode = ($ilUser->getPref(
"ilPageEditor_MediaMode") ==
"disable")
1181 $sel_html_mode = ($ilUser->getPref(
"ilPageEditor_HTMLMode") ==
"disable")
1184 $sel_js_mode =
"disable";
1194 $tpl->setVariable(
"TXT_CONFIRM_DELETE", $lng->txt(
"cont_confirm_delete"));
1199 $ilTabs->addNonTabbedLink(
"pres_view", $this->lng->txt(
"cont_presentation_view"),
1204 $this->
addActionsMenu($tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode);
1207 if ($sel_js_mode ==
"enable")
1210 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1214 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/COPage/js/ilcopagecallback.js");
1215 $GLOBALS[
"tpl"]->addJavascript(
"Services/COPage/js/page_editing.js");
1217 include_once
'./Services/Style/classes/class.ilObjStyleSheet.php';
1218 $GLOBALS[
"tpl"]->addOnloadCode(
"var preloader = new Image(); 1219 preloader.src = './templates/default/images/loader.svg'; 1220 ilCOPage.setContentCss('".
1223 ", ./Services/COPage/css/tiny_extra.css".
1227 $GLOBALS[
"tpl"]->addJavascript(
"Services/COPage/tiny/4_1_5/tinymce.js");
1228 $tpl->touchBlock(
"init_dragging");
1231 $tpl->setVariable(
"IL_TINY_MENU",
1234 $cfg->getEnableInternalLinks(),
1235 $cfg->getEnableWikiLinks(),
1236 $cfg->getEnableKeywords(),
1238 $cfg->getEnableAnchors()
1242 include_once(
"./Services/Link/classes/class.ilInternalLinkGUI.php");
1243 $tpl->setCurrentBlock(
"int_link_prep");
1245 $ilCtrl->getLinkTargetByClass(array(
"ilpageeditorgui",
"ilinternallinkgui"),
1246 "",
false,
true,
false)));
1247 $tpl->parseCurrentBlock();
1249 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1251 $GLOBALS[
"tpl"]->addJavaScript(
"./Services/UIComponent/Explorer/js/ilExplorer.js");
1260 $tpl->setCurrentBlock(
"multi_actions");
1261 if ($sel_js_mode ==
"enable")
1263 $tpl->setVariable(
"ONCLICK_DE_ACTIVATE_SELECTED",
'onclick="return ilEditMultiAction(\'activateSelected\');"');
1264 $tpl->setVariable(
"ONCLICK_DELETE_SELECTED",
'onclick="return ilEditMultiAction(\'deleteSelected\');"');
1265 $tpl->setVariable(
"ONCLICK_ASSIGN_CHARACTERISTIC",
'onclick="return ilEditMultiAction(\'assignCharacteristicForm\');"');
1266 $tpl->setVariable(
"ONCLICK_COPY_SELECTED",
'onclick="return ilEditMultiAction(\'copySelected\');"');
1267 $tpl->setVariable(
"ONCLICK_CUT_SELECTED",
'onclick="return ilEditMultiAction(\'cutSelected\');"');
1268 $tpl->setVariable(
"TXT_SELECT_ALL", $this->lng->txt(
"select_all"));
1269 $tpl->setVariable(
"ONCLICK_SELECT_ALL",
'onclick="return ilEditMultiAction(\'selectAll\');"');
1271 $tpl->setVariable(
"TXT_DE_ACTIVATE_SELECTED", $this->lng->txt(
"cont_ed_enable"));
1272 $tpl->setVariable(
"TXT_ASSIGN_CHARACTERISTIC", $this->lng->txt(
"cont_assign_characteristic"));
1273 $tpl->setVariable(
"TXT_DELETE_SELECTED", $this->lng->txt(
"cont_delete_selected"));
1274 $tpl->setVariable(
"TXT_COPY_SELECTED", $this->lng->txt(
"copy"));
1275 $tpl->setVariable(
"TXT_CUT_SELECTED", $this->lng->txt(
"cut"));
1277 $tpl->parseCurrentBlock();
1284 $tpl =
new ilTemplate(
"tpl.page.html",
true,
true,
"Services/COPage");
1287 $tpl->touchBlock(
"page_focus");
1290 include_once(
"./Services/User/classes/class.ilUserUtil.php");
1295 $tpl->touchBlock(
"page_container_1");
1296 $tpl->touchBlock(
"page_container_2");
1297 $tpl->touchBlock(
"page_container_3");
1309 $ilCtrl->setParameter($this,
"history_mode",
"1");
1312 if (is_array($hist_info[
"previous"]))
1314 $tpl->setCurrentBlock(
"previous_rev");
1315 $tpl->setVariable(
"TXT_PREV_REV", $lng->txt(
"cont_previous_rev"));
1316 $ilCtrl->setParameter($this,
"old_nr", $hist_info[
"previous"][
"nr"]);
1317 $tpl->setVariable(
"HREF_PREV",
1318 $ilCtrl->getLinkTarget($this,
"preview"));
1319 $tpl->parseCurrentBlock();
1323 $tpl->setCurrentBlock(
"previous_rev_disabled");
1324 $tpl->setVariable(
"TXT_PREV_REV", $lng->txt(
"cont_previous_rev"));
1325 $tpl->parseCurrentBlock();
1331 $tpl->setCurrentBlock(
"next_rev");
1332 $tpl->setVariable(
"TXT_NEXT_REV", $lng->txt(
"cont_next_rev"));
1333 $ilCtrl->setParameter($this,
"old_nr", $hist_info[
"next"][
"nr"]);
1334 $tpl->setVariable(
"HREF_NEXT",
1335 $ilCtrl->getLinkTarget($this,
"preview"));
1336 $tpl->parseCurrentBlock();
1339 $tpl->setCurrentBlock(
"latest_rev");
1340 $tpl->setVariable(
"TXT_LATEST_REV", $lng->txt(
"cont_latest_rev"));
1341 $ilCtrl->setParameter($this,
"old_nr",
"");
1342 $tpl->setVariable(
"HREF_LATEST",
1343 $ilCtrl->getLinkTarget($this,
"preview"));
1344 $tpl->parseCurrentBlock();
1347 $ilCtrl->setParameter($this,
"history_mode",
"");
1350 if ($c_old_nr > 0 && $ilUser->getId() != ANONYMOUS_USER_ID)
1352 $tpl->setCurrentBlock(
"rollback");
1353 $ilCtrl->setParameter($this,
"old_nr", $c_old_nr);
1354 $tpl->setVariable(
"HREF_ROLLBACK",
1355 $ilCtrl->getLinkTarget($this,
"rollbackConfirmation"));
1356 $ilCtrl->setParameter($this,
"old_nr",
"");
1357 $tpl->setVariable(
"TXT_ROLLBACK",
1358 $lng->txt(
"cont_rollback"));
1359 $tpl->parseCurrentBlock();
1363 $tpl->setCurrentBlock(
"hist_nav");
1364 $tpl->setVariable(
"TXT_REVISION", $lng->txt(
"cont_revision"));
1365 $tpl->setVariable(
"VAL_REVISION_DATE",
1367 $tpl->setVariable(
"VAL_REV_USER",
1369 $tpl->parseCurrentBlock();
1377 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormActionByClass(
"ilpageeditorgui"));
1384 $this->obj->getId(), $this->obj->getLanguage());
1385 $mob_links = array();
1386 foreach($links as $link)
1388 if ($link[
"type"] ==
"mob")
1398 if (count($mob_links) > 0)
1400 $tpl->setCurrentBlock(
"med_link");
1401 $tpl->setVariable(
"TXT_LINKED_MOBS", $this->lng->txt(
"cont_linked_mobs"));
1402 $tpl->setVariable(
"SEL_MED_LINKS",
1404 $tpl->setVariable(
"TXT_EDIT_MEDIA", $this->lng->txt(
"cont_edit_mob"));
1405 $tpl->setVariable(
"TXT_COPY_TO_CLIPBOARD", $this->lng->txt(
"cont_copy_to_clipboard"));
1407 $tpl->parseCurrentBlock();
1411 include_once(
"./Services/COPage/classes/class.ilPCContentInclude.php");
1414 if (count($snippets) > 0)
1416 foreach ($snippets as $s)
1418 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
1421 $tpl->setCurrentBlock(
"med_link");
1422 $tpl->setVariable(
"TXT_CONTENT_SNIPPETS_USED", $this->lng->txt(
"cont_snippets_used"));
1423 $tpl->setVariable(
"SEL_SNIPPETS",
1425 $tpl->setVariable(
"TXT_SHOW_INFO", $this->lng->txt(
"cont_show_info"));
1426 $tpl->parseCurrentBlock();
1434 $tpl->setCurrentBlock(
"activation_txt");
1435 $tpl->setVariable(
"TXT_SCHEDULED_ACTIVATION", $lng->txt(
"cont_scheduled_activation"));
1436 $tpl->setVariable(
"SA_FROM",
1440 $tpl->setVariable(
"SA_TO",
1444 $tpl->parseCurrentBlock();
1448 if (
$_GET[
"reloadTree"] ==
"y")
1450 $tpl->setCurrentBlock(
"reload_tree");
1451 if ($this->obj->getParentType() ==
"dbk")
1453 $tpl->setVariable(
"LINK_TREE",
1454 $this->ctrl->getLinkTargetByClass(
"ilobjdlbookgui",
"explorer",
"",
false,
false));
1458 $tpl->setVariable(
"LINK_TREE",
1459 $this->ctrl->getLinkTargetByClass(
"ilobjlearningmodulegui",
"explorer",
"",
false,
false));
1461 $tpl->parseCurrentBlock();
1465 $builded = $this->obj->buildDom();
1472 if (!$this->obj->checkPCIds())
1474 $this->obj->insertPCIds();
1475 $this->obj->update(
true,
true);
1478 $this->obj->addFileSizes();
1479 $this->obj->addHierIDs();
1481 $hids = $this->obj->getHierIds();
1482 $row1_ids = $this->obj->getFirstRowIds();
1483 $col1_ids = $this->obj->getFirstColumnIds();
1484 $litem_ids = $this->obj->getListItemIds();
1485 $fitem_ids = $this->obj->getFileItemIds();
1488 $hids = $this->obj->getHierIds();
1489 foreach($hids as $hid)
1491 $tpl->setCurrentBlock(
"add_dhtml");
1492 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_".$hid);
1493 $tpl->parseCurrentBlock();
1497 foreach($col1_ids as $hid)
1499 $tpl->setCurrentBlock(
"add_dhtml");
1500 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_r".$hid);
1501 $tpl->parseCurrentBlock();
1505 foreach($row1_ids as $hid)
1507 $tpl->setCurrentBlock(
"add_dhtml");
1508 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_c".$hid);
1509 $tpl->parseCurrentBlock();
1513 foreach($litem_ids as $hid)
1515 $tpl->setCurrentBlock(
"add_dhtml");
1516 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_i".$hid);
1517 $tpl->parseCurrentBlock();
1521 foreach($fitem_ids as $hid)
1523 $tpl->setCurrentBlock(
"add_dhtml");
1524 $tpl->setVariable(
"CONTEXTMENU",
"contextmenu_i".$hid);
1525 $tpl->parseCurrentBlock();
1530 $this->obj->addFileSizes();
1537 if (!$this->link_xml_set)
1551 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
1553 $template_xml = $style->getTemplateXML();
1554 $disable_auto_margins =
"n";
1555 if ($style->lookupStyleSetting(
"disable_auto_margins"))
1557 $disable_auto_margins =
"y";
1564 $content =
"<dummy><PageObject><PageContent><Paragraph>".
1565 $this->obj->getFirstParagraphText().$link_xml.
1566 "</Paragraph></PageContent></PageObject></dummy>";
1570 $content = $this->obj->getXMLFromDom(
false,
true,
true,
1571 $link_xml.$this->getQuestionXML().$template_xml.$this->getComponentPluginsXML());
1575 if($builded !==
true)
1605 $enlarge_path =
"images/enlarge.svg";
1609 ?
"ilc_PrintPageTitle" 1614 $enable_split_new = ($this->obj->getParentType() ==
"lm" ||
1615 $this->obj->getParentType() ==
"dbk")
1621 if (($this->obj->getParentType() ==
"lm" ||
1622 $this->obj->getParentType() ==
"dbk") &&
1624 $this->obj->getId()))
1626 $enable_split_next =
"y";
1630 $enable_split_next =
"n";
1640 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
1652 ? $ilUser->getPref(
"ilPageEditor_MediaMode")
1655 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
1659 include_once(
"./Services/MediaObjects/classes/class.ilPlayerUtil.php");
1667 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
1670 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
1671 $params = array (
'mode' => $this->
getOutputMode(),
'pg_title' => htmlentities($pg_title,ENT_QUOTES,
"UTF-8"),
1672 'enable_placeholder' => $cfg->getEnablePCType(
"PlaceHolder") ?
"y" :
"n",
1673 'pg_id' => $this->obj->getId(),
'pg_title_class' => $pg_title_class,
1674 'webspace_path' => $wb_path,
'enlarge_path' => $enlarge_path,
1675 'img_col' => $col_path,
1676 'img_row' => $row_path,
1677 'img_item' => $item_path,
1678 'enable_split_new' => $enable_split_new,
1679 'enable_split_next' => $enable_split_next,
1681 'file_download_link' => $file_download_link,
1682 'fullscreen_link' => $fullscreen_link,
1683 'img_path' => $img_path,
1684 'parent_id' => $this->obj->getParentId(),
1686 'encoded_download_script' => urlencode($this->sourcecode_download_script),
1689 'pagebreak' => $this->lng->txt(
'dgl_pagebreak'),
1690 'page' => $this->lng->txt(
'page'),
1691 'citate_page' => $this->lng->txt(
'citate_page'),
1692 'citate_from' => $this->lng->txt(
'citate_from'),
1693 'citate_to' => $this->lng->txt(
'citate_to'),
1694 'citate' => $this->lng->txt(
'citate'),
1695 'enable_rep_objects' => $cfg->getEnablePCType(
"Resources") ?
"y" :
"n",
1696 'enable_login_page' => $cfg->getEnablePCType(
"LoginPageElement") ?
"y" :
"n",
1698 'enable_tabs' => $cfg->getEnablePCType(
"Tabs") ?
"y" :
"n",
1699 'enable_sa_qst' => $cfg->getEnableSelfAssessment() ?
"y" :
"n",
1700 'enable_file_list' => $cfg->getEnablePCType(
"FileList") ?
"y" :
"n",
1701 'enable_content_includes' => $cfg->getEnablePCType(
"ContentInclude") ?
"y" :
"n",
1702 'enable_content_templates' => (count($this->
getPageObject()->getContentTemplates()) > 0) ?
"y" :
"n",
1703 'paste' => $paste ?
"y" :
"n",
1704 'media_mode' => $media_mode,
1705 'javascript' => $sel_js_mode,
1706 'paragraph_plugins' => $paragraph_plugin_string,
1707 'disable_auto_margins' => $disable_auto_margins,
1708 'page_toc' => $cfg->getEnablePageToc() ?
"y" :
"n",
1709 'enable_profile' => $cfg->getEnablePCType(
"Profile") ?
"y" :
"n",
1710 'enable_verification' => $cfg->getEnablePCType(
"Verification") ?
"y" :
"n",
1711 'enable_blog' => $cfg->getEnablePCType(
"Blog") ?
"y" :
"n",
1712 'enable_skills' => $cfg->getEnablePCType(
"Skills") ?
"y" :
"n",
1713 'enable_qover' => $cfg->getEnablePCType(
"QuestionOverview") ?
"y" :
"n",
1714 'enable_consultation_hours' => $cfg->getEnablePCType(
"ConsultationHours") ?
"y" :
"n",
1715 'enable_my_courses' => $cfg->getEnablePCType(
"MyCourses") ?
"y" :
"n",
1716 'enable_amd_page_list' => $cfg->getEnablePCType(
"AMDPageList") ?
"y" :
"n",
1718 'flv_video_player' => $flv_video_player
1720 if($this->link_frame !=
"")
1721 $params[
"pg_frame"] = $this->link_frame;
1728 $params[
"incl_elements_date"] = $this->obj->getLastUpdateOfIncludedElements();
1731 $md5 = md5(serialize($params).$link_xml.$template_xml);
1740 $md5 == $this->obj->getRenderMd5() &&
1741 ($this->obj->getLastChange() < $this->obj->getRenderedTime()) &&
1742 $this->obj->getRenderedTime() !=
"" &&
1743 $this->obj->old_nr == 0)
1746 $output = $this->obj->getRenderedContent();
1750 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
1752 $args = array(
'/_xml' => $content,
'/_xsl' => $xsl );
1756 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl", NULL, $args, $params);
1760 && $this->obj->old_nr == 0)
1763 $this->obj->writeRenderedContent($output, $md5);
1775 $ilUser->getPref(
"ilPageEditor_HTMLMode") !=
"disable")
1778 $output = str_replace(
"<",
"<",$output);
1779 $output = str_replace(
">",
">",$output);
1781 $output = str_replace(
"&",
"&", $output);
1806 $output = str_replace(
"\n",
"", $output);
1814 $output =
'<div class="il_editarea_disabled">'.$output.
'</div>';
1818 include_once(
"./Services/COPage/classes/class.ilCOPagePCDef.php");
1820 foreach ($defs as $def)
1823 $pc_class = $def[
"pc_class"];
1827 $output = $pc_obj->modifyPageContentPostXsl($output, $this->
getOutputMode());
1830 $js_files = $pc_obj->getJavascriptFiles($this->
getOutputMode());
1831 foreach ($js_files as $js)
1833 $GLOBALS[
"tpl"]->addJavascript($js);
1838 foreach ($css_files as $css)
1844 $onload_code = $pc_obj->getOnloadCode($this->
getOutputMode());
1845 foreach ($onload_code as $code)
1847 $GLOBALS[
"tpl"]->addOnloadCode($code);
1858 if (
$_GET[
"updated_pc_id_str"] !=
"")
1860 echo
$_GET[
"updated_pc_id_str"];
1863 $tpl->setCurrentBlock(
"edit_page");
1864 $tpl->parseCurrentBlock();
1865 echo $tpl->get(
"edit_page");
1898 while (is_int($start = strpos($output,
"<!--ParStart-->")) &&
1899 is_int($end = strpos($output,
"<!--ParEnd-->", $start)))
1901 $output = substr($output, 0, $start).
1902 str_replace(array(
"{",
"}"), array(
"{",
"}"),
1903 substr($output, $start + 15, $end - ($start + 15))).
1904 substr($output, $end + 13);
1920 return array(
"deactivatePage" => $lng->txt(
"cont_deactivate_page"),
1921 "activatePage" => $lng->txt(
"cont_activate_page"));
1932 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
1936 $list->setListTitle($lng->txt(
"actions"));
1937 $list->setId(
"copage_act");
1945 $list->addItem($captions[
"deactivatePage"],
"",
1946 $ilCtrl->getLinkTarget($this,
"deactivatePage"));
1950 $list->addItem($captions[
"activatePage"],
"",
1951 $ilCtrl->getLinkTarget($this,
"activatePage"));
1954 $a_tpl->setVariable(
"PAGE_ACTIONS", $list->getHTML());
1961 $list->addItem($lng->txt(
"cont_initial_attached_content"),
"",
1962 $ilCtrl->getLinkTarget($this,
"initialOpenedContent"));
1973 $a_tpl->setVariable(
"PAGE_ACTIONS", $list->getHTML());
1976 $lng->loadLanguageModule(
"content");
1978 $list->setListTitle($lng->txt(
"cont_edit_mode"));
1979 $list->setId(
"copage_ed_mode");
1982 if ($sel_media_mode ==
"enable")
1984 $ilCtrl->setParameter($this,
"media_mode",
"disable");
1985 $list->addItem($lng->txt(
"cont_deactivate_media"),
"",
1986 $ilCtrl->getLinkTarget($this,
"setEditMode"));
1990 $ilCtrl->setParameter($this,
"media_mode",
"enable");
1991 $list->addItem($lng->txt(
"cont_activate_media"),
"",
1992 $ilCtrl->getLinkTarget($this,
"setEditMode"));
1994 $ilCtrl->setParameter($this,
"media_mode",
"");
1999 if ($sel_html_mode ==
"enable")
2001 $ilCtrl->setParameter($this,
"html_mode",
"disable");
2002 $list->addItem($lng->txt(
"cont_deactivate_html"),
"",
2003 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2007 $ilCtrl->setParameter($this,
"html_mode",
"enable");
2008 $list->addItem($lng->txt(
"cont_activate_html"),
"",
2009 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2012 $ilCtrl->setParameter($this,
"html_mode",
"");
2015 if ($sel_js_mode ==
"enable")
2017 $ilCtrl->setParameter($this,
"js_mode",
"disable");
2018 $list->addItem($lng->txt(
"cont_deactivate_js"),
"",
2019 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2023 $ilCtrl->setParameter($this,
"js_mode",
"enable");
2024 $list->addItem($lng->txt(
"cont_activate_js"),
"",
2025 $ilCtrl->getLinkTarget($this,
"setEditMode"));
2027 $ilCtrl->setParameter($this,
"js_mode",
"");
2029 $a_tpl->setVariable(
"EDIT_MODE", $list->getHTML());
2047 if ($cfg->getMultiLangSupport())
2053 include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
2056 if (!$ot->getContentActivated())
2068 $lng->loadLanguageModule(
"meta");
2072 $l = $ot->getMasterLanguage();
2073 $a_list->addItem($lng->txt(
"cont_edit_language_version").
": ".
2074 $lng->txt(
"meta_l_".$l),
"",
2075 $ilCtrl->getLinkTarget($this,
"editMasterLanguage"));
2078 foreach ($ot->getLanguages() as $al =>
$lang)
2081 $al != $ot->getMasterLanguage())
2083 $ilCtrl->setParameter($this,
"totransl", $al);
2084 $a_list->addItem($lng->txt(
"cont_edit_language_version").
": ".
2085 $lng->txt(
"meta_l_".$al),
"",
2086 $ilCtrl->getLinkTarget($this,
"switchToLanguage"));
2087 $ilCtrl->setParameter($this,
"totransl",
$_GET[
"totransl"]);
2097 include_once(
"./Services/COPage/classes/class.ilPageMultiLangGUI.php");
2100 $a_tpl->setVariable(
"MULTI_LANG_INFO", $ml_gui->getMultiLangInfo($this->getPageObject()->getLanguage()));
2117 if (
$_GET[
"media_mode"] !=
"")
2119 if (
$_GET[
"media_mode"] ==
"disable")
2121 $ilUser->writePref(
"ilPageEditor_MediaMode",
"disable");
2125 $ilUser->writePref(
"ilPageEditor_MediaMode",
"");
2128 if (
$_GET[
"html_mode"] !=
"")
2130 if (
$_GET[
"html_mode"] ==
"disable")
2132 $ilUser->writePref(
"ilPageEditor_HTMLMode",
"disable");
2136 $ilUser->writePref(
"ilPageEditor_HTMLMode",
"");
2139 if (
$_GET[
"js_mode"] !=
"")
2141 if (
$_GET[
"js_mode"] ==
"disable")
2143 $ilUser->writePref(
"ilPageEditor_JavaScript",
"disable");
2147 $ilUser->writePref(
"ilPageEditor_JavaScript",
"");
2151 $ilCtrl->redirect($this,
"edit");
2159 $a_int_links =
false, $a_wiki_links =
false, $a_keywords =
false,
2160 $a_style_id = 0, $a_paragraph_styles =
true, $a_save_return =
true,
2161 $a_anchors =
false, $a_save_new =
true)
2167 include_once(
"./Services/COPage/classes/class.ilPageEditorSettings.php");
2169 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
2171 $btpl =
new ilTemplate(
"tpl.tiny_menu.html",
true,
true,
"Services/COPage");
2176 $btpl->touchBlock(
"debug_ghost");
2180 $btpl->touchBlock(
"blist_button");
2182 $lng->txt(
"cont_blist"),
2186 $btpl->touchBlock(
"nlist_button");
2188 $lng->txt(
"cont_nlist"),
2192 $btpl->touchBlock(
"list_indent");
2194 $lng->txt(
"cont_list_indent"),
2198 $btpl->touchBlock(
"list_outdent");
2200 $lng->txt(
"cont_list_outdent"),
2205 $btpl->touchBlock(
"bb_ilink_button");
2213 $btpl->touchBlock(
"rformat_button");
2217 if ($a_paragraph_styles)
2220 $btpl->setCurrentBlock(
"new_par");
2221 $btpl->setVariable(
"IMG_NEWPAR",
"+");
2222 $btpl->parseCurrentBlock();
2226 $btpl->setCurrentBlock(
"par_edit");
2227 $btpl->setVariable(
"TXT_PAR_FORMAT", $lng->txt(
"cont_par_format"));
2228 include_once(
"./Services/COPage/classes/class.ilPCParagraphGUI.php");
2233 $lng->txt(
"cont_paragraph_styles"),
"iltinymenu_bd");
2235 $btpl->parseCurrentBlock();
2240 $btpl->setCurrentBlock(
"bb_kw_button");
2241 $btpl->setVariable(
"CC_KW",
"kw");
2242 $btpl->parseCurrentBlock();
2250 $btpl->setCurrentBlock(
"bb_wikilink_button2");
2251 $btpl->setVariable(
"TXT_WIKI_BUTTON2", $lng->txt(
"obj_wiki"));
2252 $btpl->setVariable(
"WIKI_BUTTON2_URL", $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
""));
2253 $btpl->parseCurrentBlock();
2257 $btpl->setCurrentBlock(
"bb_wikilink_button");
2258 $btpl->setVariable(
"TXT_WLN2", $lng->txt(
"obj_wiki"));
2259 $btpl->parseCurrentBlock();
2266 include_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
2270 if (in_array($c, array(
"com",
"quot",
"acc",
"code")))
2275 $a_par_type,
"active_".$c,
true))
2278 if ($aset->get(
"use_physical"))
2280 $cc_code = str_replace(array(
"str",
"emp",
"imp"), array(
"B",
"I",
"U"), $cc_code);
2283 if ($c !=
"tex" ||
$mathJaxSetting->get(
"enable") || defined(
"URL_TO_LATEX"))
2285 $btpl->setCurrentBlock(
"bb_".$c.
"_button");
2286 $btpl->setVariable(
"CC_".strtoupper($c), $cc_code);
2287 $btpl->parseCurrentBlock();
2289 $lng->txt(
"cont_cc_".$c),
2305 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2307 $sdd->setPullRight(
false);
2308 $sdd->setListTitle($lng->txt(
"save").
"...");
2312 $btpl->setCurrentBlock(
"save_return");
2313 $btpl->setVariable(
"TXT_SAVE_RETURN", $lng->txt(
"save_return"));
2314 $btpl->parseCurrentBlock();
2315 $sdd->addItem($lng->txt(
"save_return"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSaveReturn(false); return false;");
2320 $btpl->setCurrentBlock(
"save_new");
2321 $btpl->setVariable(
"TXT_SAVE_NEW", $lng->txt(
"save_new"));
2322 $btpl->parseCurrentBlock();
2323 $sdd->addItem($lng->txt(
"save_new"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSaveReturn(true); return false;");
2326 $sdd->addItem($lng->txt(
"save"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdSave(null); return false;");
2327 $sdd->addItem($lng->txt(
"cancel"),
"",
"#",
"",
"",
"",
"",
"",
"ilCOPage.cmdCancel(); return false;");
2331 $btpl->setCurrentBlock(
"bb_anc_button");
2332 $btpl->setVariable(
"CC_ANC",
"anc");
2333 $btpl->parseCurrentBlock();
2338 $btpl->setVariable(
"SAVE_DROPDOWN", $sdd->getHTML());
2347 $btpl->setVariable(
"TXT_SAVE", $lng->txt(
"save"));
2348 $btpl->setVariable(
"TXT_CANCEL", $lng->txt(
"cancel"));
2350 $btpl->setVariable(
"TXT_CHAR_FORMAT", $lng->txt(
"cont_char_format"));
2351 $btpl->setVariable(
"TXT_LISTS", $lng->txt(
"cont_lists"));
2352 $btpl->setVariable(
"TXT_LINKS", $lng->txt(
"cont_links"));
2353 $btpl->setVariable(
"TXT_MORE_FUNCTIONS", $lng->txt(
"cont_more_functions"));
2354 $btpl->setVariable(
"TXT_SAVING", $lng->txt(
"cont_saving"));
2356 include_once(
"./Services/COPage/classes/class.ilPCParagraphGUI.php");
2359 $lng->txt(
"cont_more_character_styles"),
"iltinymenu_bd");
2361 return $btpl->get();
2373 $link_info =
"<IntLinkInfos>";
2374 $targetframe =
"None";
2375 foreach ($int_links as $int_link)
2377 $target = $int_link[
"Target"];
2378 if (substr($target, 0, 4) ==
"il__")
2382 $type = $int_link[
"Type"];
2384 $targetframe = ($int_link[
"TargetFrame"] !=
"")
2385 ? $int_link[
"TargetFrame"]
2389 if ($targetframe !=
"None")
2395 $anc = $anc_add =
"";
2396 if ($int_link[
"Anchor"] !=
"")
2398 $anc = $int_link[
"Anchor"];
2399 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
2406 case "StructureObject":
2408 if ($type ==
"PageObject")
2410 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
2414 $href =
"./goto.php?target=st_".$target_id;
2418 case "GlossaryItem":
2419 if ($targetframe ==
"None")
2421 $targetframe =
"Glossary";
2423 $href =
"./goto.php?target=git_".$target_id;
2427 $ilCtrl->setParameter($this,
"mob_id",
$target_id);
2429 $href = $ilCtrl->getLinkTarget($this,
"displayMedia");
2430 $ilCtrl->setParameter($this,
"mob_id",
"");
2434 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
2438 case "RepositoryItem":
2441 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
2446 $anc_par =
'Anchor="'.$anc.
'"';
2447 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".$anc_par.
" ".
2448 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" />";
2451 $link_info.=
"</IntLinkInfos>";
2460 $this->obj->buildDom();
2462 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
2466 require_once(
"./Modules/File/classes/class.ilObjFile.php");
2467 $file_id = $file[count($file) - 1];
2470 if (!in_array($file_id, $files))
2474 $fileObj =&
new ilObjFile($file_id,
false);
2475 $fileObj->sendFile();
2494 $tpl =
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Modules/LearningModule");
2495 $tpl->setCurrentBlock(
"ilMedia");
2503 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
2505 require_once(
"./Services/COPage/classes/class.ilPageObject.php");
2507 $pg_obj->buildDom();
2509 if (!empty (
$_GET[
"pg_id"]))
2512 $xml.= $pg_obj->getMediaAliasElement(
$_GET[
"mob_id"]);
2526 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
2527 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
2533 $mode =
"fullscreen";
2540 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
2541 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' =>
"",
2542 'ref_id' =>
$_GET[
"ref_id"],
'webspace_path' => $wb_path);
2543 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args, $params);
2549 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
2552 $tpl->setVariable(
"MEDIA_CONTENT", $output);
2555 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
2557 $tpl->fillJavaScriptFiles();
2558 $tpl->fillCssFiles();
2570 $pg_obj->send_paragraph(
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
2581 $start = strpos($a_html,
"{{{{{ContentInclude;");
2584 $end = strpos($a_html,
"}}}}}", $start);
2589 $param = substr($a_html, $start + 20, $end - $start - 20);
2590 $param = explode(
";", $param);
2592 if ($param[0] ==
"mep" && is_numeric($param[1]) && $param[2] <= 0)
2594 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
2610 $html = $page_gui->getRawContent();
2616 $html =
"// ".$lng->txt(
"cont_missing_snippet").
" //";
2619 $h2 = substr($a_html, 0, $start).
2621 substr($a_html, $end + 5);
2625 $start = strpos($a_html,
"{{{{{ContentInclude;", $start + 5);
2629 $end = strpos($a_html,
"}}}}}", $start);
2645 include_once(
"./Services/Utilities/classes/class.ilStr.php");
2649 $page_heads = array();
2650 foreach ($offsets as $os)
2652 $level = (int) substr($a_output, $os + 10, 1);
2653 if (in_array($level, array(1,2,3)))
2655 $anchor = str_replace(
"TocH",
"TocA",
2656 substr($a_output, $os, strpos($a_output,
"<", $os) - $os - 3)
2660 $tag_start = stripos($a_output,
"<h".$level.
" ", $os);
2661 $tag_end = stripos($a_output,
"</h".$level.
">", $tag_start);
2662 $head = substr($a_output, $tag_start, $tag_end - $tag_start);
2665 $text_start = stripos($head,
">") + 1;
2666 $text_end = strripos($head,
"<!--", $text_start);
2667 $text = substr($head, $text_start, $text_end - $text_start);
2668 $page_heads[] = array(
"level" => $level,
"text" => $text,
2669 "anchor" => $anchor);
2673 if (count($page_heads) > 1)
2675 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
2677 $list->setAutoNumbering(
true);
2678 $list->setListClass(
"ilc_page_toc_PageTOCList");
2679 $list->setItemClass(
"ilc_page_toc_PageTOCItem");
2687 foreach ($page_heads as $ind => $h)
2694 if ($h[
"level"] == 2 && $c_par[1] > 0)
2698 if ($h[
"level"] == 3 && $c_par[2] > 0)
2703 $h[
"text"] = str_replace(
"<!--PageTocPH-->",
"", $h[
"text"]);
2707 "<a href='#".$h[
"anchor"].
"' class='ilc_page_toc_PageTOCLink'>".$h[
"text"].
"</a>",
2711 if ($h[
"level"] == 1)
2716 if ($h[
"level"] == 2)
2722 $tpl =
new ilTemplate(
"tpl.page_toc.html",
true,
true,
2724 $tpl->setVariable(
"PAGE_TOC", $list->getHTML());
2725 $tpl->setVariable(
"TXT_PAGE_TOC", $lng->txt(
"cont_page_toc"));
2726 $tpl->setVariable(
"TXT_HIDE", $lng->txt(
"hide"));
2727 $tpl->setVariable(
"TXT_SHOW", $lng->txt(
"show"));
2729 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
2730 $tpl->get(), $a_output);
2731 $numbers = $list->getNumbers();
2733 if (count($numbers) > 0)
2735 include_once(
"./Services/Utilities/classes/class.ilStr.php");
2736 foreach ($numbers as
$n)
2745 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
2765 include_once(
"./Services/COPage/classes/class.ilPCResourcesGUI.php");
2785 $a_output = str_replace(
"{{{{{LV_show_adv}}}}}",
2786 $lng->txt(
"cont_show_adv"), $a_output);
2787 $a_output = str_replace(
"{{{{{LV_hide_adv}}}}}",
2788 $lng->txt(
"cont_hide_adv"), $a_output);
2792 $a_output = str_replace(
"{{{{{LV_show_adv}}}}}",
2794 $a_output = str_replace(
"{{{{{LV_hide_adv}}}}}",
2818 $a_tpl->setCurrentBlock(
"help");
2819 $a_tpl->setVariable(
"TXT_ADD_EL", $lng->txt(
"cont_add_elements"));
2820 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
2823 $a_tpl->setVariable(
"TXT_DRAG", $lng->txt(
"cont_drag_and_drop_elements"));
2824 $a_tpl->setVariable(
"TXT_SEL", $lng->txt(
"cont_double_click_to_delete"));
2825 $a_tpl->parseCurrentBlock();
2857 $ilCtrl->redirect($this,
"preview");
2862 if ($ptype ==
"cont" &&
$_GET[
"ref_id"] > 0)
2866 $ilHelp->setScreenId(
"edit_".$ptype);
2868 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
2870 $ilUser->isAnonymous() &&
2871 !$ilUser->isCaptchaVerified() &&
2872 ilCaptchaUtil::isActiveForWiki()
2875 $form = $this->initCaptchaForm();
2876 if(
$_POST[
'captcha_code'] && $form->checkInput())
2878 $ilUser->setCaptchaVerified(
true);
2882 return $form->getHTML();
2889 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2890 $info = $lng->txt(
"content_no_edit_lock");
2892 $info .=
"</br>" . $lng->txt(
"content_until") .
": " .
2894 $info .=
"</br>" . $lng->txt(
"obj_usr") .
": " .
2896 if (!$ilCtrl->isAsynch())
2903 echo $this->tpl->getMessageHTML($info);
2911 $min = (int) $aset->get(
"block_mode_minutes") ;
2914 include_once(
"./Services/User/classes/class.ilUserUtil.php");
2916 $info = $lng->txt(
"cont_got_lock_until");
2922 include_once(
"./Services/UIComponent/Button/classes/class.ilLinkButton.php");
2924 $but->setCaption(
"cont_finish_editing");
2925 $but->setUrl($ilCtrl->getLinkTarget($this,
"releasePageLock"));
2926 $info = str_replace(
"%2", $but->render(), $info);
2937 $html.=
"<br /><br />".$this->getNotesHTML();
2955 $html = $this->
edit();
2957 $tpl->addOnLoadCode(
"ilCOPage.insertJSAtPlaceholder('".
2967 public function initCaptchaForm()
2975 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
2978 require_once
'Services/Captcha/classes/class.ilCaptchaInputGUI.php';
2981 $form->addItem($ci);
2983 $form->addCommandButton(
'edit', $lng->txt(
'ok'));
2985 $form->setTitle($lng->txt(
'cont_captcha_verification'));
2986 $form->setFormAction($ilCtrl->getFormAction($this));
3013 $this->tpl =
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
3014 $this->tpl->setCurrentBlock(
"ContentStyle");
3015 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET", 0);
3016 $this->tpl->parseCurrentBlock();
3020 $this->tpl->setCurrentBlock(
"ilMedia");
3022 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
3024 if (!empty (
$_GET[
"pg_id"]))
3026 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
3028 $pg_obj->buildDom();
3033 $xml.= $pg_obj->getMediaAliasElement(
$_GET[
"mob_id"]);
3047 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
3048 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
3055 $mode =
"fullscreen";
3056 $params = array (
'mode' => $mode,
'webspace_path' => $wb_path);
3057 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args, $params);
3062 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
3072 if(is_array($a_error))
3074 $error_str =
"<b>Error(s):</b><br>";
3075 foreach ($a_error as $error)
3077 $err_mess = implode($error,
" - ");
3078 if (!is_int(strpos($err_mess,
":0:")))
3080 $error_str .= htmlentities($err_mess).
"<br />";
3083 $this->tpl->setVariable(
"MESSAGE", $error_str);
3099 $tpl->addJavaScript(
"./Services/COPage/js/page_history.js");
3101 include_once(
"./Services/COPage/classes/class.ilPageHistoryTableGUI.php");
3103 $table_gui->setId(
"hist_table");
3110 'sortkey' => 999999,
3112 $table_gui->setData($entries);
3113 return $table_gui->getHTML();
3128 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
3132 $ilCtrl->setParameter($this,
"rollback_nr",
$_GET[
"old_nr"]);
3133 $c_gui->setFormAction($ilCtrl->getFormAction($this,
"rollback"));
3134 $c_gui->setHeaderText($lng->txt(
"cont_rollback_confirmation"));
3135 $c_gui->setCancel($lng->txt(
"cancel"),
"history");
3136 $c_gui->setConfirm($lng->txt(
"confirm"),
"rollback");
3138 $hentry = $this->obj->getHistoryEntry(
$_GET[
"old_nr"]);
3140 $c_gui->addItem(
"id[]",
$_GET[
"old_nr"],
3143 $tpl->setContent($c_gui->getHTML());
3158 $hentry = $this->obj->getHistoryEntry(
$_GET[
"rollback_nr"]);
3160 if ($hentry[
"content"] !=
"")
3162 $this->obj->setXMLContent($hentry[
"content"]);
3163 $this->obj->buildDom(
true);
3164 if ($this->obj->update())
3166 $ilCtrl->redirect($this,
"history");
3169 $ilCtrl->redirect($this,
"history");
3182 $ilHelp->setScreenIdComponent(
"copg");
3206 $ilTabs->addTarget(
"pg", $ilCtrl->getLinkTarget($this,
"preview")
3207 , array(
"",
"preview"));
3211 $ilTabs->addTarget(
"edit", $ilCtrl->getLinkTarget($this,
"edit")
3212 , array(
"",
"edit"));
3219 $ilTabs->addTarget(
"edit", $ilCtrl->getLinkTarget($this,
"edit")
3220 , array(
"",
"edit"));
3223 $ilTabs->addTarget(
"cont_preview", $ilCtrl->getLinkTarget($this,
"preview")
3224 , array(
"",
"preview"));
3230 if ($this->use_meta_data)
3232 $ilTabs->addTarget(
"meta_data",
3233 $this->ctrl->getLinkTargetByClass(
'ilmdeditorgui',
''),
3234 "",
"ilmdeditorgui");
3241 $ilTabs->addTarget(
"history", $this->ctrl->getLinkTarget($this,
"history")
3242 ,
"history", get_class($this));
3243 if (
$_GET[
"history_mode"] ==
"1" || $this->ctrl->getCmd() ==
"compareVersion")
3245 $ilTabs->activateTab(
"history");
3258 $ilTabs->addTarget(
"clipboard", $this->ctrl->getLinkTargetByClass(
"ilEditClipboardGUI",
"view")
3259 ,
"view",
"ilEditClipboardGUI");
3264 $ilTabs->addTarget(
"cont_activation", $this->ctrl->getLinkTarget($this,
"editActivation"),
3265 "editActivation", get_class($this));
3270 $ilTabs->addTarget(
"news",
3271 $this->ctrl->getLinkTargetByClass(
"ilnewsitemgui",
"editNews"),
3272 "",
"ilnewsitemgui");
3276 if (is_array($this->tab_hook))
3278 $func = $this->tab_hook[
"func"];
3279 $this->tab_hook[
"obj"]->$func();
3296 $tpl =
new ilTemplate(
"tpl.page_compare.html",
true,
true,
"Services/COPage");
3297 $compare = $this->obj->compareVersion((
int)
$_POST[
"left"], (
int) $_POST[
"right"]);
3300 $lpage = $compare[
"l_page"];
3302 $cfg->setPreventHTMLUnmasking(
true);
3311 $lhtml = str_replace(
"<br />",
"<br />", $lhtml);
3312 $tpl->setVariable(
"LEFT", $lhtml);
3315 $rpage = $compare[
"r_page"];
3323 $rhtml = str_replace(
"<br />",
"<br />", $rhtml);
3324 $tpl->setVariable(
"RIGHT", $rhtml);
3326 $tpl->setVariable(
"TXT_NEW", $lng->txt(
"cont_pc_new"));
3327 $tpl->setVariable(
"TXT_MODIFIED", $lng->txt(
"cont_pc_modified"));
3328 $tpl->setVariable(
"TXT_DELETED", $lng->txt(
"cont_pc_deleted"));
3338 $a_html = str_replace(
"[ilDiffInsStart]",
'<span class="ilDiffIns">', $a_html);
3339 $a_html = str_replace(
"[ilDiffDelStart]",
'<span class="ilDiffDel">', $a_html);
3340 $a_html = str_replace(
"[ilDiffInsEnd]",
'</span>', $a_html);
3341 $a_html = str_replace(
"[ilDiffDelEnd]",
'</span>', $a_html);
3353 $atpl =
new ilTemplate(
"tpl.page_activation.php",
true,
true,
"Services/COPage");
3356 $atpl->setVariable(
"FORM", $this->form->getHTML());
3357 $atpl->setCurrentBlock(
"updater");
3358 $atpl->setVariable(
"UPDATER_FRAME", $this->exp_frame);
3359 $atpl->setVariable(
"EXP_ID_UPDATER", $this->exp_id);
3360 $atpl->setVariable(
"HREF_UPDATER", $this->exp_target_script);
3361 $atpl->parseCurrentBlock();
3362 $tpl->setContent($atpl->get());
3372 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
3374 $this->form->setFormAction($ilCtrl->getFormAction($this));
3375 $this->form->setTitle($lng->txt(
"cont_page_activation"));
3379 $rad_op1 =
new ilRadioOption($lng->txt(
"cont_activated"),
"activated");
3381 $rad->addOption($rad_op1);
3382 $rad_op2 =
new ilRadioOption($lng->txt(
"cont_deactivated"),
"deactivated");
3383 $rad->addOption($rad_op2);
3384 $rad_op3 =
new ilRadioOption($lng->txt(
"cont_scheduled_activation"),
"scheduled");
3387 $dt_prop->setShowTime(
true);
3391 $rad_op3->addSubItem($dt_prop2);
3394 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_show_activation_info"),
"show_activation_info");
3395 $cb->
setInfo($this->lng->txt(
"cont_show_activation_info_info"));
3396 $rad_op3->addSubItem($cb);
3399 $rad->addOption($rad_op3);
3401 $this->form->addCommandButton(
"saveActivation", $lng->txt(
"save"));
3403 $this->form->addItem($rad);
3412 $values[
"activation"] =
"deactivated";
3415 $values[
"activation"] =
"activated";
3418 $dt_prop = $this->form->getItemByPostVar(
"start");
3421 $values[
"activation"] =
"scheduled";
3425 $dt_prop = $this->form->getItemByPostVar(
"end");
3428 $values[
"activation"] =
"scheduled";
3433 $values[
"show_activation_info"] = $this->
getPageObject()->getShowActivationInfo();
3435 $this->form->setValuesByArray($values);
3447 if ($this->form->checkInput())
3453 if (
$_POST[
"activation"] ==
"deactivated")
3457 if (
$_POST[
"activation"] ==
"scheduled")
3461 $this->form->getItemByPostVar(
"start")->getDate()->get(
IL_CAL_DATETIME));
3463 $this->form->getItemByPostVar(
"end")->getDate()->get(
IL_CAL_DATETIME));
3467 $ilCtrl->redirect($this,
"editActivation");
3469 $this->form->getValuesByPost();
3470 $tpl->setContent($this->form->getHTML());
3482 function getNotesHTML($a_content_object = null, $a_enable_private_notes =
true, $a_enable_public_notes =
false, $a_enable_notes_deletion =
false, $a_callback = null)
3486 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
3489 if(!$a_content_object)
3491 $notes_gui =
new ilNoteGUI($this->notes_parent_id,
3492 (
int)$this->obj->getId(),
"pg");
3494 $a_enable_private_notes =
true;
3495 $a_enable_public_notes =
true;
3496 $a_enable_notes_deletion =
false;
3501 $notes_gui =
new ilNoteGUI($a_content_object->getParentId(),
3502 $a_content_object->getId(), $a_content_object->getParentType());
3505 if($a_enable_private_notes)
3509 if ($a_enable_public_notes)
3511 $notes_gui->enablePublicNotes();
3512 if ((
bool)$a_enable_notes_deletion)
3514 $notes_gui->enablePublicNotesDeletion(
true);
3520 $notes_gui->addObserver($a_callback);
3523 $next_class = $this->ctrl->getNextClass($this);
3524 if ($next_class ==
"ilnotegui")
3526 $html = $this->ctrl->forwardCommand($notes_gui);
3530 $html = $notes_gui->getNotesHTML();
3548 include_once(
"./Services/COPage/classes/class.ilPageQuestionProcessor.php");
3572 $ilTabs->activateTab(
"edit");
3575 $this->tpl->setContent($form->getHTML());
3588 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
3592 include_once
'Services/Form/classes/class.ilLinkInputGUI.php';
3593 $ac =
new ilLinkInputGUI($this->lng->txt(
'cont_resource'),
'opened_content');
3595 $ac->setInternalLinkDefault(
"Media_Media", 0);
3596 $ac->setInternalLinkFilterTypes(array(
"PageObject_FAQ",
"GlossaryItem",
"Media_Media",
"Media_FAQ"));
3597 $val = $this->obj->getInitialOpenedContent();
3598 if ($val[
"id"] !=
"" && $val[
"type"] !=
"")
3600 $ac->setValue($val[
"type"].
"|".$val[
"id"].
"|".$val[
"target"]);
3603 $form->addItem($ac);
3605 $form->addCommandButton(
"saveInitialOpenedContent", $this->lng->txt(
"save"));
3606 $form->addCommandButton(
"edit", $this->lng->txt(
"cancel"));
3607 $form->setTitle($this->lng->txt(
"cont_initial_attached_content"));
3608 $form->setFormAction($ilCtrl->getFormAction($this));
3623 $this->obj->saveInitialOpenedContent(
3630 $ilCtrl->redirect($this,
"edit");
3652 $ilCtrl->setParameter($this,
"transl",
$_GET[
"totransl"]);
3653 $ilCtrl->redirect($this,
"edit");
3664 $ilCtrl->setParameter($this,
"totransl", $l);
3665 $lng->loadLanguageModule(
"meta");
3667 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
3669 $cgui->setFormAction($ilCtrl->getFormAction($this));
3670 $cgui->setHeaderText($lng->txt(
"cont_page_translation_does_not_exist").
": ".
3671 $lng->txt(
"meta_l_".$l));
3672 $cgui->setCancel($lng->txt(
"cancel"),
"editMasterLanguage");
3673 $cgui->setConfirm($lng->txt(
"confirm"),
"createPageTranslation");
3674 $tpl->setContent($cgui->getHTML());
3684 $ilCtrl->setParameter($this,
"transl",
"");
3685 $ilCtrl->redirect($this,
"edit");
3697 $ilCtrl->setParameter($this,
"transl", $l);
3698 $ilCtrl->redirect($this,
"edit");
3710 $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.
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)
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.
activateMetaDataEditor($a_rep_obj_id, $a_sub_obj_id, $a_type, $a_observer_obj=NULL, $a_observer_func="")
Activate meda data editor.
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.
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)
Default behaviour is:
_getQuestionType($question_id)
Returns the question type of a question with a given id.
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.
replaceCurlyBrackets($output)
Replace curly brackets.
setPrependingHtml($a_prependinghtml)
Set Prepending HTML.
static addCss()
Add required css.
setEnabledPageFocus($a_enabledpagefocus)
Set Enable page focus.
static _exists($a_parent_type, $a_id, $a_lang="")
Checks whether page exists.
addSubItem($a_item)
Add Subitem.
setOfflineDirectory($offdir)
set offline directory to offdir
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
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 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 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)
Get Tiny Menu.
static initjQuery($a_tpl=null)
Init jQuery.
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.
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.