ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssLacOperatorNotSupportedByExpression.php
Go to the documentation of this file.
1<?php
2
29{
33 protected $operator;
34
38 protected $expression;
39
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}
language handling
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31