ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ilAssLacExpressionNotSupportedByQuestion.php
Go to the documentation of this file.
1
<?php
2
28
class
ilAssLacExpressionNotSupportedByQuestion
extends
ilAssLacException
implements
ilAssLacFormAlertProvider
29
{
33
protected
$expression
;
34
38
protected
$question_index
;
39
44
public
function
__construct
(
$expression
,
$question_index
)
45
{
46
$this->expression =
$expression
;
47
$this->question_index =
$question_index
;
48
49
if
($this->
getQuestionIndex
() ===
null
) {
50
$msg = sprintf(
51
'The expression "%s" is not supported by the current question'
,
52
$this->
getExpression
()
53
);
54
}
else
{
55
$msg = sprintf(
56
'The expression "%s" is not supported by the question with index "Q%s"'
,
57
$this->
getExpression
(),
58
$this->
getQuestionIndex
()
59
);
60
}
61
62
parent::__construct
($msg);
63
}
64
68
public
function
getQuestionIndex
(): ?
int
69
{
70
return
$this->question_index
;
71
}
72
76
public
function
getExpression
(): string
77
{
78
return
$this->expression
;
79
}
80
85
public
function
getFormAlert
(
ilLanguage
$lng
): string
86
{
87
if
($this->
getQuestionIndex
() ===
null
) {
88
return
sprintf(
89
$lng->
txt
(
"ass_lac_expression_not_supported_by_cur_question"
),
90
$this->
getExpression
()
91
);
92
}
93
94
return
sprintf(
95
$lng->
txt
(
"ass_lac_expression_not_supported_by_question"
),
96
$this->
getQuestionIndex
(),
97
$this->
getExpression
()
98
);
99
}
100
}
ilAssLacExpressionNotSupportedByQuestion\$expression
$expression
Definition:
ilAssLacExpressionNotSupportedByQuestion.php:33
ilLanguage
ilLanguage\txt
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Definition:
class.ilLanguage.php:170
ilAssLacExpressionNotSupportedByQuestion
Definition:
ilAssLacExpressionNotSupportedByQuestion.php:28
ilAssLacExpressionNotSupportedByQuestion\getFormAlert
getFormAlert(ilLanguage $lng)
Definition:
ilAssLacExpressionNotSupportedByQuestion.php:85
ilAssLacExpressionNotSupportedByQuestion\$question_index
$question_index
Definition:
ilAssLacExpressionNotSupportedByQuestion.php:38
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ilAssLacFormAlertProvider
Definition:
ilAssLacFormAlertProvider.php:25
ilAssLacExpressionNotSupportedByQuestion\getQuestionIndex
getQuestionIndex()
Definition:
ilAssLacExpressionNotSupportedByQuestion.php:68
ilAssLacExpressionNotSupportedByQuestion\__construct
__construct($expression, $question_index)
Definition:
ilAssLacExpressionNotSupportedByQuestion.php:44
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
$lng
global $lng
Definition:
privfeed.php:31
ilAssLacException
Definition:
ilAssLacException.php:25
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilAssLacExpressionNotSupportedByQuestion\getExpression
getExpression()
Definition:
ilAssLacExpressionNotSupportedByQuestion.php:76
components
ILIAS
TestQuestionPool
classes
questions
LogicalAnswerCompare
Exception
ilAssLacExpressionNotSupportedByQuestion.php
Generated on Sun Aug 31 2025 23:04:04 for ILIAS by
1.8.13 (using
Doxyfile
)