ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAssLacQuestionNotExist Class Reference
+ Inheritance diagram for ilAssLacQuestionNotExist:
+ Collaboration diagram for ilAssLacQuestionNotExist:

Public Member Functions

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

Protected Attributes

 $question_index
 

Detailed Description

Definition at line 15 of file ilAssLacQuestionNotExist.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 25 of file ilAssLacQuestionNotExist.php.

References $question_index, and getQuestionIndex().

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  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getFormAlert()

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

Implements ilAssLacFormAlertProvider.

Definition at line 47 of file ilAssLacQuestionNotExist.php.

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

48  {
49  return sprintf(
50  $lng->txt("ass_lac_question_not_exist"),
51  $this->getQuestionIndex()
52  );
53  }
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...
+ Here is the call graph for this function:

◆ getQuestionIndex()

ilAssLacQuestionNotExist::getQuestionIndex ( )
Returns
int

Definition at line 38 of file ilAssLacQuestionNotExist.php.

References $question_index.

Referenced by __construct(), and getFormAlert().

+ Here is the caller graph for this function:

Field Documentation

◆ $question_index

ilAssLacQuestionNotExist::$question_index
protected

Definition at line 20 of file ilAssLacQuestionNotExist.php.

Referenced by __construct(), and getQuestionIndex().


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