ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilAssLacMissingBracket.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 $bracket;
21
25 public function __construct($bracket)
26 {
27 $this->bracket = $bracket;
28
29 parent::__construct(sprintf(
30 'There is a bracket "%s" missing in the condition',
31 $this->getBracket()
32 ));
33 }
34
38 public function getBracket()
39 {
40 return $this->bracket;
41 }
42
47 public function getFormAlert(ilLanguage $lng)
48 {
49 return sprintf(
50 $lng->txt("ass_lac_missing_bracket"),
51 $this->getBracket()
52 );
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
language handling
$lng