ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ilAssLacQuestionNotExist.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
ilAssLacQuestionNotExist
extends
ilAssLacException
implements
ilAssLacFormAlertProvider
16
{
20
protected
$question_index
;
21
25
public
function
__construct
(
$question_index
)
26
{
27
$this->question_index =
$question_index
;
28
29
parent::__construct(sprintf(
30
'The Question with index "Q%s" does not exist'
,
31
$this->
getQuestionIndex
()
32
));
33
}
34
38
public
function
getQuestionIndex
()
39
{
40
return
$this->question_index
;
41
}
42
47
public
function
getFormAlert
(
ilLanguage
$lng
)
48
{
49
return
sprintf(
50
$lng->
txt
(
"ass_lac_question_not_exist"
),
51
$this->
getQuestionIndex
()
52
);
53
}
54
}
ilAssLacQuestionNotExist\getQuestionIndex
getQuestionIndex()
Definition:
ilAssLacQuestionNotExist.php:38
ilAssLacQuestionNotExist\__construct
__construct($question_index)
Definition:
ilAssLacQuestionNotExist.php:25
ilAssLacQuestionNotExist
Definition:
ilAssLacQuestionNotExist.php:15
ilAssLacQuestionNotExist\$question_index
$question_index
Definition:
ilAssLacQuestionNotExist.php:20
ilAssLacFormAlertProvider
Definition:
ilAssLacFormAlertProvider.php:10
$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
ilAssLacQuestionNotExist\getFormAlert
getFormAlert(ilLanguage $lng)
Definition:
ilAssLacQuestionNotExist.php:47
Modules
TestQuestionPool
classes
questions
LogicalAnswerCompare
Exception
ilAssLacQuestionNotExist.php
Generated on Sat Jan 18 2025 19:01:24 for ILIAS by
1.8.13 (using
Doxyfile
)