Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 17
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3/**
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; under version 2
7 * of the License (non-upgradable).
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 *
18 * Copyright (c) 2024 (original work) Open Assessment Technologies SA;
19 */
20// phpcs:ignoreFile
21?>
22
23<manifest
24        xmlns="http://www.imsglobal.org/xsd/qti/qtiv3p0/imscp_v1p1"
25        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26        xsi:schemaLocation="http://www.imsglobal.org/xsd/qti/qtiv3p0/imscp_v1p1 https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqtiv3p0_imscpv1p2_v1p0.xsd
27                        http://www.imsglobal.org/xsd/imsqtiasi_v3p0 https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqti_asiv3p0_v1p0.xsd"
28        identifier="<?php echo $manifestIdentifier; ?>">
29    <metadata>
30        <schema>QTI Item</schema>
31        <schemaversion>3.0.0</schemaversion>
32    </metadata>
33    <organizations/>
34    <resources>
35        <?php foreach ($qtiItems as $qtiItem) : ?>
36        <resource
37            identifier="<?php echo $qtiItem['identifier']; ?>"
38            type="imsqti_item_xmlv3p0"
39            href="<?php echo str_replace(DIRECTORY_SEPARATOR, '/', $qtiItem['filePath']); ?>">
40            <file href="<?php echo str_replace(DIRECTORY_SEPARATOR, '/', $qtiItem['filePath']);?>"/>
41            <?php foreach ($qtiItem['medias'] as $media) :?>
42            <file href="<?php echo str_replace(DIRECTORY_SEPARATOR, '/', $media);?>"/>
43            <?php endforeach ?>
44        </resource>
45        <?php endforeach ?>
46    </resources>
47</manifest>