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

Public Member Functions

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

 $operator
 
 $expression
 

Detailed Description

Definition at line 15 of file ilAssLacOperatorNotSupportedByExpression.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssLacOperatorNotSupportedByExpression::__construct (   $expression,
  $operator 
)
Parameters
string$expression
string$operator

Definition at line 31 of file ilAssLacOperatorNotSupportedByExpression.php.

References $expression, $operator, getExpression(), and getOperator().

32  {
33  $this->expression = $expression;
34  $this->operator = $operator;
35 
36  parent::__construct(sprintf(
37  'The expression "%s" is not supported by the operator "%s"', $this->getExpression(), $this->getOperator()
38  ));
39  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getExpression()

ilAssLacOperatorNotSupportedByExpression::getExpression ( )
Returns
string

Definition at line 44 of file ilAssLacOperatorNotSupportedByExpression.php.

References $expression.

Referenced by __construct(), and getFormAlert().

+ Here is the caller graph for this function:

◆ getFormAlert()

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

Implements ilAssLacFormAlertProvider.

Definition at line 61 of file ilAssLacOperatorNotSupportedByExpression.php.

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

62  {
63  return sprintf(
64  $lng->txt("ass_lac_operator_not_supported_by_expression"), $this->getOperator(), $this->getExpression()
65  );
66  }
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:

◆ getOperator()

ilAssLacOperatorNotSupportedByExpression::getOperator ( )
Returns
string

Definition at line 52 of file ilAssLacOperatorNotSupportedByExpression.php.

References $operator.

Referenced by __construct(), and getFormAlert().

+ Here is the caller graph for this function:

Field Documentation

◆ $expression

ilAssLacOperatorNotSupportedByExpression::$expression
protected

Definition at line 25 of file ilAssLacOperatorNotSupportedByExpression.php.

Referenced by __construct(), and getExpression().

◆ $operator

ilAssLacOperatorNotSupportedByExpression::$operator
protected

Definition at line 20 of file ilAssLacOperatorNotSupportedByExpression.php.

Referenced by __construct(), and getOperator().


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