aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware
diff options
context:
space:
mode:
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;
+ }
}