ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ilAssLacMissingBracket.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
ilAssLacMissingBracket
extends
ilAssLacException
implements
ilAssLacFormAlertProvider
16
{
20
protected
$bracket
;
21
25
public
function
__construct
(
$bracket
)
26
{
27
$this->bracket =
$bracket
;
28
29
parent::__construct(
sprintf
(
30
'There is a bracket "%s" missing in the condition'
,
31
$this->
getBracket
()
32
));
33
}
34
38
public
function
getBracket
()
39
{
40
return
$this->bracket
;
41
}
42
47
public
function
getFormAlert
(
ilLanguage
$lng
)
48
{
49
return
sprintf
(
50
$lng
->txt(
"ass_lac_missing_bracket"
),
51
$this->getBracket()
52
);
53
}
54
}
sprintf
sprintf('%.4f', $callTime)
Definition:
01pharSimple.php:87
php
An exception for terminatinating execution or to throw for unit testing.
ilAssLacException
Definition:
ilAssLacException.php:13
ilAssLacMissingBracket
Definition:
ilAssLacMissingBracket.php:16
ilAssLacMissingBracket\__construct
__construct($bracket)
Definition:
ilAssLacMissingBracket.php:25
ilAssLacMissingBracket\$bracket
$bracket
Definition:
ilAssLacMissingBracket.php:20
ilAssLacMissingBracket\getBracket
getBracket()
Definition:
ilAssLacMissingBracket.php:38
ilAssLacMissingBracket\getFormAlert
getFormAlert(ilLanguage $lng)
Definition:
ilAssLacMissingBracket.php:47
ilLanguage
language handling
Definition:
class.ilLanguage.php:27
ilAssLacFormAlertProvider
Definition:
ilAssLacFormAlertProvider.php:11
$lng
global $lng
Definition:
privfeed.php:17
Modules
TestQuestionPool
classes
questions
LogicalAnswerCompare
Exception
ilAssLacMissingBracket.php
Generated on Tue Sep 30 2025 19:01:08 for ILIAS by
1.9.4 (using
Doxyfile
)