47 $this->glossary = $glo;
48 $this->export_dir = $exp_dir;
50 $this->target_dir = $exp_dir .
"/" .
$sub_dir;
52 $this->global_screen = $DIC->globalScreen();
53 $this->export_util = new \ILIAS\Services\Export\HTML\Util($exp_dir, $sub_dir);
54 $this->co_page_html_export = new \ilCOPageHTMLExport($this->target_dir);
57 $this->glo_gui = new \ilGlossaryPresentationGUI(
"html", $this->target_dir);
60 $this->content_style = $DIC
76 $this->export_util->exportSystemStyle();
77 $this->export_util->exportCOPageFiles($this->content_style->getEffectiveStyleId(),
"glo");
82 $this->export_util->exportResourceFiles();
84 $this->co_page_html_export->exportPageElements();
93 $zip_file = $this->glossary->getExportDirectory(
"html") .
"/" . $date .
"__" .
IL_INST_ID .
"__" .
94 $this->glossary->getType() .
"_" . $this->glossary->getId() .
".zip";
104 $tabs = $DIC->tabs();
106 $tabs->clearTargets();
107 $tabs->clearSubTabs();
108 $tpl = new \ilGlobalPageTemplate($DIC->globalScreen(), $DIC->ui(), $DIC->http());
110 $this->co_page_html_export->getPreparedMainTemplate(
$tpl);
121 $this->global_screen->layout()->meta()->reset();
125 $this->global_screen->layout()->meta()->addCss($location_stylesheet);
126 $this->global_screen->layout()->meta()->addCss(
137 "term_id" => $term_id,
138 "ref_id" => $this->glossary->getRefId(),
142 $this->glo_gui->initByRequest(
$params);
144 $this->glo_gui->injectTemplate(
$tpl);
155 $tpl->setTitle($this->glossary->getTitle());
156 $content = $this->glo_gui->listTerms();
157 $file = $this->target_dir .
"/index.html";
160 $fp = fopen($file,
"w+");
161 fwrite($fp, $content);
164 $terms = $this->glossary->getTermList();
165 foreach ($terms as $term) {
167 $content = $this->glo_gui->listDefinitions($this->glossary->getRefId(), $term[
"id"],
false);
168 $file = $this->target_dir .
"/term_" . $term[
"id"] .
".html";
171 $fp = fopen($file,
"w+");
172 fwrite($fp, $content);
177 foreach ($defs as $def) {
178 $this->co_page_html_export->collectPageElements(
"gdf:pg", $def[
"id"],
"");
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...
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
ILIAS GlobalScreen Services $global_screen
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
static getDefinitionList(int $a_term_id)
ILIAS Services Export HTML Util $export_util
exportHTMLGlossaryTerms()
static resetInitialState()
Reset initial state (for exports)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static zip(string $a_dir, string $a_file, bool $compress_content=false)
zips given directory/file into given zip.file
const HTML_EXPORT_RENDERING
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
ILIAS Style Content Object ObjectFacade $content_style
ilCOPageHTMLExport $co_page_html_export
ilGlossaryPresentationGUI $glo_gui
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...