ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
ilAssLacQuestionNotReachable.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
ilAssLacQuestionNotReachable
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" is not reachable from this node'
,
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_reachable"
),
51
$this->getQuestionIndex()
52
);
53
}
54
}
php
An exception for terminatinating execution or to throw for unit testing.
ilAssLacException
Definition:
ilAssLacException.php:13
ilAssLacQuestionNotReachable
Definition:
ilAssLacQuestionNotReachable.php:16
ilAssLacQuestionNotReachable\__construct
__construct($question_index)
Definition:
ilAssLacQuestionNotReachable.php:25
ilAssLacQuestionNotReachable\getQuestionIndex
getQuestionIndex()
Definition:
ilAssLacQuestionNotReachable.php:38
ilAssLacQuestionNotReachable\getFormAlert
getFormAlert(ilLanguage $lng)
Definition:
ilAssLacQuestionNotReachable.php:47
ilAssLacQuestionNotReachable\$question_index
$question_index
Definition:
ilAssLacQuestionNotReachable.php:20
ilLanguage
language handling
Definition:
class.ilLanguage.php:27
ilAssLacFormAlertProvider
Definition:
ilAssLacFormAlertProvider.php:11
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:30
$lng
$lng
Definition:
save_question_post_data.php:23
Modules
TestQuestionPool
classes
questions
LogicalAnswerCompare
Exception
ilAssLacQuestionNotReachable.php
Generated on Fri Oct 3 2025 20:00:57 for ILIAS by
1.9.4 (using
Doxyfile
)