ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAssLacQuestionNotReachable Class Reference
+ Inheritance diagram for ilAssLacQuestionNotReachable:
+ Collaboration diagram for ilAssLacQuestionNotReachable:

Public Member Functions

 __construct ($question_index)
 
 getQuestionIndex ()
 
 getFormAlert (ilLanguage $lng)
 
- Public Member Functions inherited from ilException
 __construct ($a_message, $a_code=0, Throwable $previous=null)
 A code isn't optional as in build in class Exception. More...
 

Protected Attributes

 $question_index
 

Detailed Description

Definition at line 28 of file ilAssLacQuestionNotReachable.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssLacQuestionNotReachable::__construct (   $question_index)
Parameters
int$question_index

Definition at line 38 of file ilAssLacQuestionNotReachable.php.

References $question_index, ILIAS\GlobalScreen\Provider\__construct(), and getQuestionIndex().

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  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getFormAlert()

ilAssLacQuestionNotReachable::getFormAlert ( ilLanguage  $lng)
Parameters
ilLanguage$lng
Returns
string

Implements ilAssLacFormAlertProvider.

Definition at line 60 of file ilAssLacQuestionNotReachable.php.

References getQuestionIndex(), and ilLanguage\txt().

60  : string
61  {
62  return sprintf(
63  $lng->txt("ass_lac_question_not_reachable"),
64  $this->getQuestionIndex()
65  );
66  }
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...
+ Here is the call graph for this function:

◆ getQuestionIndex()

ilAssLacQuestionNotReachable::getQuestionIndex ( )
Returns
int

Definition at line 51 of file ilAssLacQuestionNotReachable.php.

References $question_index.

Referenced by __construct(), and getFormAlert().

51  : int
52  {
53  return $this->question_index;
54  }
+ Here is the caller graph for this function:

Field Documentation

◆ $question_index

ilAssLacQuestionNotReachable::$question_index
protected

Definition at line 33 of file ilAssLacQuestionNotReachable.php.

Referenced by __construct(), and getQuestionIndex().


The documentation for this class was generated from the following file: