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
}
ilAssLacFormAlertProvider
Definition:
ilAssLacFormAlertProvider.php:10
ilAssLacMissingBracket\__construct
__construct($bracket)
Definition:
ilAssLacMissingBracket.php:25
ilAssLacMissingBracket
Definition:
ilAssLacMissingBracket.php:15
ilAssLacMissingBracket\$bracket
$bracket
Definition:
ilAssLacMissingBracket.php:20
ilAssLacMissingBracket\getBracket
getBracket()
Definition:
ilAssLacMissingBracket.php:38
$lng
global $lng
Definition:
privfeed.php:17
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
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:244
ilAssLacException
Definition:
ilAssLacException.php:12
ilAssLacMissingBracket\getFormAlert
getFormAlert(ilLanguage $lng)
Definition:
ilAssLacMissingBracket.php:47
Modules
TestQuestionPool
classes
questions
LogicalAnswerCompare
Exception
ilAssLacMissingBracket.php
Generated on Sat Jan 18 2025 19:01:24 for ILIAS by
1.8.13 (using
Doxyfile
)