19declare(strict_types=1);
39 protected \ILIAS\Glossary\InternalService
$service;
50 $this->glossary = $glo;
51 $this->export_dir = $exp_dir;
53 $this->target_dir = $exp_dir .
"/" .
$sub_dir;
55 $this->service =
$DIC->glossary()
57 $this->global_screen =
$DIC->globalScreen();
59 $this->collector =
$DIC->export()->domain()->html()->collector($glo->
getId());
60 $this->collector->init();
61 $this->export_util =
new Util(
"",
"", $this->collector);
62 $this->co_page_html_export = new \ilCOPageHTMLExport($this->target_dir,
null, 0, $this->collector);
65 $this->glo_gui = new \ilGlossaryPresentationGUI(
"html", $this->target_dir);
66 $this->glo_full_gui = $this->service
69 ->PresentationFullGUI($this->glo_gui, $this->glossary,
true);
70 $this->glo_table_gui = $this->service
73 ->PresentationTableGUI($this->glo_gui, $this->glossary,
true);
76 $this->content_style =
$DIC
84 $this->export_util->exportSystemStyle(
89 $this->export_util->exportCOPageFiles($this->content_style->getEffectiveStyleId(),
"glo");
94 $this->export_util->exportResourceFiles();
96 $this->co_page_html_export->exportPageElements();
103 $tabs =
$DIC->tabs();
105 $tabs->clearTargets();
106 $tabs->clearSubTabs();
107 $tpl = new \ilGlobalPageTemplate(
$DIC->globalScreen(),
$DIC->ui(),
$DIC->http());
109 $this->co_page_html_export->getPreparedMainTemplate($tpl);
120 $this->global_screen->layout()->meta()->reset();
124 $this->global_screen->layout()->meta()->addCss($location_stylesheet);
125 $this->global_screen->layout()->meta()->addCss(
136 "term_id" => $term_id,
137 "ref_id" => $this->glossary->getRefId(),
141 $this->glo_gui->initByRequest(
$params);
143 $this->glo_gui->injectTemplate($tpl);
154 $tpl->setTitle($this->glossary->getTitle());
155 if ($this->glossary->getPresentationMode() ==
"full_def") {
156 $content = $this->glo_full_gui->renderPanelForOffline();
158 $content = $this->glo_table_gui->renderPresentationTableForOffline();
160 $this->collector->addString($content,
"index.html");
162 $terms = $this->glossary->getTermList();
163 foreach ($terms as $term) {
165 $content = $this->glo_gui->listDefinitions($this->glossary->getRefId(), $term[
"id"],
false);
166 $this->collector->addString($content,
"term_" . $term[
"id"] .
".html");
169 $this->co_page_html_export->collectPageElements(
"term:pg", $term[
"id"],
"");
initScreen(int $term_id)
Init page.
ILIAS Style Content Object ObjectFacade $content_style
ILIAS GlobalScreen Services $global_screen
ILIAS Glossary InternalService $service
ilCOPageHTMLExport $co_page_html_export
ilPresentationTableGUI $glo_table_gui
ilGlossaryPresentationGUI $glo_gui
ilPresentationFullGUI $glo_full_gui
exportHTMLGlossaryTerms()
ExportCollector $collector
__construct(\ilObjGlossary $glo, string $exp_dir, string $sub_dir)
Util This class is an interim solution for the HTML export handling with 6.0.
const HTML_EXPORT_RENDERING
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
static resetInitialState()
Reset initial state (for exports)
static getStyleSheetLocation(string $mode="output", string $a_css_name="")
get full style sheet file name (path inclusive) of current user
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params