4 include_once
'./Services/COPage/classes/class.ilPageObjectGUI.php';
5 include_once
'Services/Payment/classes/class.ilShopBaseGUI.php';
27 $next_class = $this->ctrl->getNextClass($this);
28 $cmd = $this->ctrl->getCmd();
32 case 'ilpageobjectgui':
37 $this->tpl->setContent(
$ret);
57 include_once
'Services/COPage/classes/class.ilPageObject.php';
58 include_once
'Services/COPage/classes/class.ilPageObjectGUI.php';
66 include_once
'Services/Style/classes/class.ilObjStyleSheet.php';
70 $page_gui =
new ilPageObjectGUI(
'shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
71 $page_gui->setIntLinkHelpDefault(
'StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
72 $page_gui->setLinkXML(
'');
73 $page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'downloadFile'));
74 $page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'displayMediaFullscreen'));
75 $page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'download_paragraph'));
76 $page_gui->setPresentationTitle(
'');
77 $page_gui->setTemplateOutput(
false);
78 $page_gui->setHeader(
'');
79 $page_gui->setEnabledRepositoryObjects(
false);
80 $page_gui->setEnabledFileLists(
true);
81 $page_gui->setEnabledPCTabs(
true);
82 $page_gui->setEnabledMaps(
true);
84 return $page_gui->showPage();
91 $ilTabs->clearTargets();
92 $ilTabs->setBackTarget($lng->txt(
'back'), $this->ctrl->getLinkTarget($this),
'_top');
95 include_once
'Services/COPage/classes/class.ilPageObject.php';
96 include_once
'Services/COPage/classes/class.ilPageObjectGUI.php';
98 $lng->loadLanguageModule(
'content');
100 include_once(
'./Services/Style/classes/class.ilObjStyleSheet.php');
107 $new_page_object->setParentId(0);
108 $new_page_object->setId(self::SHOP_PAGE_EDITOR_PAGE_ID);
109 $new_page_object->createFromXML();
112 $this->ctrl->setReturnByClass(
'ilpageobjectgui',
'edit');
114 $page_gui =
new ilPageObjectGUI(
'shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
115 $page_gui->setIntLinkHelpDefault(
'StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
116 $page_gui->setTemplateTargetVar(
'ADM_CONTENT');
117 $page_gui->setLinkXML(
'');
118 $page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'downloadFile'));
119 $page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'displayMediaFullscreen'));
120 $page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'download_paragraph'));
121 $page_gui->setPresentationTitle(
'');
122 $page_gui->setTemplateOutput(
false);
123 $page_gui->setHeader(
'');
124 $page_gui->setEnabledRepositoryObjects(
false);
125 $page_gui->setEnabledFileLists(
true);
126 $page_gui->setEnabledMaps(
true);
127 $page_gui->setEnabledPCTabs(
true);
129 return $this->ctrl->forwardCommand($page_gui);
134 global
$ilUser, $rbacreview, $ilToolbar;
136 if($rbacreview->isAssigned($ilUser->getId(), SYSTEM_ROLE_ID))
138 $ilToolbar->addButton($this->lng->txt(
'edit_page'), $this->ctrl->getLinkTargetByClass(array(
'ilpageobjectgui'),
'edit'));
141 $this->tpl->setVariable(
'ADM_CONTENT', $this->
getPageHTML());
150 $ilTabs->setTabActive(
'shop_info');