ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAssLacUnableToParseCondition.php
Go to the documentation of this file.
1 <?php
2 
29 {
33  protected $condition;
34 
35 
40  public function __construct($condition)
41  {
42  $this->condition = $condition;
43 
44  parent::__construct(sprintf(
45  'The parser is unable to parse the condition "%s"',
46  $this->getCondition()
47  ));
48  }
49 
53  public function getCondition(): string
54  {
55  return $this->condition;
56  }
57 
62  public function getFormAlert(ilLanguage $lng): string
63  {
64  return sprintf(
65  $lng->txt("ass_lac_unable_to_parse_condition"),
66  $this->getCondition()
67  );
68  }
69 }
txt(string $a_topic, string $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...
$lng
__construct(Container $dic, ilPlugin $plugin)