ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilAssLacUnsupportedOperation.php
Go to the documentation of this file.
1 <?php
2 
3 require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacException.php';
4 require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacFormAlertProvider.php';
5 
16 {
20  protected $operator;
21 
25  public function __construct($operator)
26  {
27  $this->operator = $operator;
28 
29  parent::__construct(sprintf(
30  'The operator "%s" is not supported', $this->getOperator()
31  ));
32  }
33 
37  public function getOperator()
38  {
39  return $this->operator;
40  }
41 
46  public function getFormAlert(ilLanguage $lng)
47  {
48  return sprintf(
49  $lng->txt("ass_lac_operator_not_supported"), $e->getOperator()
50  );
51  }
52 }
global $lng
Definition: privfeed.php:40
language handling
txt($a_topic, $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...