Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 30
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) 2013-2023 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT);
19 *
20 */
21
22declare(strict_types=1);
23
24?>
25
26<customInteraction <?=get_data('attributes')?>>
27    <portableCustomInteraction
28            xmlns="<?=get_data('xmlns')?>"
29            customInteractionTypeIdentifier="<?=get_data('typeIdentifier')?>"
30            hook="<?=get_data('entryPoint')?>"
31            version="<?=get_data('version')?>"
32    >
33        <resources>
34            <?php if (count(get_data('libraries'))) :?>
35                <libraries>
36                    <?php foreach (get_data('libraries') as $lib) :?>
37                        <lib id="<?=$lib?>"/>
38                    <?php endforeach;?>
39                </libraries>
40            <?php endif;?>
41            <?php if (count(get_data('stylesheets'))) :?>
42                <stylesheets>
43                    <?php foreach (get_data('stylesheets') as $stylesheet) :?>
44                        <link href="<?=$stylesheet?>" type="text/css" title="base"/>
45                    <?php endforeach;?>
46                </stylesheets>
47            <?php endif;?>
48            <?php if (count(get_data('mediaFiles'))) :?>
49                <mediaFiles>
50                    <?php foreach (get_data('mediaFiles') as $file) :?>
51                        <file src="<?=$file?>"/>
52                    <?php endforeach;?>
53                </mediaFiles>
54            <?php endif;?>
55        </resources>
56        <?=get_data('serializedProperties')?>
57        <markup xmlns="http://www.w3.org/1999/xhtml">
58            <?=get_data('markup')?>
59        </markup>
60    </portableCustomInteraction>
61</customInteraction>