3declare(strict_types=1);
52 $this->co_page_html_export = new \ilCOPageHTMLExport($this->target_dir);
53 $this->global_screen =
$DIC->globalScreen();
62 $sys_style_html_export = new \ilSystemStyleHTMLExport($this->target_dir);
63 $sys_style_html_export->export();
74 $this->co_page_html_export->setContentStyleId($style_sheet_id);
75 $this->co_page_html_export->createDirectories();
76 $this->co_page_html_export->exportStyles();
77 $this->co_page_html_export->exportSupportScripts();
86 $this->global_screen->tool()->context()->current()->addAdditionalData(
100 foreach ($css->getItemsInOrderOfDelivery() as $item) {
104 foreach ($js->getItemsInOrderOfDelivery() as $item) {
114 if (is_int(strpos($file,
"?"))) {
115 $file = substr($file, 0, strpos($file,
"?"));
117 if (is_file($file)) {
118 $dir = dirname($file);
Util This class is an interim solution for the HTML export handling with 6.0.
exportResourceFile(string $target_dir, string $file)
Export resource file.
__construct(string $export_dir, string $sub_dir)
Constructor.
exportResourceFiles()
Export resource files collected by global screen service.
ilCOPageHTMLExport $co_page_html_export
exportCOPageFiles(int $style_sheet_id=0, string $obj_type="")
Export content style.
exportSystemStyle()
Export system style.
initGlobalScreen()
Init global screen.
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
const HTML_EXPORT_RENDERING
static getInstance()
Singleton: get instance for use in ILIAS requests with a config loaded from the settings.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...