$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', '<?xml version="1.0" encoding="UTF-8"?>
+<manifest xmlns="http://www.imsproject.org/xsd/imscp_rootv1p1p2" xmlns:imsmd="http://www.imsglobal.org/xsd/imsmd_rootv1p2p1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_rootv1p2" identifier="MANIFEST-90878C16-EB60-D648-94ED-9651972B5F42" xsi:schemaLocation="http://www.imsproject.org/xsd/imscp_rootv1p1p2 imscp_rootv1p1p2.xsd http://www.imsglobal.org/xsd/imsmd_rootv1p2p1 imsmd_rootv1p2p1.xsd http://www.adlnet.org/xsd/adlcp_rootv1p2 adlcp_rootv1p2.xsd">
+ <metadata>
+ <schema>ADL SCORM</schema>
+ <schemaversion>1.2</schemaversion>
+ </metadata>
+ <organizations default="hf">
+ <organization identifier="hf" structure="hierarchical">
+ <title>' . $title . '</title>
+ <item identifier="hfq" identifierref="hfq" isvisible="true">
+ <title>' . $title . '</title>
+ </item>
+ </organization>
+ </organizations>
+ <resources>
+ <resource type="webcontent" adlcp:scormtype="sco" identifier="hfq" href="index.html">
+ <file href="index.html"/>
+ </resource>
+ </resources>
+</manifest>');
+ }
}
public static function getMessages()