diff options
| author | Farbod Zamani <zamani@elan-ev.de> | 2022-02-25 11:21:08 +0000 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2022-02-25 11:21:08 +0000 |
| commit | 439c37760f736b7806b801b1e609e83baff0ffa3 (patch) | |
| tree | f11913f4b39201cae389a408818921ffcf6a06d7 /lib/models/Courseware/StructuralElement.php | |
| parent | 1abc89da19452000a39201f86ee2acf94f3c9ef3 (diff) | |
Resolves "using templates for courseware pdfExport"
Diffstat (limited to 'lib/models/Courseware/StructuralElement.php')
| -rwxr-xr-x | lib/models/Courseware/StructuralElement.php | 4 |
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; |
