ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
ilAssLacOperatorNotSupportedByExpression.php
Go to the documentation of this file.
1
<?
php
2
3
require_once
'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacException.php'
;
4
require_once
'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacFormAlertProvider.php'
;
5
15
class
ilAssLacOperatorNotSupportedByExpression
extends
ilAssLacException
implements
ilAssLacFormAlertProvider
16
{
20
protected
$operator
;
21
25
protected
$expression
;
26
31
public
function
__construct
(
$expression
,
$operator
)
32
{
33
$this->expression =
$expression
;
34
$this->
operator
=
$operator
;
35
36
parent::__construct(sprintf(
37
'The expression "%s" is not supported by the operator "%s"'
, $this->
getExpression
(), $this->
getOperator
()
38
));
39
}
40
44
public
function
getExpression
()
45
{
46
return
$this->expression
;
47
}
48
52
public
function
getOperator
()
53
{
54
return
$this->operator
;
55
}
56
61
public
function
getFormAlert
(
ilLanguage
$lng
)
62
{
63
return
sprintf(
64
$lng->
txt
(
"ass_lac_operator_not_supported_by_expression"
), $this->
getOperator
(), $this->
getExpression
()
65
);
66
}
67
}
ilAssLacOperatorNotSupportedByExpression
Definition:
ilAssLacOperatorNotSupportedByExpression.php:15
ilAssLacOperatorNotSupportedByExpression\__construct
__construct($expression, $operator)
Definition:
ilAssLacOperatorNotSupportedByExpression.php:31
ilAssLacOperatorNotSupportedByExpression\getOperator
getOperator()
Definition:
ilAssLacOperatorNotSupportedByExpression.php:52
ilAssLacFormAlertProvider
Definition:
ilAssLacFormAlertProvider.php:10
ilAssLacOperatorNotSupportedByExpression\$expression
$expression
Definition:
ilAssLacOperatorNotSupportedByExpression.php:25
ilAssLacOperatorNotSupportedByExpression\getExpression
getExpression()
Definition:
ilAssLacOperatorNotSupportedByExpression.php:44
ilAssLacOperatorNotSupportedByExpression\$operator
$operator
Definition:
ilAssLacOperatorNotSupportedByExpression.php:20
$lng
global $lng
Definition:
privfeed.php:17
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
php
ilAssLacOperatorNotSupportedByExpression\getFormAlert
getFormAlert(ilLanguage $lng)
Definition:
ilAssLacOperatorNotSupportedByExpression.php:61
ilLanguage\txt
txt($a_topic, $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:253
ilAssLacException
Definition:
ilAssLacException.php:12
Modules
TestQuestionPool
classes
questions
LogicalAnswerCompare
Exception
ilAssLacOperatorNotSupportedByExpression.php
Generated on Fri Jan 17 2025 19:01:06 for ILIAS by
1.8.13 (using
Doxyfile
)