ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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:142
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 Sat Apr 5 2025 23:04:20 for ILIAS by
1.8.13 (using
Doxyfile
)