ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilAssLacUnsupportedExpression.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 $expression;
21
25 public function __construct($expression)
26 {
27 $this->expression = $expression;
28
29 parent::__construct(sprintf(
30 'The expression "%s" is not supported', $this->getExpression()
31 ));
32 }
33
37 public function getExpression()
38 {
39 return $this->expression;
40 }
41
46 public function getFormAlert(ilLanguage $lng)
47 {
48 return sprintf(
49 $lng->txt("ass_lac_expression_not_supported"), $this->getExpression()
50 );
51 }
52}
language handling
global $lng
Definition: privfeed.php:40