19 declare(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();
85 $this->export_util->exportCOPageFiles($this->content_style->getEffectiveStyleId(),
"glo");
90 $this->export_util->exportResourceFiles();
92 $this->co_page_html_export->exportPageElements();
101 $tabs->clearTargets();
102 $tabs->clearSubTabs();
103 $tpl = new \ilGlobalPageTemplate($DIC->globalScreen(), $DIC->ui(), $DIC->http());
105 $this->co_page_html_export->getPreparedMainTemplate($tpl);
116 $this->global_screen->layout()->meta()->reset();
120 $this->global_screen->layout()->meta()->addCss($location_stylesheet);
121 $this->global_screen->layout()->meta()->addCss(
132 "term_id" => $term_id,
133 "ref_id" => $this->glossary->getRefId(),
137 $this->glo_gui->initByRequest(
$params);
139 $this->glo_gui->injectTemplate($tpl);
150 $tpl->setTitle($this->glossary->getTitle());
151 if ($this->glossary->getPresentationMode() ==
"full_def") {
152 $content = $this->glo_full_gui->renderPanelForOffline();
154 $content = $this->glo_table_gui->renderPresentationTableForOffline();
156 $this->collector->addString($content,
"index.html");
158 $terms = $this->glossary->getTermList();
159 foreach ($terms as $term) {
161 $content = $this->glo_gui->listDefinitions($this->glossary->getRefId(), $term[
"id"],
false);
162 $this->collector->addString($content,
"term_" . $term[
"id"] .
".html");
165 $this->co_page_html_export->collectPageElements(
"term:pg", $term[
"id"],
"");
static getStyleSheetLocation(string $mode="output", string $a_css_name="")
get full style sheet file name (path inclusive) of current user
initScreen(int $term_id)
Init page.
__construct(\ilObjGlossary $glo, string $exp_dir, string $sub_dir)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilPresentationTableGUI $glo_table_gui
ExportCollector $collector
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ilPresentationFullGUI $glo_full_gui
ILIAS GlobalScreen Services $global_screen
ILIAS Glossary InternalService $service
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
Util This class is an interim solution for the HTML export handling with 6.0.
exportHTMLGlossaryTerms()
static resetInitialState()
Reset initial state (for exports)
const HTML_EXPORT_RENDERING
ILIAS Style Content Object ObjectFacade $content_style
ilCOPageHTMLExport $co_page_html_export
ilGlossaryPresentationGUI $glo_gui