4 include_once
'./Services/COPage/classes/class.ilPageObjectGUI.php';
5 include_once
'Services/Payment/classes/class.ilShopBaseGUI.php';
6 include_once
'classes/class.ilTabsGUI.php';
28 $next_class = $this->ctrl->getNextClass($this);
29 $cmd = $this->ctrl->getCmd();
33 case 'ilpageobjectgui':
38 $this->tpl->setContent(
$ret);
58 include_once
'Services/COPage/classes/class.ilPageObject.php';
59 include_once
'Services/COPage/classes/class.ilPageObjectGUI.php';
67 include_once
'Services/Style/classes/class.ilObjStyleSheet.php';
71 $page_gui =
new ilPageObjectGUI(
'shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
72 $page_gui->setIntLinkHelpDefault(
'StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
73 $page_gui->setLinkXML(
'');
74 $page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'downloadFile'));
75 $page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'displayMediaFullscreen'));
76 $page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'download_paragraph'));
77 $page_gui->setPresentationTitle(
'');
78 $page_gui->setTemplateOutput(
false);
79 $page_gui->setHeader(
'');
80 $page_gui->setEnabledRepositoryObjects(
false);
81 $page_gui->setEnabledFileLists(
true);
82 $page_gui->setEnabledPCTabs(
true);
83 $page_gui->setEnabledMaps(
true);
85 return $page_gui->showPage();
92 $ilTabs->clearTargets();
93 $ilTabs->setBackTarget($lng->txt(
'back'), $this->ctrl->getLinkTarget($this),
'_top');
96 include_once
'Services/COPage/classes/class.ilPageObject.php';
97 include_once
'Services/COPage/classes/class.ilPageObjectGUI.php';
99 $lng->loadLanguageModule(
'content');
101 include_once(
'./Services/Style/classes/class.ilObjStyleSheet.php');
108 $new_page_object->setParentId(0);
109 $new_page_object->setId(self::SHOP_PAGE_EDITOR_PAGE_ID);
110 $new_page_object->createFromXML();
113 $this->ctrl->setReturnByClass(
'ilpageobjectgui',
'edit');
115 $page_gui =
new ilPageObjectGUI(
'shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
116 $page_gui->setIntLinkHelpDefault(
'StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
117 $page_gui->setTemplateTargetVar(
'ADM_CONTENT');
118 $page_gui->setLinkXML(
'');
119 $page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'downloadFile'));
120 $page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'displayMediaFullscreen'));
121 $page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'download_paragraph'));
122 $page_gui->setPresentationTitle(
'');
123 $page_gui->setTemplateOutput(
false);
124 $page_gui->setHeader(
'');
125 $page_gui->setEnabledRepositoryObjects(
false);
126 $page_gui->setEnabledFileLists(
true);
127 $page_gui->setEnabledMaps(
true);
128 $page_gui->setEnabledPCTabs(
true);
130 return $this->ctrl->forwardCommand($page_gui);
135 global $ilUser, $rbacreview, $ilToolbar;
137 if($rbacreview->isAssigned($ilUser->getId(), SYSTEM_ROLE_ID))
139 $ilToolbar->addButton($this->lng->txt(
'edit_page'), $this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'edit'));
142 $this->tpl->setVariable(
'ADM_CONTENT', $this->
getPageHTML());
151 $ilTabs->setTabActive(
'terms_conditions');