ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilAssLacOperatorNotSupportedByExpression.php
Go to the documentation of this file.
1<?php
2
3require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacException.php';
4require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacFormAlertProvider.php';
5
16{
20 protected $operator;
21
25 protected $expression;
26
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 }
40
44 public function getExpression()
45 {
46 return $this->expression;
47 }
48
52 public function getOperator()
53 {
54 return $this->operator;
55 }
56
61 public function getFormAlert(ilLanguage $lng)
62 {
63 return sprintf(
64 $lng->txt("ass_lac_operator_not_supported_by_expression"), $this->getOperator(), $this->getExpression()
65 );
66 }
67}
language handling
global $lng
Definition: privfeed.php:40