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

Public Member Functions

 __construct ($expression)
 
 getExpression ()
 
 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

 $expression
 

Detailed Description

Definition at line 28 of file ilAssLacUnsupportedExpression.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssLacUnsupportedExpression::__construct (   $expression)
Parameters
string$expression

Definition at line 38 of file ilAssLacUnsupportedExpression.php.

References $expression, ILIAS\GlobalScreen\Provider\__construct(), and getExpression().

39  {
40  $this->expression = $expression;
41 
42  parent::__construct(sprintf(
43  'The expression "%s" is not supported',
44  $this->getExpression()
45  ));
46  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getExpression()

ilAssLacUnsupportedExpression::getExpression ( )
Returns
string

Definition at line 51 of file ilAssLacUnsupportedExpression.php.

References $expression.

Referenced by __construct(), and getFormAlert().

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

◆ getFormAlert()

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

Implements ilAssLacFormAlertProvider.

Definition at line 60 of file ilAssLacUnsupportedExpression.php.

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

60  : string
61  {
62  return sprintf(
63  $lng->txt("ass_lac_expression_not_supported"),
64  $this->getExpression()
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:

Field Documentation

◆ $expression

ilAssLacUnsupportedExpression::$expression
protected

Definition at line 33 of file ilAssLacUnsupportedExpression.php.

Referenced by __construct(), and getExpression().


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