aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware/StructuralElement.php
diff options
context:
space:
mode:
authorFarbod Zamani <zamani@elan-ev.de>2022-02-25 11:21:08 +0000
committerRon Lucke <lucke@elan-ev.de>2022-02-25 11:21:08 +0000
commit439c37760f736b7806b801b1e609e83baff0ffa3 (patch)
treef11913f4b39201cae389a408818921ffcf6a06d7 /lib/models/Courseware/StructuralElement.php
parent1abc89da19452000a39201f86ee2acf94f3c9ef3 (diff)
Resolves "using templates for courseware pdfExport"
Diffstat (limited to 'lib/models/Courseware/StructuralElement.php')
-rwxr-xr-xlib/models/Courseware/StructuralElement.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php
index 54e2880..ba1563e 100755
--- a/lib/models/Courseware/StructuralElement.php
+++ b/lib/models/Courseware/StructuralElement.php
@@ -768,8 +768,10 @@ SQL;
{
$containers = \Courseware\Container::findBySQL('structural_element_id = ?', [$this->id]);
+ $html = '';
foreach ($containers as $container) {
- $html .= $container->type->pdfExport();
+ $container_html_template = $container->type->getPdfHtmlTemplate();
+ $html .= $container_html_template ? $container_html_template->render() : '';
}
return $html;