ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAssOrderingHorizontalFeedback.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Modules/TestQuestionPool/classes/feedback/class.ilAssMultiOptionQuestionFeedback.php';
5
15{
23 {
24 if (strpos($this->questionOBJ->ordertext, '::')) {
25 return explode('::', $this->questionOBJ->ordertext);
26 }
27 return explode(' ', $this->questionOBJ->ordertext);
28 }
29
30 protected function buildAnswerOptionLabel($index, $answer)
31 {
32 return trim($answer);
33 }
34}
An exception for terminatinating execution or to throw for unit testing.
getAnswerOptionsByAnswerIndex()
returns the answer options mapped by answer index (can be overwritten by concrete question type class...
buildAnswerOptionLabel($index, $answer)
builds an answer option label from given (mixed type) index and answer (can be overwritten by concret...
$index
Definition: metadata.php:60