ILIAS  release_7 Revision v7.30-3-g800a261c036
ilAssLacQuestionNotReachable.php
Go to the documentation of this file.
1<?php
2
3require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacException.php';
4require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacFormAlertProvider.php';
5
16{
20 protected $question_index;
21
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 {
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}
An exception for terminatinating execution or to throw for unit testing.
language handling
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$lng