ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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"',
38  $this->getExpression(),
39  $this->getOperator()
40  ));
41  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getExpression()

ilAssLacOperatorNotSupportedByExpression::getExpression ( )
Returns
string

Definition at line 46 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 63 of file ilAssLacOperatorNotSupportedByExpression.php.

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

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