Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 19 |
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) 2013 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); |
| 18 | * |
| 19 | * |
| 20 | */ |
| 21 | ?> |
| 22 | <responseCondition> |
| 23 | <responseIf> |
| 24 | <match> |
| 25 | <variable identifier="<?=$responseIdentifier?>" /> |
| 26 | <?php if ($multiple) :?> |
| 27 | <multiple> |
| 28 | <?php foreach ($choices as $choice) : |
| 29 | ?><baseValue baseType="identifier"><?=$choice?></baseValue><?php |
| 30 | endforeach;?> |
| 31 | </multiple> |
| 32 | <?php else :?> |
| 33 | <baseValue baseType="identifier"><?=$choice?></baseValue> |
| 34 | <?php endif;?> |
| 35 | </match> |
| 36 | <setOutcomeValue identifier="<?=$feedbackOutcomeIdentifier?>"> |
| 37 | <baseValue baseType="identifier"><?=$feedbackIdentifierThen?></baseValue> |
| 38 | </setOutcomeValue> |
| 39 | </responseIf> |
| 40 | <?php if (!empty($feedbackIdentifierElse)) : ?> |
| 41 | <responseElse> |
| 42 | <setOutcomeValue identifier="<?=$feedbackOutcomeIdentifier?>"> |
| 43 | <baseValue baseType="identifier"><?=$feedbackIdentifierElse?></baseValue> |
| 44 | </setOutcomeValue> |
| 45 | </responseElse> |
| 46 | <?php endif; ?> |
| 47 | </responseCondition> |