From 959b51f92697315e03706200741b4d9008075bbf Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 30 Mar 2020 16:52:59 +0200 Subject: [PATCH] wip #3530 @0.5 --- app/Models/Quiz.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/app/Models/Quiz.php b/app/Models/Quiz.php index bc0c344cf..472e99fb9 100644 --- a/app/Models/Quiz.php +++ b/app/Models/Quiz.php @@ -236,6 +236,30 @@ class Quiz extends CubistMagicAbstractModel $xq->addChild('correction', $question['explaination']); } file_put_contents($dest . '/data.xml', tidy_repair_string($xml->asXML(), ['input-xml' => 1, 'indent' => 1, 'wrap' => 0])); + + if ($this->getAttribute('scorm')) { + $title = htmlspecialchars($this->getAttribute('title')); + file_put_contents($dest . '/imsmanifest.xml', ' + + + ADL SCORM + 1.2 + + + + ' . $title . ' + + ' . $title . ' + + + + + + + + +'); + } } public static function getMessages() -- 2.39.5