ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssLacQuestionNotReachable.php
Go to the documentation of this file.
1 <?php
2 
29 {
33  protected $question_index;
34 
38  public function __construct($question_index)
39  {
40  $this->question_index = $question_index;
41 
42  parent::__construct(sprintf(
43  'The Question with index "Q%s" is not reachable from this node',
44  $this->getQuestionIndex()
45  ));
46  }
47 
51  public function getQuestionIndex(): int
52  {
53  return $this->question_index;
54  }
55 
60  public function getFormAlert(ilLanguage $lng): string
61  {
62  return sprintf(
63  $lng->txt("ass_lac_question_not_reachable"),
64  $this->getQuestionIndex()
65  );
66  }
67 }
txt(string $a_topic, string $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...
__construct(Container $dic, ilPlugin $plugin)
global $lng
Definition: privfeed.php:31