ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php
Go to the documentation of this file.
1
<?
php
2
3
include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacAbstractExpression.php"
;
4
require_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacQuestionExpressionInterface.php"
;
5
13
class
ilAssLacResultOfAnswerOfCurrentQuestionExpression
extends
ilAssLacAbstractExpression
implements
ilAssLacQuestionExpressionInterface
14
{
26
public
static
$pattern
=
"/R\\[[0-9]+\\]/"
;
27
31
public
static
$identifier
=
"R[m]"
;
32
38
protected
$answer_index
;
39
44
public
function
getPattern
()
45
{
46
return
'/\[(\d+)\]/'
;
47
}
48
56
protected
function
setMatches
($matches)
57
{
58
$this->answer_index = $matches[1][0];
59
}
60
64
public
function
getQuestionIndex
()
65
{
66
return
null;
67
}
68
72
public
function
getAnswerIndex
()
73
{
74
return
$this->answer_index
;
75
}
76
81
public
function
getValue
()
82
{
83
return
'R['
. $this->answer_index .
']'
;
84
}
85
90
public
function
getDescription
()
91
{
92
return
"Aktuelle Frage mit Anwort "
. $this->answer_index .
" beantwortet "
;
93
}
94
}
ilAssLacResultOfAnswerOfCurrentQuestionExpression
Class ResultOfAnswerOfCurrentQuestion for the expression R[m].
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:13
ilAssLacResultOfAnswerOfCurrentQuestionExpression\$pattern
static $pattern
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:26
ilAssLacResultOfAnswerOfCurrentQuestionExpression\getAnswerIndex
getAnswerIndex()
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:72
ilAssLacResultOfAnswerOfCurrentQuestionExpression\$answer_index
$answer_index
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:38
ilAssLacResultOfAnswerOfCurrentQuestionExpression\getValue
getValue()
Get the value of this Expression.
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:81
ilAssLacResultOfAnswerOfCurrentQuestionExpression\$identifier
static $identifier
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:31
ilAssLacAbstractExpression
Class AbstractExpression.
Definition:
ilAssLacAbstractExpression.php:13
ilAssLacResultOfAnswerOfCurrentQuestionExpression\setMatches
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:56
ilAssLacQuestionExpressionInterface
Class QuestionExpressionInterface.
Definition:
ilAssLacQuestionExpressionInterface.php:10
ilAssLacResultOfAnswerOfCurrentQuestionExpression\getQuestionIndex
getQuestionIndex()
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:64
ilAssLacResultOfAnswerOfCurrentQuestionExpression\getDescription
getDescription()
Get a human readable description of the Composite element.
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:90
php
ilAssLacResultOfAnswerOfCurrentQuestionExpression\getPattern
getPattern()
Get the Pattern to match relevant informations for an Expression.
Definition:
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php:44
Modules
TestQuestionPool
classes
questions
LogicalAnswerCompare
Expressions
ilAssLacResultOfAnswerOfCurrentQuestionExpression.php
Generated on Thu Jan 16 2025 19:02:14 for ILIAS by
1.8.13 (using
Doxyfile
)