ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
4
require_once
'Modules/TestQuestionPool/classes/feedback/class.ilAssMultiOptionQuestionFeedback.php'
;
5
14
class
ilAssOrderingHorizontalFeedback
extends
ilAssMultiOptionQuestionFeedback
15
{
22
public
function
getAnswerOptionsByAnswerIndex
()
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
}
ilAssOrderingHorizontalFeedback\getAnswerOptionsByAnswerIndex
getAnswerOptionsByAnswerIndex()
returns the answer options mapped by answer index (can be overwritten by concrete question type class...
Definition:
class.ilAssOrderingHorizontalFeedback.php:22
$index
$index
Definition:
metadata.php:60
ilAssOrderingHorizontalFeedback
Definition:
class.ilAssOrderingHorizontalFeedback.php:14
ilAssMultiOptionQuestionFeedback
Definition:
class.ilAssMultiOptionQuestionFeedback.php:17
ilAssOrderingHorizontalFeedback\buildAnswerOptionLabel
buildAnswerOptionLabel($index, $answer)
Definition:
class.ilAssOrderingHorizontalFeedback.php:30
Modules
TestQuestionPool
classes
feedback
class.ilAssOrderingHorizontalFeedback.php
Generated on Tue Jan 28 2025 19:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)