ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAssLacMissingBracket Class Reference
+ Inheritance diagram for ilAssLacMissingBracket:
+ Collaboration diagram for ilAssLacMissingBracket:

Public Member Functions

 __construct ($bracket)
 
 getBracket ()
 
 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

 $bracket
 

Detailed Description

Definition at line 15 of file ilAssLacMissingBracket.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssLacMissingBracket::__construct (   $bracket)
Parameters
string$bracket

Definition at line 25 of file ilAssLacMissingBracket.php.

References $bracket, and getBracket().

26  {
27  $this->bracket = $bracket;
28 
29  parent::__construct(sprintf(
30  'There is a bracket "%s" missing in the condition', $this->getBracket()
31  ));
32  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getBracket()

ilAssLacMissingBracket::getBracket ( )
Returns
string

Definition at line 37 of file ilAssLacMissingBracket.php.

References $bracket.

Referenced by __construct(), and getFormAlert().

+ Here is the caller graph for this function:

◆ getFormAlert()

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

Implements ilAssLacFormAlertProvider.

Definition at line 46 of file ilAssLacMissingBracket.php.

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

47  {
48  return sprintf(
49  $lng->txt("ass_lac_missing_bracket"), $this->getBracket()
50  );
51  }
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:

Field Documentation

◆ $bracket

ilAssLacMissingBracket::$bracket
protected

Definition at line 20 of file ilAssLacMissingBracket.php.

Referenced by __construct(), and getBracket().


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