diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2022-02-11 09:06:08 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-02-11 09:06:08 +0000 |
| commit | 1decbd1cf247932d99facfc562c8de29d366f2ab (patch) | |
| tree | 24a1b466fd4f925423ccbef595d67f5ebf82b032 | |
| parent | 308bd66274b846f7a33f52292c4c64e60463fc8a (diff) | |
biest-664
| -rwxr-xr-x | lib/models/Courseware/BlockTypes/Embed.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/models/Courseware/BlockTypes/Embed.php b/lib/models/Courseware/BlockTypes/Embed.php index a6496c6..5d067ec 100755 --- a/lib/models/Courseware/BlockTypes/Embed.php +++ b/lib/models/Courseware/BlockTypes/Embed.php @@ -121,4 +121,16 @@ class Embed extends BlockType { return []; } + + public function pdfExport() + { + $payload = $this->getPayload(); + $html = '<h5>' . sprintf(_('Block-Typ: %s'), $this->getTitle()) . '</h5>'; + $html .= '<h6>' . _('Block-Daten') . ': ' . '</h6>'; + $html .= '<h6>' . _('Titel') . ' => ' . $payload['title'] . '</h6>'; + $html .= '<h6>' . _('Quelle') . ' => ' . $payload['source'] . '</h6>'; + $html .= '<h6>' . _('URL') . ' => ' . $payload['url'] . '</h6>'; + + return $html; + } } |
