ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssLacOperatorNotSupportedByExpression.php
Go to the documentation of this file.
1 <?php
2 
29 {
33  protected $operator;
34 
38  protected $expression;
39 
44  public function __construct($expression, $operator)
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  }
55 
59  public function getExpression(): string
60  {
61  return $this->expression;
62  }
63 
67  public function getOperator(): string
68  {
69  return $this->operator;
70  }
71 
76  public function getFormAlert(ilLanguage $lng): string
77  {
78  return sprintf(
79  $lng->txt("ass_lac_operator_not_supported_by_expression"),
80  $this->getOperator(),
81  $this->getExpression()
82  );
83  }
84 }
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...
__construct(Container $dic, ilPlugin $plugin)
global $lng
Definition: privfeed.php:31