Definition at line 27 of file GlossaryHtmlExport.php.
◆ __construct()
ILIAS\Glossary\Export\GlossaryHtmlExport::__construct |
( |
\ilObjGlossary |
$glo, |
|
|
string |
$exp_dir, |
|
|
string |
$sub_dir |
|
) |
| |
Definition at line 43 of file GlossaryHtmlExport.php.
References $DIC, ILIAS\Glossary\Export\GlossaryHtmlExport\$sub_dir, ilObject\getId(), ilObject\getRefId(), ilHTMLExportViewLayoutProvider\HTML_EXPORT_RENDERING, and null.
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
79 ->styleForRefId($glo->getRefId());
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const HTML_EXPORT_RENDERING
◆ exportHTML()
ILIAS\Glossary\Export\GlossaryHtmlExport::exportHTML |
( |
| ) |
|
◆ exportHTMLGlossaryTerms()
ILIAS\Glossary\Export\GlossaryHtmlExport::exportHTMLGlossaryTerms |
( |
| ) |
|
- Exceptions
-
Definition at line 151 of file GlossaryHtmlExport.php.
References ILIAS\Glossary\Export\GlossaryHtmlExport\initScreen().
Referenced by ILIAS\Glossary\Export\GlossaryHtmlExport\exportHTML().
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.
◆ getInitialisedTemplate()
ILIAS\Glossary\Export\GlossaryHtmlExport::getInitialisedTemplate |
( |
| ) |
|
|
protected |
◆ initScreen()
ILIAS\Glossary\Export\GlossaryHtmlExport::initScreen |
( |
int |
$term_id | ) |
|
|
protected |
◆ $co_page_html_export
◆ $collector
◆ $content_style
◆ $export_dir
string ILIAS\Glossary\Export\GlossaryHtmlExport::$export_dir |
|
protected |
◆ $export_util
Util ILIAS\Glossary\Export\GlossaryHtmlExport::$export_util |
|
protected |
◆ $glo_full_gui
◆ $glo_gui
◆ $glo_table_gui
◆ $global_screen
◆ $glossary
ilObjGlossary ILIAS\Glossary\Export\GlossaryHtmlExport::$glossary |
|
protected |
◆ $service
ILIAS Glossary InternalService ILIAS\Glossary\Export\GlossaryHtmlExport::$service |
|
protected |
◆ $sub_dir
string ILIAS\Glossary\Export\GlossaryHtmlExport::$sub_dir |
|
protected |
◆ $target_dir
string ILIAS\Glossary\Export\GlossaryHtmlExport::$target_dir |
|
protected |
The documentation for this class was generated from the following file: