ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ilAssLacDuplicateElement.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
ilAssLacDuplicateElement
extends
ilAssLacException
implements
ilAssLacFormAlertProvider
16
{
20
protected
$element
;
21
25
public
function
__construct
(
$element
)
26
{
27
$this->element =
$element
;
28
29
parent::__construct(
sprintf
(
30
'Duplicate key "%s" in condition'
,
31
$this->
getElement
()
32
));
33
}
34
38
public
function
getElement
()
39
{
40
return
$this->element
;
41
}
42
47
public
function
getFormAlert
(
ilLanguage
$lng
)
48
{
49
return
sprintf
(
50
$lng
->txt(
"ass_lac_duplicate_element"
),
51
$this->getElement()
52
);
53
}
54
}
sprintf
sprintf('%.4f', $callTime)
Definition:
01pharSimple.php:87
php
An exception for terminatinating execution or to throw for unit testing.
ilAssLacDuplicateElement
Definition:
ilAssLacDuplicateElement.php:16
ilAssLacDuplicateElement\getFormAlert
getFormAlert(ilLanguage $lng)
Definition:
ilAssLacDuplicateElement.php:47
ilAssLacDuplicateElement\__construct
__construct($element)
Definition:
ilAssLacDuplicateElement.php:25
ilAssLacDuplicateElement\$element
$element
Definition:
ilAssLacDuplicateElement.php:20
ilAssLacDuplicateElement\getElement
getElement()
Definition:
ilAssLacDuplicateElement.php:38
ilAssLacException
Definition:
ilAssLacException.php:13
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
ilAssLacDuplicateElement.php
Generated on Sat Oct 4 2025 19:01:11 for ILIAS by
1.9.4 (using
Doxyfile
)