ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 code isn't optional as in build in class Exception. More...
 
 getFormAlert (ilLanguage $lng)
 

Protected Attributes

 $question_index
 

Detailed Description

Definition at line 28 of file ilAssLacQuestionNotExist.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 38 of file ilAssLacQuestionNotExist.php.

39 {
40 $this->question_index = $question_index;
41
42 parent::__construct(sprintf(
43 'The Question with index "Q%s" does not exist',
44 $this->getQuestionIndex()
45 ));
46 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

+ 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 60 of file ilAssLacQuestionNotExist.php.

60 : string
61 {
62 return sprintf(
63 $lng->txt("ass_lac_question_not_exist"),
64 $this->getQuestionIndex()
65 );
66 }
global $lng
Definition: privfeed.php:31

References $lng.

◆ getQuestionIndex()

ilAssLacQuestionNotExist::getQuestionIndex ( )
Returns
int

Definition at line 51 of file ilAssLacQuestionNotExist.php.

51 : int
52 {
54 }

References $question_index.

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $question_index

ilAssLacQuestionNotExist::$question_index
protected

Definition at line 33 of file ilAssLacQuestionNotExist.php.

Referenced by __construct(), and getQuestionIndex().


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