ILIAS  release_8 Revision v8.24
ilAssLacUnsupportedExpression.php
Go to the documentation of this file.
1<?php
2
29{
33 protected $expression;
34
38 public function __construct($expression)
39 {
40 $this->expression = $expression;
41
42 parent::__construct(sprintf(
43 'The expression "%s" is not supported',
44 $this->getExpression()
45 ));
46 }
47
51 public function getExpression(): string
52 {
53 return $this->expression;
54 }
55
60 public function getFormAlert(ilLanguage $lng): string
61 {
62 return sprintf(
63 $lng->txt("ass_lac_expression_not_supported"),
64 $this->getExpression()
65 );
66 }
67}
language handling
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$lng