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

Protected Attributes

 $bracket
 

Detailed Description

Definition at line 28 of file ilAssLacMissingBracket.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 38 of file ilAssLacMissingBracket.php.

39 {
40 $this->bracket = $bracket;
41
42 parent::__construct(sprintf(
43 'There is a bracket "%s" missing in the condition',
44 $this->getBracket()
45 ));
46 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $bracket, ILIAS\GlobalScreen\Provider\__construct(), and getBracket().

+ Here is the call graph for this function:

Member Function Documentation

◆ getBracket()

ilAssLacMissingBracket::getBracket ( )
Returns
string

Definition at line 51 of file ilAssLacMissingBracket.php.

51 : string
52 {
53 return $this->bracket;
54 }

References $bracket.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getFormAlert()

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

Implements ilAssLacFormAlertProvider.

Definition at line 60 of file ilAssLacMissingBracket.php.

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

References $lng.

Field Documentation

◆ $bracket

ilAssLacMissingBracket::$bracket
protected

Definition at line 33 of file ilAssLacMissingBracket.php.

Referenced by __construct(), and getBracket().


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