ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 code isn't optional as in build in class Exception. More...
 

Protected Attributes

 $operator
 
 $expression
 

Detailed Description

Definition at line 28 of file ilAssLacOperatorNotSupportedByExpression.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 44 of file ilAssLacOperatorNotSupportedByExpression.php.

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

45  {
46  $this->expression = $expression;
47  $this->operator = $operator;
48 
49  parent::__construct(sprintf(
50  'The expression "%s" is not supported by the operator "%s"',
51  $this->getExpression(),
52  $this->getOperator()
53  ));
54  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getExpression()

ilAssLacOperatorNotSupportedByExpression::getExpression ( )
Returns
string

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

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

76  : string
77  {
78  return sprintf(
79  $lng->txt("ass_lac_operator_not_supported_by_expression"),
80  $this->getOperator(),
81  $this->getExpression()
82  );
83  }
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:

◆ getOperator()

ilAssLacOperatorNotSupportedByExpression::getOperator ( )
Returns
string

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

Referenced by __construct(), and getExpression().

◆ $operator

ilAssLacOperatorNotSupportedByExpression::$operator
protected

Definition at line 33 of file ilAssLacOperatorNotSupportedByExpression.php.

Referenced by __construct(), and getOperator().


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