public function getDocumentsPageHTML($a_editor_page_id) { // page object include_once 'Services/COPage/classes/class.ilPageObject.php'; include_once 'Services/COPage/classes/class.ilPageObjectGUI.php'; // if page does not exist, return nothing if (!ilPageObject::_exists('shop', $a_editor_page_id)) { return ''; } include_once 'Services/Style/classes/class.ilObjStyleSheet.php'; $this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0)); // get page object $page_gui = new ilPageObjectGUI('shop', $a_editor_page_id); $page_gui->setIntLinkHelpDefault('StructureObject', $a_editor_page_id); $page_gui->setLinkXML(''); $page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'downloadFile')); $page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'displayMediaFullscreen')); $page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'download_paragraph')); $page_gui->setPresentationTitle(''); $page_gui->setTemplateOutput(false); $page_gui->setHeader(''); $page_gui->setEnabledRepositoryObjects(false); $page_gui->setEnabledFileLists(true); $page_gui->setEnabledPCTabs(true); $page_gui->setEnabledMaps(true); $page_gui->setEnableEditing(true); return $page_gui->showPage(); }