aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2022-02-11 09:06:08 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-02-11 09:06:08 +0000
commit1decbd1cf247932d99facfc562c8de29d366f2ab (patch)
tree24a1b466fd4f925423ccbef595d67f5ebf82b032 /lib/models/Courseware
parent308bd66274b846f7a33f52292c4c64e60463fc8a (diff)
biest-664
Diffstat (limited to 'lib/models/Courseware')
-rwxr-xr-xlib/models/Courseware/BlockTypes/Embed.php12
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;
+ }
}