Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 22 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /* |
| 3 | * This program is free software; you can redistribute it and/or |
| 4 | * modify it under the terms of the GNU General Public License |
| 5 | * as published by the Free Software Foundation; under version 2 |
| 6 | * of the License (non-upgradable). |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program; if not, write to the Free Software |
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16 | * |
| 17 | * Copyright (c) 2017 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); |
| 18 | */ |
| 19 | |
| 20 | $config = get_data('config'); |
| 21 | ?> |
| 22 | <customInteraction <?=get_data('attributes')?>> |
| 23 | <portableCustomInteraction customInteractionTypeIdentifier="<?=get_data('typeIdentifier')?>" data-version="<?=get_data('version')?>" xmlns="http://www.imsglobal.org/xsd/portableCustomInteraction_v1"> |
| 24 | <?=get_data('serializedProperties')?> |
| 25 | <modules<?php if (isset($config[0])) : |
| 26 | ?> primaryConfiguration="<?=$config[0]?>"<?php |
| 27 | endif;?><?php if (isset($config[1])) : |
| 28 | ?> fallbackConfiguration="<?=$config[1]?>"<?php |
| 29 | endif;?>> |
| 30 | <?php foreach (get_data('modules') as $id => $paths) :?> |
| 31 | <module id="<?=$id?>"<?php if (isset($paths[0])) : |
| 32 | ?> primaryPath="<?=$paths[0]?>"<?php |
| 33 | endif;?><?php if (isset($paths[1])) : |
| 34 | ?> fallbackPath="<?=$paths[1]?>"<?php |
| 35 | endif;?>/> |
| 36 | <?php endforeach;?> |
| 37 | </modules> |
| 38 | <markup xmlns="http://www.w3.org/1999/xhtml"> |
| 39 | <?=get_data('markup')?> |
| 40 | </markup> |
| 41 | </portableCustomInteraction> |
| 42 | </customInteraction> |